path-packer-c/Makefile
Vincent Batts d8023d00db
Makefile: fix ordering of linker flags
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2024-04-01 12:27:46 -04:00

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)