X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fstm32f103-nucleo%2FMakefile;fp=src%2Fstm32f103-nucleo%2FMakefile;h=72b84b67dcb2e2b4231531da93215a069107ce18;hb=1311eba0bbe32bc1759a3b11b00c78774843383c;hp=0000000000000000000000000000000000000000;hpb=7b2588ee723827b9be2a2d5f287afb1b5d351b23;p=fw%2Faltos diff --git a/src/stm32f103-nucleo/Makefile b/src/stm32f103-nucleo/Makefile new file mode 100644 index 00000000..72b84b67 --- /dev/null +++ b/src/stm32f103-nucleo/Makefile @@ -0,0 +1,72 @@ +include ../stm32f1/Makefile.defs + +INC = \ + ao.h \ + ao_pins.h \ + ao_arch.h \ + ao_arch_funcs.h \ + ao_exti.h \ + ao_product.h \ + ao_st7565.h \ + stm32f1.h \ + Makefile + +ALTOS_SRC = \ + ao_clock.c \ + ao_timer.c \ + ao_mutex.c \ + ao_boot_chain.c \ + ao_interrupt.c \ + ao_product.c \ + ao_romconfig.c \ + ao_led.c \ + ao_task.c \ + ao_panic.c \ + ao_stdio.c \ + ao_serial_stm.c \ + ao_usb_stm.c \ + ao_dma_stm.c \ + ao_spi_stm.c \ + ao_st7565.c \ + ao_rect.c \ + ao_text.c \ + ao_box.c \ + ao_copy.c \ + ao_blt.c \ + ao_line.c \ + ao_logo.c \ + ao_poly.c \ + BitstreamVeraSans-Roman-58.c \ + BitstreamVeraSans-Roman-24.c \ + BitstreamVeraSans-Roman-10.c \ + BitstreamVeraSans-Roman-12.c \ + BenguiatGothicStd-Bold-26.c \ + ao_cmd.c + +PRODUCT=Nucleo-f103 +PRODUCT_DEF=-DNUCLEO_F103 +IDPRODUCT=0x000a + +CFLAGS = $(PRODUCT_DEF) $(STM32F1_CFLAGS) + +PROGNAME=nucleo +PROG=$(PROGNAME)-$(VERSION).elf +HEX=$(PROGNAME)-$(VERSION).ihx + +SRC=$(ALTOS_SRC) hello.c +OBJ=$(SRC:.c=.o) + +all: $(PROG) $(HEX) + +$(PROG): Makefile $(OBJ) + $(call quiet,CC) $(LDFLAGS) -o $@ $(OBJ) $(LIBS) + +$(OBJ): $(INC) + +clean: + rm -f *.o $(PROGNAME)-*.elf $(PROGNAME)-*.ihx $(PROGNAME)-*.map + rm -f ao_product.h + +install: + +uninstall: