]> git.gag.com Git - fw/altos/blob - src/telefire-v0.1/Makefile
stm: Add a few more GPIO functions to make dealing with the 1802 easier
[fw/altos] / src / telefire-v0.1 / Makefile
1 #
2 # TeleFire build file
3 #
4
5 TELEFIRE_VER=0.1
6 TELEFIRE_DEF=0_1
7
8 vpath %.c ..:../kernel:../cc1111:../drivers:../product
9 vpath %.h ..:../kernel:../cc1111:../drivers:../product
10 vpath ao-make-product.5c ../util
11
12 ifndef VERSION
13 include ../Version
14 endif
15
16 INC = \
17         ao.h \
18         ao_pins.h \
19         ao_arch.h \
20         ao_arch_funcs.h \
21         ao_pad.h \
22         cc1111.h \
23         ao_product.h
24
25 CORE_SRC = \
26         ao_cmd.c \
27         ao_config.c \
28         ao_mutex.c \
29         ao_panic.c \
30         ao_stdio.c \
31         ao_storage.c \
32         ao_task.c \
33         ao_freq.c
34
35 CC1111_SRC = \
36         ao_adc.c \
37         ao_aes.c \
38         ao_beep.c \
39         ao_dma.c \
40         ao_intflash.c \
41         ao_radio.c \
42         ao_radio_cmac.c \
43         ao_romconfig.c \
44         ao_serial.c \
45         ao_spi.c \
46         ao_string.c \
47         ao_timer.c \
48         ao_usb.c \
49         _bp.c
50
51 DRIVER_SRC = \
52         ao_pca9922.c \
53         ao_74hc497.c \
54         ao_pad.c \
55         ao_radio_cmac_cmd.c
56
57 PRODUCT_SRC = \
58         ao_telefire.c
59
60 SRC = \
61         $(CORE_SRC) \
62         $(CC1111_SRC) \
63         $(DRIVER_SRC) \
64         $(PRODUCT_SRC)
65
66 PROGNAME = telefire-v$(TELEFIRE_VER)
67 PROG = $(PROGNAME)-$(VERSION).ihx
68 PRODUCT=TeleFire-v$(TELEFIRE_VER)
69 PRODUCT_DEF=-DTELEFIRE_V_$(TELEFIRE_DEF)
70 IDPRODUCT=0x000f
71 CODESIZE=0x6700
72
73 include ../cc1111/Makefile.cc1111
74
75 NICKLE=nickle
76 CHECK_STACK=sh ../util/check-stack
77
78 V=0
79 # The user has explicitly enabled quiet compilation.
80 ifeq ($(V),0)
81 quiet = @printf "  $1 $2 $@\n"; $($1)
82 endif
83 # Otherwise, print the full command line.
84 quiet ?= $($1)
85
86 all: $(PROG)
87
88 $(PROG): $(REL) Makefile
89         $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(REL)
90         $(call quiet,CHECK_STACK) ../cc1111/ao_arch.h $(PMEM)  || rm $@
91
92 ao_product.h: ao-make-product.5c ../Version
93         $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@
94
95 distclean:      clean
96
97 clean: clean-cc1111
98
99 install:
100
101 uninstall:
102