altos: Add temporary RF power settings
[fw/altos] / src / telegps-v0.1 / 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_pins.h \
13         ao_product.h \
14         ao_task.h \
15         ao_whiten.h \
16         ao_cc115l.h \
17         ao_rf_cc115l.h \
18         ao_fec.h \
19         stm32l.h \
20         Makefile
21
22 #PROFILE=ao_profile.c
23 #PROFILE_DEF=-DAO_PROFILE=1
24
25 #SAMPLE_PROFILE=ao_sample_profile.c \
26 #       ao_sample_profile_timer.c
27 #SAMPLE_PROFILE_DEF=-DHAS_SAMPLE_PROFILE=1
28
29 #STACK_GUARD=ao_mpu_stm.c
30 #STACK_GUARD_DEF=-DHAS_STACK_GUARD=1
31
32 ALTOS_SRC = \
33         ao_interrupt.c \
34         ao_product.c \
35         ao_romconfig.c \
36         ao_cmd.c \
37         ao_config.c \
38         ao_task.c \
39         ao_led.c \
40         ao_stdio.c \
41         ao_panic.c \
42         ao_timer.c \
43         ao_mutex.c \
44         ao_freq.c \
45         ao_dma_stm.c \
46         ao_spi_stm.c \
47         ao_usb_stm.c \
48         ao_exti_stm.c \
49         ao_serial_stm.c \
50         ao_gps_skytraq.c \
51         ao_cc115l.c \
52         ao_fec_tx.c \
53         ao_rfpa0133.c \
54         ao_aprs.c \
55         ao_storage.c \
56         ao_eeprom_stm.c \
57         ao_sdcard.c \
58         ao_bufio.c \
59         ao_fat.c
60
61 PRODUCT=TeleGPS-v0.1
62 PRODUCT_DEF=-DTELEGPS
63 IDPRODUCT=0x0024
64
65 CFLAGS = $(PRODUCT_DEF) $(STM_CFLAGS) $(PROFILE_DEF) $(SAMPLE_PROFILE_DEF) $(STACK_GUARD_DEF) -Os -g
66
67 PROGNAME=telegps-v0.1
68 PROG=$(PROGNAME)-$(VERSION).elf
69
70 SRC=$(ALTOS_SRC) ao_telegps.c
71 OBJ=$(SRC:.c=.o)
72
73 all: $(PROG)
74
75 $(PROG): Makefile $(OBJ) altos.ld
76         $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(OBJ) $(SAT_CLIB) -lgcc
77
78 $(OBJ): $(INC)
79
80 ao_product.h: ao-make-product.5c ../Version
81         $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@
82
83 distclean:      clean
84
85 clean:
86         rm -f *.o $(PROGNAME)-*.elf
87         rm -f ao_product.h
88
89 install:
90
91 uninstall: