Martin Roth | 6116f36 | 2016-03-08 12:32:40 -0700 | [diff] [blame] | 1 | obj ?= $(CURDIR) |
Paul Burton | b1688ca | 2014-06-14 00:09:49 +0100 | [diff] [blame] | 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 |
Paul Burton | b1688ca | 2014-06-14 00:09:49 +0100 | [diff] [blame] | 9 | |
Stefan Reinauer | 3740d77 | 2016-02-09 17:53:59 -0800 | [diff] [blame] | 10 | all: $(obj)/bimgtool |
Paul Burton | b1688ca | 2014-06-14 00:09:49 +0100 | [diff] [blame] | 11 | |
| 12 | clean: |
| 13 | rm -f $(obj)/bimgtool |
| 14 | |
| 15 | $(obj)/bimgtool: bimgtool.c |
| 16 | $(HOSTCC) $(CFLAGS) -o $@ $^ |