]> git.gag.com Git - fw/altos/blob - src/mpusb-v3.0/Makefile
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
[fw/altos] / src / mpusb-v3.0 / Makefile
1 #
2 # AltOS build
3 #
4 #
5
6 include ../stmf0/Makefile.defs
7
8 INC = \
9         ao.h \
10         ao_arch.h \
11         ao_arch_funcs.h \
12         ao_boot.h \
13         ao_pins.h \
14         ao_product.h \
15         ao_task.h \
16         ao_whiten.h \
17         stm32f0.h \
18         Makefile
19
20 ALTOS_SRC = \
21         ao_boot_chain.c \
22         ao_interrupt.c \
23         ao_product.c \
24         ao_romconfig.c \
25         ao_cmd.c \
26         ao_dma_stm.c \
27         ao_task.c \
28         ao_stdio.c \
29         ao_panic.c \
30         ao_timer.c \
31         ao_mutex.c \
32         ao_usb_stm.c \
33         ao_power.c \
34         ao_gpio.c \
35         ao_serial_stm.c
36
37 PRODUCT=MicroPeakUSB-v3.0
38 PRODUCT_DEF=-DMPUSB
39 IDPRODUCT=0x002b
40
41 CFLAGS = $(PRODUCT_DEF) $(STMF0_CFLAGS)
42
43 PROGNAME=mpusb-v3.0
44 PROG=$(PROGNAME)-$(VERSION).elf
45 HEX=$(PROGNAME)-$(VERSION).ihx
46
47 SRC=$(ALTOS_SRC) ao_mpusb.c
48 OBJ=$(SRC:.c=.o)
49
50 all: $(PROG) $(HEX)
51
52 $(PROG): Makefile $(OBJ)
53         $(call quiet,CC) $(LDFLAGS) -o $(PROG) $(OBJ) $(LIBS)
54
55 $(OBJ): $(INC)
56
57 distclean:      clean
58
59 clean:
60         rm -f *.o $(PROGNAME)-*.elf $(PROGNAME)-*.ihx
61         rm -f ao_product.h
62
63 install:
64
65 uninstall: