Paul Burton | b1688ca | 2014-06-14 00:09:49 +0100 | [diff] [blame] | 1 | obj ?= $(shell pwd) |
2 | |||||
3 | HOSTCC ?= gcc | ||||
4 | CFLAGS ?= -g | ||||
5 | CFLAGS += -D_7ZIP_ST | ||||
6 | CFLAGS += -Wall -Wundef -Wstrict-prototypes -Wmissing-prototypes | ||||
7 | CFLAGS += -Wwrite-strings -Wredundant-decls -Wno-trigraphs | ||||
8 | CFLAGS += -Wstrict-aliasing -Wshadow -Werror | ||||
9 | LDFLAGS += -g | ||||
10 | |||||
11 | all: dep $(obj)/bimgtool | ||||
12 | |||||
13 | clean: | ||||
14 | rm -f $(obj)/bimgtool | ||||
15 | |||||
16 | $(obj)/bimgtool: bimgtool.c | ||||
17 | $(HOSTCC) $(CFLAGS) -o $@ $^ |