6 include ../stm/Makefile.defs
7 LDFLAGS=-L../stm -Wl,-Tcortexelf.ld
35 #PROFILE_DEF=-DAO_PROFILE=1
37 #STACK_GUARD=ao_mpu_stm.c
38 #STACK_GUARD_DEF=-DHAS_STACK_GUARD=1
99 PRODUCT_DEF=-DCORTEXELF
102 CFLAGS = $(PRODUCT_DEF) $(STM_CFLAGS) $(PROFILE_DEF) $(SAMPLE_PROFILE_DEF) $(STACK_GUARD_DEF) -Os -g
104 PROGNAME=cortexelf-v1
105 PROG=$(PROGNAME)-$(VERSION).elf
106 HEX=$(PROGNAME)-$(VERSION).ihx
108 SRC=$(ALTOS_SRC) ao_cortexelf.c
113 $(PROG): Makefile $(OBJ) cortexelf.ld
114 $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(OBJ) $(LIBS)
116 ../altitude-pa.h: make-altitude-pa
121 ao_product.h: ao-make-product.5c ../Version
122 $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@
127 rm -f *.o $(PROGNAME)-*.elf $(PROGNAME)-*.ihx
128 rm -f ao_product.h ao_flip_bits.h
130 ao_flip_bits.h: ao_flip_bits.5c
131 nickle ao_flip_bits.5c > $@
133 include ../lisp/Makefile-lisp