From ed13e787008162ebbd2059f5ed0121730b9ab67b Mon Sep 17 00:00:00 2001 From: okertanov Date: Wed, 13 Apr 2011 22:50:53 +0300 Subject: [PATCH] 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. --- Makefile | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index c66d99dc..030111be 100644 --- a/Makefile +++ b/Makefile @@ -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 +