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