Files
shairport-sync/Makefile
T
Albert Zeyerandmag- b20401789e small fix for Makefile
This fails if for example only hairtunes.c was changed but not alac.c.
2011-04-16 00:45:55 +08:00

24 lines
436 B
Makefile

PKGFLAGS:=$(shell pkg-config --cflags --libs openssl ao)
CFLAGS:=-O2 -Wall
LDFLAGS:=-lm -lpthread
PAUFLAGS:=-lportaudio
all: hairtunes
hairtunes: hairtunes.c alac.c
$(CC) $(CFLAGS) $(PKGFLAGS) $(LDFLAGS) hairtunes.c alac.c -o $@
clean:
-@rm -rf hairtunes
.PTHONY: all clean
prefix=/usr/local
install: hairtunes
install -m 0755 hairtunes $(prefix)/bin
install -m 0755 shairport.pl $(prefix)/bin
.PHONY: install
.SILENT: clean