summaryrefslogtreecommitdiff
path: root/utils/nwztools/plattools/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'utils/nwztools/plattools/Makefile')
-rw-r--r--utils/nwztools/plattools/Makefile12
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
5INCLUDES=-I. 5INCLUDES=-I.
6 6
7LIB_FILES=nwz_lib.c nwz_lib_devlist.c 7LIB_FILES=nwz_lib.c nwz_lib_devlist.c
8ALL_BUT_LIB=$(patsubst %.c,%.elf,$(filter-out $(LIB_FILES),$(wildcard *.c))) 8TOOL_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
10ALL_ELF=$(patsubst %.c,%.elf,$(TOOL_FILES)) all_tools.elf
9 11
10all: $(ALL_BUT_LIB) 12all: $(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
15clean: 17all_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
20clean:
21 rm -rf $(ALL_ELF)