Makefile changes: .SILENT & .PHONY targets, pkg-config with the shell cmd.

New targets: .SILENT, .PHONY, clean. CC & other vars were defined.
-lportaudio is preserved but unused for now.
This commit is contained in:
okertanov
2011-04-13 22:50:53 +03:00
parent fb69933f82
commit ed13e78700
+15 -3
View File
@@ -1,5 +1,17 @@
#CFLAGS = `pkg-config --cflags --libs openssl` -lportaudio
CFLAGS = `pkg-config --cflags --libs openssl ao`
PKGFLAGS:=$(shell pkg-config --cflags --libs openssl ao)
CFLAGS:=-D__i386 -O2
LDFLAGS:=-lm -lpthread
PAUFLAGS:=-lportaudio
all: hairtunes
hairtunes: hairtunes.c alac.c
gcc hairtunes.c alac.c -D__i386 -lm $(CFLAGS) -o hairtunes
$(CC) $(CFLAGS) $(PKGFLAGS) $(LDFLAGS) $? -o $@
clean:
-@rm -rf hairtunes
.PTHONY: all clean
.SILENT: clean