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