aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPaul Selkirk <paul@psgd.org>2017-09-21 11:24:02 -0400
committerPaul Selkirk <paul@psgd.org>2017-09-21 17:02:07 -0400
commitf508e24f5b872a8f7d642eb4fb2217dd1497de96 (patch)
tree70cbf2d30b20deec0a5cc0568db2ff2871d7ca8f /Makefile
parent72227852729ed3125af58cff3f593340b3247fed (diff)
cleanup
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 2 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index e349ab1..2b421f5 100644
--- a/Makefile
+++ b/Makefile
@@ -128,6 +128,8 @@ endif
$(CC) $(CFLAGS) -c -o $@ $<
ifdef DO_PROFILING
+CFLAGS += -pg -DDO_PROFILING
+LIBS += $(LIBPROF_BLD)/libprof.a
all: hsm
else
all: board-test cli-test libhal-test hsm bootloader
@@ -157,14 +159,8 @@ $(LIBPROF_BLD)/libprof.a: .FORCE
libhal-test: $(BOARD_OBJS) $(LIBS) $(LIBHAL_BLD)/libhal.a .FORCE
$(MAKE) -C projects/libhal-test
-ifdef DO_PROFILING
-CFLAGS += -pg -DDO_PROFILING
-hsm: $(BOARD_OBJS) $(LIBS) $(LIBHAL_BLD)/libhal.a $(LIBCLI_BLD)/libcli.a $(LIBPROF_BLD)/libprof.a .FORCE
- $(MAKE) -C projects/hsm
-else
hsm: $(BOARD_OBJS) $(LIBS) $(LIBHAL_BLD)/libhal.a $(LIBCLI_BLD)/libcli.a .FORCE
$(MAKE) -C projects/hsm
-endif
bootloader: $(BOARD_OBJS) $(LIBS) $(LIBHAL_BLD)/libhal.a .FORCE
$(MAKE) -C projects/bootloader