aboutsummaryrefslogtreecommitdiff
path: root/projects/cli-test/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'projects/cli-test/Makefile')
-rw-r--r--projects/cli-test/Makefile19
1 files changed, 12 insertions, 7 deletions
diff --git a/projects/cli-test/Makefile b/projects/cli-test/Makefile
index fadf2cf..5971d13 100644
--- a/projects/cli-test/Makefile
+++ b/projects/cli-test/Makefile
@@ -1,5 +1,6 @@
-TEST = cli-test
+PROJ = cli-test
+# objs in addition to $(PROJ).o
OBJS = \
mgmt-cli.o \
mgmt-dfu.o \
@@ -8,17 +9,21 @@ OBJS = \
mgmt-keywrap.o \
mgmt-masterkey.o \
mgmt-misc.o \
- mgmt-show.o \
- mgmt-test.o \
- test-fmc.o \
- test-mkmif.o \
- test_sdram.o
+ mgmt-show.o
CFLAGS += -I$(LIBCLI_SRC) -I$(LIBHAL_SRC)
+CFLAGS += -I$(LIBTFM_BLD)
+CFLAGS += -Wno-missing-field-initializers
+
+ifdef DO_TIMING
+CFLAGS += -DDO_TIMING
+OBJS += mgmt-timing.o $(TOPLEVEL)/stm-dwt.o
+LDFLAGS += -lm
+endif
LIBS += $(LIBCLI_BLD)/libcli.a $(LIBHAL_BLD)/libhal.a $(LIBTFM_BLD)/libtfm.a
-all: $(TEST:=.elf)
+all: $(PROJ:=.elf)
%.elf: %.o $(BOARD_OBJS) $(OBJS) $(LIBS)
$(CC) $(CFLAGS) $^ -o $@ -T$(LDSCRIPT) -g -Wl,-Map=$*.map