more Makefile tweaks

This commit is contained in:
Vincent Batts 2012-07-30 12:13:33 -04:00
parent 6b3bd894d6
commit 99eccf44c5

View file

@ -1,10 +1,19 @@
CFLAGS += `pkg-config --libs --cflags zlib`
CFLAGS += $(shell pkg-config --libs --cflags zlib)
CFLAGS += -Wall
ifndef CC
CC = gcc
endif
all: unpack
APP = unpack
TMP_FILES = $(wildcard *~)
all: $(APP)
%: %.c
$(CC) $(CFLAGS) -o $@ $<
clean:
rm -rf $(APP) $(TMP_FILES)