21 lines
326 B
Makefile
21 lines
326 B
Makefile
|
|
CFLAGS += $(shell pkg-config --cflags zlib)
|
|
CFLAGS += -Wall -g
|
|
|
|
LDFLAGS += $(shell pkg-config --libs zlib)
|
|
|
|
ifndef CC
|
|
CC = gcc
|
|
endif
|
|
|
|
APP = unpack
|
|
TMP_FILES = $(wildcard *~)
|
|
|
|
all: $(APP)
|
|
|
|
unpack: unpack.c huffman.c huffman.h
|
|
$(CC) $(CFLAGS) -o $@ unpack.c huffman.c huffman.h $(LDFLAGS)
|
|
|
|
clean:
|
|
rm -rf $(APP) $(TMP_FILES)
|
|
|