Rev 3 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3 | Rev 6 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | # NOTE: Can be overridden externally. |
3 | # NOTE: Can be overridden externally. |
4 | # |
4 | # |
5 | 5 | ||
6 | # Compiler options here. |
6 | # Compiler options here. |
7 | ifeq ($(USE_OPT),) |
7 | ifeq ($(USE_OPT),) |
8 | USE_OPT = -O0 -g -ggdb -fomit-frame-pointer -falign-functions=16 |
8 | USE_OPT = -Os -g -ggdb -fomit-frame-pointer -falign-functions=16 |
9 | endif |
9 | endif |
10 | 10 | ||
11 | 11 | ||
12 | # C specific options here (added to USE_OPT). |
12 | # C specific options here (added to USE_OPT). |
13 | ifeq ($(USE_COPT),) |
13 | ifeq ($(USE_COPT),) |
Line 124... | Line 124... | ||
124 | 124 | ||
125 | ALLINC+= ./inc |
125 | ALLINC+= ./inc |
126 | 126 | ||
127 | ALLCSRC+= ./src/useAdc.c |
127 | ALLCSRC+= ./src/useAdc.c |
128 | 128 | ||
129 | - | ||
- | 129 | ALLCPPSRC+= ./sht21_lib/sht21.cpp |
|
- | 130 | ALLINC += ./sht21_lib |
|
130 | 131 | ||
131 | # C sources that can be compiled in ARM or THUMB mode depending on the global |
132 | # C sources that can be compiled in ARM or THUMB mode depending on the global |
132 | # setting. |
133 | # setting. |
133 | CSRC = $(ALLCSRC) \ |
134 | CSRC = $(ALLCSRC) \ |
134 | usbcfg.c \ |
135 | usbcfg.c \ |
135 | shellCmds.c \ |
136 | shellCmds.c \ |
136 | useLidar.c \ |
137 | useLidar.c \ |
- | 138 | spiInterface.c \ |
|
137 | main.c |
139 | main.c |
138 | 140 | ||
- | 141 | # Get the Lidar library |
|
139 | VL53L0X = ../VL53L0X_1.0.2 |
142 | VL53L0X = ../VL53L0X_1.0.2 |
140 | include $(VL53L0X)/vl53l0x.mk |
143 | include $(VL53L0X)/vl53l0x.mk |
141 | 144 | ||
- | 145 | # Get the SPI OLED library |
|
- | 146 | SSD1306 = ../SSD1306_lib |
|
- | 147 | include $(SSD1306)/ssd1306.mk |
|
142 | 148 | ||
143 | # C++ sources that can be compiled in ARM or THUMB mode depending on the global |
149 | # C++ sources that can be compiled in ARM or THUMB mode depending on the global |
144 | # setting. |
150 | # setting. |
145 | CPPSRC = $(ALLCPPSRC) |
151 | CPPSRC = $(ALLCPPSRC) |
146 | 152 | ||
Line 240... | Line 246... | ||
240 | ############################################################################## |
246 | ############################################################################## |
241 | # Start of user section |
247 | # Start of user section |
242 | # |
248 | # |
243 | 249 | ||
244 | # List all user C define here, like -D_DEBUG=1 |
250 | # List all user C define here, like -D_DEBUG=1 |
245 | UDEFS = |
251 | UDEFS = -DUSE_I2C_2V8 |
246 | 252 | ||
247 | # Define ASM defines here |
253 | # Define ASM defines here |
248 | UADEFS = |
254 | UADEFS = |
249 | 255 | ||
250 | # List all user directories here |
256 | # List all user directories here |