From a59302fda685722cd003045359a184ad751045c0 Mon Sep 17 00:00:00 2001 From: Paul Selkirk Date: Thu, 21 Apr 2016 16:30:36 -0400 Subject: threaded rpc server --- projects/hsm/Makefile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 projects/hsm/Makefile (limited to 'projects/hsm/Makefile') diff --git a/projects/hsm/Makefile b/projects/hsm/Makefile new file mode 100644 index 0000000..b933653 --- /dev/null +++ b/projects/hsm/Makefile @@ -0,0 +1,26 @@ +PROJ = hsm + +SRCS = main.c + +OBJS = $(SRCS:.c=.o) + +CFLAGS += -I $(LIBHAL_DIR) + +LIBS += $(LIBHAL_DIR)/libhal.a $(LIBTFM_DIR)/libtfm.a + +all: $(PROJ:=.elf) + +$(PROJ).elf: $(OBJS) $(BOARD_OBJS) $(LIBS) + $(CC) $(CFLAGS) $^ -o $@ -T$(LDSCRIPT) -g -Wl,-Map=$(PROJ).map + $(OBJCOPY) -O ihex $(PROJ).elf $(PROJ).hex + $(OBJCOPY) -O binary $(PROJ).elf $(PROJ).bin + $(OBJDUMP) -St $(PROJ).elf >$(PROJ).lst + $(SIZE) $(PROJ).elf + +clean: + rm -f *.o + rm -f *.elf + rm -f *.hex + rm -f *.bin + rm -f *.map + rm -f *.lst -- cgit v1.2.3