diff options
| author | Keith Packard <keithp@keithp.com> | 2018-05-07 09:53:52 -0700 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2018-05-07 09:53:52 -0700 |
| commit | 1f56dc30a31e3d5c833f73ec9cd31f548a80e154 (patch) | |
| tree | 3cf4ad2bc897cd2fce5b9f772b282f9b768c689c /src/mpusb-v3.0/Makefile | |
| parent | feb881a24250bd7e71ec8ccef0099d4b4a0df519 (diff) | |
| parent | 71acc79f8e828d56296db282c72cf4492a8aa4f4 (diff) | |
Merge branch 'mpusb'
Diffstat (limited to 'src/mpusb-v3.0/Makefile')
| -rw-r--r-- | src/mpusb-v3.0/Makefile | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/src/mpusb-v3.0/Makefile b/src/mpusb-v3.0/Makefile new file mode 100644 index 00000000..96156741 --- /dev/null +++ b/src/mpusb-v3.0/Makefile @@ -0,0 +1,68 @@ +# +# AltOS build +# +# + +include ../stmf0/Makefile.defs + +INC = \ + ao.h \ + ao_arch.h \ + ao_arch_funcs.h \ + ao_boot.h \ + ao_pins.h \ + ao_product.h \ + ao_task.h \ + ao_whiten.h \ + stm32f0.h \ + Makefile + +ALTOS_SRC = \ + ao_boot_chain.c \ + ao_interrupt.c \ + ao_product.c \ + ao_romconfig.c \ + ao_cmd.c \ + ao_dma_stm.c \ + ao_task.c \ + ao_stdio.c \ + ao_panic.c \ + ao_timer.c \ + ao_mutex.c \ + ao_usb_stm.c \ + ao_power.c \ + ao_gpio.c \ + ao_serial_stm.c + +PRODUCT=MicroPeakUSB-v3.0 +PRODUCT_DEF=-DMPUSB +IDPRODUCT=0x002b + +CFLAGS = $(PRODUCT_DEF) $(STMF0_CFLAGS) -Os -g + +PROGNAME=mpusb-v3.0 +PROG=$(PROGNAME)-$(VERSION).elf +HEX=$(PROGNAME)-$(VERSION).ihx + +SRC=$(ALTOS_SRC) ao_mpusb.c +OBJ=$(SRC:.c=.o) + +all: $(PROG) $(HEX) + +$(PROG): Makefile $(OBJ) altos.ld + $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(OBJ) $(LIBS) + +ao_product.h: ao-make-product.5c ../Version + $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@ + +$(OBJ): $(INC) + +distclean: clean + +clean: + rm -f *.o $(PROGNAME)-*.elf $(PROGNAME)-*.ihx + rm -f ao_product.h + +install: + +uninstall: |
