stm-demo does not use altitude.h
[fw/altos] / src / stm-demo / Makefile
1 #
2 # AltOS build
3 #
4 #
5
6 include ../stm/Makefile.defs
7
8 INC = \
9         ao.h \
10         ao_arch.h \
11         ao_pins.h \
12         ao_product.h
13
14 #
15 # Common AltOS sources
16 #
17 ALTOS_SRC = \
18         ao_interrupt.c \
19         ao_product.c \
20         ao_romconfig.c \
21         ao_cmd.c \
22         ao_task.c \
23         ao_led.c \
24         ao_stdio.c \
25         ao_panic.c \
26         ao_timer.c \
27         ao_serial_stm.c \
28         ao_lcd_stm.c \
29         ao_lcd_font.c
30
31 PRODUCT=StmDemo-v0.0
32 PRODUCT_DEF=-DSTM_DEMO
33 IDPRODUCT=0x000a
34
35 CFLAGS = $(PRODUCT_DEF) $(STM_CFLAGS) -g -Os
36
37 PROG=stm-demo
38
39 SRC=$(ALTOS_SRC) ao_demo.c
40 OBJ=$(SRC:.c=.o)
41
42 all: $(PROG)
43
44 LDFLAGS=-L../stm -Wl,-Taltos.ld
45
46 $(PROG): Makefile $(OBJ)
47         $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(OBJ) $(SAT_CLIB) -lgcc
48
49 ao_product.h: ao-make-product.5c ../Version
50         $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@
51
52 $(OBJ): $(INC)
53
54 distclean:      clean
55
56 clean:
57         rm -f $(OBJ)
58         rm -f ao_product.h
59
60 install:
61
62 uninstall: