Skip to content

Commit

Permalink
Makefile: add install target
Browse files Browse the repository at this point in the history
  • Loading branch information
abrasive committed Apr 8, 2013
1 parent dd23199 commit 0ee4efb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ endif

-include config.mk

PREFIX ?= /usr/local

SRCS := shairport.c rtsp.c mdns.c common.c rtp.c player.c alac.c audio.c audio_dummy.c

ifdef CONFIG_AO
Expand All @@ -16,6 +18,9 @@ endif
# default target
all: shairport

install: shairport
install -m 755 shairport $(PREFIX)/bin/shairport

shairport: $(SRCS)
$(CC) $(CFLAGS) $(SRCS) $(LDFLAGS) -o shairport

Expand Down

0 comments on commit 0ee4efb

Please sign in to comment.