diff options
author | Paul Selkirk <paul@psgd.org> | 2020-02-26 11:09:07 -0500 |
---|---|---|
committer | Paul Selkirk <paul@psgd.org> | 2020-02-26 11:09:53 -0500 |
commit | 2e735d03c8a6f434c8f2b1a118f4b3b824e76a7a (patch) | |
tree | 824b0dd31c7afe0930faa9533c4e0fe96067b419 /projects/cli-test/Makefile | |
parent | 39f2d7ec4f35191884978db447bd97638b283d1d (diff) | |
parent | 4b30c58d7062079ad14a990b552a7e8837345f07 (diff) |
Merge branch 'modexpng' to 'master'
Diffstat (limited to 'projects/cli-test/Makefile')
-rw-r--r-- | projects/cli-test/Makefile | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/projects/cli-test/Makefile b/projects/cli-test/Makefile index e01b243..5bb3fb1 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 \ @@ -7,17 +8,21 @@ OBJS = \ mgmt-keystore.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 |