]> git.gag.com Git - fw/altos/blob - src/vidtime/Makefile
altos/drivers/ao_button: Save all 32-bits of irq status
[fw/altos] / src / vidtime / 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_dma_stm.c \
26         ao_exti_stm.c \
27         ao_task.c \
28         ao_stdio.c \
29         ao_panic.c \
30         ao_timer.c \
31         ao_mutex.c \
32         ao_usb_stm.c
33
34 PRODUCT=VidTime
35 PRODUCT_DEF=-DVIDTIME
36 IDPRODUCT=0x002b
37
38 CFLAGS = $(PRODUCT_DEF) $(STMF0_CFLAGS)
39
40 PROGNAME=vidtime-v1.0
41 PROG=$(PROGNAME)-$(VERSION).elf
42 HEX=$(PROGNAME)-$(VERSION).ihx
43
44 SRC=$(ALTOS_SRC) ao_vidtime.c
45 OBJ=$(SRC:.c=.o)
46
47 all: $(PROG) $(HEX)
48
49 $(PROG): Makefile $(OBJ) altos.ld
50         $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(OBJ) $(LIBS)
51
52 ao_product.h: ao-make-product.5c ../Version
53         $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@
54
55 $(OBJ): $(INC)
56
57 distclean:      clean
58
59 clean:
60         rm -f *.o $(PROGNAME)-*.elf $(PROGNAME)-*.ihx
61         rm -f ao_product.h
62
63 install:
64
65 uninstall: