2012-07-30 16:13:33 +00:00
|
|
|
|
|
|
|
CFLAGS += $(shell pkg-config --libs --cflags zlib)
|
2012-07-30 16:09:02 +00:00
|
|
|
CFLAGS += -Wall
|
2012-07-30 16:13:33 +00:00
|
|
|
|
|
|
|
ifndef CC
|
2012-07-30 16:09:02 +00:00
|
|
|
CC = gcc
|
2012-07-30 16:13:33 +00:00
|
|
|
endif
|
2012-07-30 16:09:02 +00:00
|
|
|
|
2012-07-30 16:13:33 +00:00
|
|
|
APP = unpack
|
|
|
|
TMP_FILES = $(wildcard *~)
|
2012-07-30 16:09:02 +00:00
|
|
|
|
2012-07-30 16:13:33 +00:00
|
|
|
all: $(APP)
|
2012-07-30 16:09:02 +00:00
|
|
|
|
|
|
|
%: %.c
|
|
|
|
$(CC) $(CFLAGS) -o $@ $<
|
2012-07-28 13:51:53 +00:00
|
|
|
|
2012-07-30 16:13:33 +00:00
|
|
|
clean:
|
|
|
|
rm -rf $(APP) $(TMP_FILES)
|
|
|
|
|