Debian Codegraph @

src/cortexelf-v1/Makefile

raw symbols SCIP
1 #
2 # AltOS build
3 #
4 #
5
6 include ../stm/Makefile.defs
7 include ../scheme/Makefile-inc
8
9
10 INC = \
11 ao.h \
12 ao_arch.h \
13 ao_arch_funcs.h \
14 ao_boot.h \
15 ao_pins.h \
16 ao_kalman.h \
17 ao_product.h \
18 ao_profile.h \
19 ao_task.h \
20 math.h \
21 ao_mpu.h \
22 stm32l.h \
23 ao_vga.h \
24 ao_draw.h \
25 ao_draw_int.h \
26 ao_font.h \
27 ao_ps2.h \
28 $(SCHEME_HDRS) \
29 ao_flip_bits.h \
30 Makefile
31
32 #PROFILE=ao_profile.c
33 #PROFILE_DEF=-DAO_PROFILE=1
34
35 #STACK_GUARD=ao_mpu_stm.c
36 #STACK_GUARD_DEF=-DHAS_STACK_GUARD=1
37
38
39 ALTOS_SRC = \
40 ao_boot_chain.c \
41 ao_interrupt.c \
42 ao_product.c \
43 ao_romconfig.c \
44 ao_cmd.c \
45 ao_config.c \
46 ao_task.c \
47 ao_errno.c \
48 ao_stdio.c \
49 ao_panic.c \
50 ao_timer.c \
51 ao_mutex.c \
52 ao_serial_stm.c \
53 ao_dma_stm.c \
54 ao_spi_stm.c \
55 ao_usb_stm.c \
56 ao_exti_stm.c \
57 ao_i2c_stm.c \
58 ao_as1107.c \
59 ao_matrix.c \
60 ao_vga.c \
61 ao_blt.c \
62 ao_copy.c \
63 ao_rect.c \
64 ao_text.c \
65 ao_line.c \
66 ao_ps2.c \
67 ao_console.c \
68 ao_sdcard.c \
69 ao_bufio.c \
70 ao_fat.c \
71 ao_flash_stm.c \
72 ao_button.c \
73 ao_event.c \
74 ao_1802.c \
75 ao_hex.c \
76 $(SCHEME_SRCS) \
77 ao_scheme_os_save.c \
78 $(PROFILE) \
79 $(SAMPLE_PROFILE) \
80 $(STACK_GUARD)
81
82 PRODUCT=CortexELF-v1
83 PRODUCT_DEF=-DCORTEXELF
84 IDPRODUCT=0x000a
85
86 PROGNAME=cortexelf-v1
87 PROG=$(PROGNAME)-$(VERSION).elf
88 HEX=$(PROGNAME)-$(VERSION).ihx
89
90 MAP=$(PROG).map
91
92 MAPFILE=-Wl,-M=$(MAP)
93
94 LDFLAGS=-L../stm -L/local/newlib-mini/arm-none-eabi/lib/thumb/v7-m/ -Wl,-Tcortexelf.ld $(MAPFILE) -nostartfiles
95 AO_CFLAGS=-I. -I../stm -I../kernel -I../drivers -I../draw -I../scheme -I.. -I/local/newlib-mini/arm-none-eabi/include
96 LIBS=-lc -lm -lgcc
97
98 CFLAGS = $(PRODUCT_DEF) $(STM_CFLAGS) $(PROFILE_DEF) $(SAMPLE_PROFILE_DEF) $(STACK_GUARD_DEF)
99
100
101 SRC=$(ALTOS_SRC) ao_cortexelf.c
102 OBJ=$(SRC:.c=.o)
103
104 all:: $(PROG) $(HEX)
105
106 $(PROG): Makefile $(OBJ) cortexelf.ld
107 $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(OBJ) $(LIBS)
108
109 ../altitude-pa.h: make-altitude-pa
110 nickle $< > $@
111
112 $(OBJ): $(INC)
113
114 ao_product.h: ao-make-product.5c ../Version
115 $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@
116
117 distclean: clean
118
119 clean::
120 rm -f *.o $(PROGNAME)-*.elf $(PROGNAME)-*.ihx
121 rm -f ao_product.h ao_flip_bits.h
122
123 ao_flip_bits.h: ao_flip_bits.5c
124 nickle ao_flip_bits.5c > $@
125
126 include ../scheme/Makefile-scheme
127
128 install:
129
130 uninstall: