diff options
Diffstat (limited to 'utils/nwztools/plattools/Makefile')
-rw-r--r-- | utils/nwztools/plattools/Makefile | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/utils/nwztools/plattools/Makefile b/utils/nwztools/plattools/Makefile index 31633294ee..8251afaf0a 100644 --- a/utils/nwztools/plattools/Makefile +++ b/utils/nwztools/plattools/Makefile | |||
@@ -5,13 +5,17 @@ CFLAGS=-std=gnu99 -Wall -O2 | |||
5 | INCLUDES=-I. | 5 | INCLUDES=-I. |
6 | 6 | ||
7 | LIB_FILES=nwz_lib.c nwz_lib_devlist.c | 7 | LIB_FILES=nwz_lib.c nwz_lib_devlist.c |
8 | ALL_BUT_LIB=$(patsubst %.c,%.elf,$(filter-out $(LIB_FILES),$(wildcard *.c))) | 8 | TOOL_FILES=dest_tool.c test_adc.c test_adc.c test_bl.c test_display.c \ |
9 | test_keys.c test_power.c test_ts.c | ||
10 | ALL_ELF=$(patsubst %.c,%.elf,$(TOOL_FILES)) all_tools.elf | ||
9 | 11 | ||
10 | all: $(ALL_BUT_LIB) | 12 | all: $(ALL_ELF) |
11 | 13 | ||
12 | %.elf: %.c $(LIB_FILES) | 14 | %.elf: %.c $(LIB_FILES) |
13 | $(CC) $(CFLAGS) $(INCLUDES) -o $@ $^ | 15 | $(CC) $(CFLAGS) $(INCLUDES) -o $@ $^ |
14 | 16 | ||
15 | clean: | 17 | all_tools.elf: all_tools.c $(TOOL_FILES) $(LIB_FILES) |
16 | rm -rf $(ALL_BUT_LIB) | 18 | $(CC) $(CFLAGS) -DNWZ_EMBED_TOOLS $(INCLUDES) -o $@ $^ |
17 | 19 | ||
20 | clean: | ||
21 | rm -rf $(ALL_ELF) | ||