diff options
Diffstat (limited to 'projects/hsm/Makefile')
-rw-r--r-- | projects/hsm/Makefile | 26 |
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 |