]> git.gag.com Git - fw/altos/blob - src/pnpservo-v1/Makefile
altos/telelco-v3.0: Configure SPI GPIO pins to 50MHz
[fw/altos] / src / pnpservo-v1 / 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         stm32f0.h \
17         Makefile
18
19 ALTOS_SRC = \
20         ao_boot_chain.c \
21         ao_interrupt.c \
22         ao_product.c \
23         ao_romconfig.c \
24         ao_cmd.c \
25         ao_config.c \
26         ao_task.c \
27         ao_led_stmf0.c \
28         ao_dma_stm.c \
29         ao_stdio.c \
30         ao_mutex.c \
31         ao_panic.c \
32         ao_timer.c \
33         ao_usb_stm.c \
34         ao_flash_stm.c 
35
36 PRODUCT=PNPservo-v1
37 PRODUCT_DEF=-DPNPSERVO
38 IDPRODUCT=0x000a
39
40 CFLAGS = $(PRODUCT_DEF) -I. $(STMF0_CFLAGS)
41
42 LDFLAGS=$(CFLAGS) -L$(TOPDIR)/stmf0 -Wl,-Tlambda.ld
43
44 PROGNAME=pnpservo-v1
45 PROG=$(PROGNAME)-$(VERSION).elf
46 HEX=$(PROGNAME)-$(VERSION).ihx
47
48 SRC=$(ALTOS_SRC) ao_pnpservo.c
49 OBJ=$(SRC:.c=.o)
50
51 all: $(PROG) $(HEX)
52
53 $(PROG): Makefile $(OBJ) lambda.ld altos.ld
54         $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(OBJ) $(LIBS)
55
56 $(OBJ): $(INC)
57
58 ao_product.h: ao-make-product.5c ../Version
59         $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@
60
61 load: $(PROG)
62         stm-load $(PROG)
63
64 distclean:      clean
65
66 clean:
67         rm -f *.o $(PROGNAME)-*.elf $(PROGNAME)-*.ihx
68         rm -f ao_product.h
69
70 install:
71
72 uninstall: