altos/stm32f4: Add STM32F413 disco board support
[fw/altos] / src / stm32f4-disco / Makefile
diff --git a/src/stm32f4-disco/Makefile b/src/stm32f4-disco/Makefile
new file mode 100644 (file)
index 0000000..2d912b2
--- /dev/null
@@ -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: