diff options
Diffstat (limited to 'src/stm32f4-disco/Makefile')
| -rw-r--r-- | src/stm32f4-disco/Makefile | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/stm32f4-disco/Makefile b/src/stm32f4-disco/Makefile new file mode 100644 index 00000000..2d912b22 --- /dev/null +++ b/src/stm32f4-disco/Makefile @@ -0,0 +1,30 @@ +include ../stm32f4/Makefile-raw.defs + +ALTOS_SRC = \ + ao_interrupt.c \ + ao_panic.c \ + ao_timer.c + +CFLAGS = $(STM32F4_CFLAGS) + +PROG=stm32f4-disco-$(VERSION) +ELF=$(PROG).elf +IHX=$(PROG).ihx + +SRC=$(ALTOS_SRC) ao_disco.c +OBJ=$(SRC:.c=.o) +MAP=$(PROG).map + +all: $(ELF) $(IHX) + +$(ELF): Makefile $(OBJ) + $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $@ $(OBJ) -Wl,-M=$(MAP) $(LIBS) + +distclean: clean + +clean: + rm -f *.o *.elf *.ihx + +install: + +uninstall: |
