fa0d008f36bff178aa6d6f4db2460a1ce9958566
[fw/altos] / src / stm-vga / 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_arch_funcs.h \
12         ao_boot.h \
13         ao_pins.h \
14         ao_product.h \
15         ao_vga.h \
16         ao_draw.h \
17         ao_draw_int.h \
18         ao_font.h \
19         ao_ps2.h
20
21 #
22 # Common AltOS sources
23 #
24 ALTOS_SRC = \
25         ao_interrupt.c \
26         ao_boot_chain.c \
27         ao_product.c \
28         ao_romconfig.c \
29         ao_cmd.c \
30         ao_task.c \
31         ao_led_stm.c \
32         ao_stdio.c \
33         ao_panic.c \
34         ao_timer.c \
35         ao_lcd_stm.c \
36         ao_lcd_font.c \
37         ao_vga.c \
38         ao_blt.c \
39         ao_copy.c \
40         ao_rect.c \
41         ao_text.c \
42         ao_line.c \
43         ao_mutex.c \
44         ao_dma_stm.c \
45         ao_adc_stm.c \
46         ao_data.c \
47         ao_i2c_stm.c \
48         ao_usb_stm.c \
49         ao_exti_stm.c \
50         ao_ps2.c \
51         ao_console.c
52
53 PRODUCT=StmVga-v0.0
54 IDPRODUCT=0x000a
55
56 CFLAGS = $(STM_CFLAGS) -g -Os
57
58 PROG=stm-vga-$(VERSION)
59 ELF=$(PROG).elf
60 IHX=$(PROG).ihx
61
62 SRC=$(ALTOS_SRC) ao_demo.c
63 OBJ=$(SRC:.c=.o)
64
65 all: $(ELF) $(IHX)
66
67 $(ELF): Makefile $(OBJ)
68         $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $@ $(OBJ) $(LIBS)
69
70 ao_product.h: ao-make-product.5c ../Version
71         $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@
72
73 $(OBJ): $(INC)
74
75 distclean:      clean
76
77 clean:
78         rm -f *.o *.elf *.ihx
79         rm -f ao_product.h
80
81 install:
82
83 uninstall: