more Makefile tweaks
This commit is contained in:
parent
6b3bd894d6
commit
99eccf44c5
1 changed files with 11 additions and 2 deletions
13
Makefile
13
Makefile
|
@ -1,10 +1,19 @@
|
||||||
CFLAGS += `pkg-config --libs --cflags zlib`
|
|
||||||
|
CFLAGS += $(shell pkg-config --libs --cflags zlib)
|
||||||
CFLAGS += -Wall
|
CFLAGS += -Wall
|
||||||
|
|
||||||
|
ifndef CC
|
||||||
CC = gcc
|
CC = gcc
|
||||||
|
endif
|
||||||
|
|
||||||
all: unpack
|
APP = unpack
|
||||||
|
TMP_FILES = $(wildcard *~)
|
||||||
|
|
||||||
|
all: $(APP)
|
||||||
|
|
||||||
%: %.c
|
%: %.c
|
||||||
$(CC) $(CFLAGS) -o $@ $<
|
$(CC) $(CFLAGS) -o $@ $<
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf $(APP) $(TMP_FILES)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue