]> git.gag.com Git - fw/altos/blob - src/telerepeat-v1.0/Makefile
altos/lambdakey-v1.0: Switch to newlib, get things compiling again
[fw/altos] / src / telerepeat-v1.0 / Makefile
1 #
2 # TeleRepeat build file
3 #
4
5 TELEREPEAT_VER=1.0
6 TELEREPEAT_DEF=1_0
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         cc1111.h \
22         ao_product.h
23
24 CORE_SRC = \
25         ao_cmd.c \
26         ao_config.c \
27         ao_monitor.c \
28         ao_mutex.c \
29         ao_panic.c \
30         ao_state.c \
31         ao_stdio.c \
32         ao_task.c \
33         ao_forward.c \
34         ao_storage.c \
35         ao_freq.c
36
37 CC1111_SRC = \
38         ao_dbg.c \
39         ao_adc.c \
40         ao_dma.c \
41         ao_led.c \
42         ao_packet.c \
43         ao_intflash.c \
44         ao_packet_master.c \
45         ao_radio.c \
46         ao_romconfig.c \
47         ao_serial.c \
48         ao_string.c \
49         ao_timer.c \
50         ao_usb.c \
51         _bp.c
52
53 DRIVER_SRC = \
54         ao_btm.c
55
56 PRODUCT_SRC = \
57         ao_telerepeat.c
58
59 SRC = \
60         $(CORE_SRC) \
61         $(CC1111_SRC) \
62         $(DRIVER_SRC) \
63         $(PRODUCT_SRC)
64
65 PROGNAME = telerepeat-v$(TELEREPEAT_VER)
66 PROG = $(PROGNAME)-$(VERSION).ihx
67 PRODUCT=TeleRepeat-v$(TELEREPEAT_VER)
68 PRODUCT_DEF=-DTELEREPEAT_V_$(TELEREPEAT_DEF)
69 IDPRODUCT=0x000e
70 CODESIZE=0x7800
71
72 include ../cc1111/Makefile.cc1111
73
74 NICKLE=nickle
75 CHECK_STACK=sh ../util/check-stack
76
77 V=0
78 # The user has explicitly enabled quiet compilation.
79 ifeq ($(V),0)
80 quiet = @printf "  $1 $2 $@\n"; $($1)
81 endif
82 # Otherwise, print the full command line.
83 quiet ?= $($1)
84
85 all: $(PROG)
86
87 $(PROG): $(REL) Makefile
88         $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(REL)
89         $(call quiet,CHECK_STACK) ../cc1111/ao_arch.h $(PMEM) || rm $@
90
91 ao_product.h: ao-make-product.5c ../Version
92         $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@
93
94 distclean:      clean
95
96 clean: clean-cc1111
97
98 install:
99
100 uninstall: