]> git.gag.com Git - fw/altos/blob - src/telegps-v2.0/Makefile
Merge branch 'master' into branch-1.9
[fw/altos] / src / telegps-v2.0 / Makefile
1 #
2 # AltOS build
3 #
4 #
5
6 TOPDIR=..
7
8 include $(TOPDIR)/stmf0/Makefile.defs
9
10 INC = \
11         ao.h \
12         ao_arch.h \
13         ao_arch_funcs.h \
14         ao_pins.h \
15         ao_product.h \
16         ao_tracker.h \
17         ao_task.h \
18         ao_cc1200.h \
19         ao_fec.h \
20         stm32f0.h \
21         Makefile
22
23
24 ALTOS_SRC = \
25         ao_adc_stm.c \
26         ao_led_stmf0.c \
27         ao_interrupt.c \
28         ao_boot_chain.c \
29         ao_product.c \
30         ao_romconfig.c \
31         ao_cmd.c \
32         ao_config.c \
33         ao_task.c \
34         ao_stdio.c \
35         ao_panic.c \
36         ao_timer.c \
37         ao_mutex.c \
38         ao_freq.c \
39         ao_dma_stm.c \
40         ao_spi_stm.c \
41         ao_usb_stm.c \
42         ao_exti_stm.c \
43         ao_serial_stm.c \
44         ao_gps_ublox.c \
45         ao_gps_show.c \
46         ao_cc1200.c \
47         ao_aprs.c \
48         ao_tracker.c \
49         ao_telemetry.c \
50         ao_storage.c \
51         ao_m25.c \
52         ao_log.c \
53         ao_log_gps.c \
54         ao_distance.c \
55         ao_sqrt.c \
56         ao_data.c \
57         ao_convert_volt.c \
58         $(SAMPLE_PROFILE)
59
60 PRODUCT=TeleGPS-v2.0
61 PRODUCT_DEF=-DTELEGPS
62 IDPRODUCT=0x0025
63
64 CFLAGS = $(PRODUCT_DEF) $(STMF0_CFLAGS) $(PROFILE_DEF)
65
66 PROGNAME=telegps-v2.0
67 PROG=$(PROGNAME)-$(VERSION).elf
68 HEX=$(PROGNAME)-$(VERSION).ihx
69
70 SRC=$(ALTOS_SRC) ao_telegps.c
71 OBJ=$(SRC:.c=.o)
72
73 all: $(PROG) $(HEX)
74
75 $(PROG): Makefile $(OBJ) altos.ld
76         $(call quiet,CC) $(LDFLAGS) -o $(PROG) $(OBJ) $(LIBS) -Wl,-Map=$(PROGNAME)-$(VERSION).map
77
78 $(OBJ): $(INC)
79
80 distclean:      clean
81
82 clean:
83         rm -f *.o ao_serial_stm.h $(PROGNAME)-*.elf $(PROGNAME)-*.ihx $(PROGNAME)-*.map
84         rm -f ao_product.h
85
86 install:
87
88 uninstall: