Skip to content

Commit

Permalink
Missing Makefile mods.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andywebs committed Apr 30, 2011
1 parent 8d0624e commit 53d89bd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Makefile
Expand Up @@ -2,18 +2,22 @@ PKGFLAGS:=$(shell pkg-config --cflags --libs openssl ao)
CFLAGS:=-O2 -Wall
LDFLAGS:=-lm -lpthread

all: hairtunes
all: hairtunes shairport

hairtunes: hairtunes.c alac.c
$(CC) $(CFLAGS) hairtunes.c alac.c -o $@ $(PKGFLAGS) $(LDFLAGS)

shairport: socketlib.c shairport.c alac.c
$(CC) $(CFLAGS) alac.c socketlib.c shairport.c -o $@ $(PKGFLAGS) $(LDFLAGS)

clean:
-@rm -rf hairtunes
-@rm -rf hairtunes shairport

prefix=/usr/local
install: hairtunes
install -m 0755 hairtunes $(prefix)/bin
install -m 0755 shairport.pl $(prefix)/bin
install -m 0755 shairport $(prefix)/bin

.PTHONY: all clean install

Expand Down

0 comments on commit 53d89bd

Please sign in to comment.