path-packer-c/Makefile

22 lines
326 B
Makefile
Raw Normal View History

2012-07-30 16:13:33 +00:00
CFLAGS += $(shell pkg-config --cflags zlib)
2012-08-09 19:09:29 +00:00
CFLAGS += -Wall -g
2012-07-30 16:13:33 +00:00
LDFLAGS += $(shell pkg-config --libs zlib)
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
2012-08-09 19:09:29 +00:00
unpack: unpack.c huffman.c huffman.h
$(CC) $(CFLAGS) -o $@ unpack.c huffman.c huffman.h $(LDFLAGS)
2012-07-28 13:51:53 +00:00
2012-07-30 16:13:33 +00:00
clean:
rm -rf $(APP) $(TMP_FILES)