aboutsummaryrefslogtreecommitdiff
path: root/projects/hsm/Makefile
diff options
context:
space:
mode:
authorPaul Selkirk <paul@psgd.org>2016-04-21 16:30:36 -0400
committerPaul Selkirk <paul@psgd.org>2016-04-21 16:30:36 -0400
commita59302fda685722cd003045359a184ad751045c0 (patch)
treeb665e0f4aab2d609f71f884bed836c616d332277 /projects/hsm/Makefile
parent4a38cf6f44d1c013cbe794093ea6c5b50337431a (diff)
threaded rpc server
Diffstat (limited to 'projects/hsm/Makefile')
-rw-r--r--projects/hsm/Makefile26
1 files changed, 26 insertions, 0 deletions
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