X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fstm32f4-disco%2FMakefile;h=ca612159a043770d06e0d08ad79966bc50ad6ac7;hb=e959061fa17e15dfdd75d35c6c67e68a0e5e98e2;hp=2d912b226fe1d47bcd151990723008b7b82991db;hpb=621d1529d6bc07a3f4bd27fb2d02d5b3161a3a6a;p=fw%2Faltos diff --git a/src/stm32f4-disco/Makefile b/src/stm32f4-disco/Makefile index 2d912b22..ca612159 100644 --- a/src/stm32f4-disco/Makefile +++ b/src/stm32f4-disco/Makefile @@ -1,9 +1,36 @@ include ../stm32f4/Makefile-raw.defs +IDVENDOR=0xfffe +IDPRODUCT=0xfffa +PRODUCT=stm32f4-disco +SERIAL=1 + +INC = \ + ao.h \ + ao_arch.h \ + ao_arch_funcs.h \ + ao_boot.h \ + ao_pins.h \ + ao_task.h \ + ao_product.h \ + stm32f4.h \ + Makefile + ALTOS_SRC = \ ao_interrupt.c \ + ao_romconfig.c \ ao_panic.c \ - ao_timer.c + ao_timer.c \ + ao_task.c \ + ao_stdio.c \ + ao_product.c \ + ao_cmd.c \ + ao_exti_stm32f4.c \ + ao_usart_stm32f4.c \ + ao_usb_gen.c \ + ao_usb_stm32f4.c \ + ao_led.c \ + ao_impure.c CFLAGS = $(STM32F4_CFLAGS) @@ -20,10 +47,12 @@ all: $(ELF) $(IHX) $(ELF): Makefile $(OBJ) $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $@ $(OBJ) -Wl,-M=$(MAP) $(LIBS) +$(OBJ): $(INC) + distclean: clean clean: - rm -f *.o *.elf *.ihx + rm -f *.o *.elf *.ihx *.map install: