aboutsummaryrefslogtreecommitdiff
path: root/libraries/mbed/Makefile
AgeCommit message (Expand)Author
2016-04-14import mbed rtos libraryPaul Selkirk
> 15 16 17 18 19 20 21 22 23 24
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
	$(SIZE) $(PROJ).elf

clean:
	rm -f *.o
	rm -f *.elf
	rm -f *.hex
	rm -f *.bin
	rm -f *.map