Makefile: add install target

This commit is contained in:
James Laird
2013-04-08 18:54:39 +10:00
parent dd23199752
commit 0ee4efb002
+5
View File
@@ -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
@@ -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