Rev 2 | Rev 5 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 2 | Rev 3 | ||
|---|---|---|---|
| Line 8... | Line 8... | ||
| 8 | USE_OPT = -O2 -ggdb -fomit-frame-pointer -falign-functions=16 |
8 | USE_OPT = -O2 -ggdb -fomit-frame-pointer -falign-functions=16 |
| 9 | endif |
9 | endif |
| 10 | 10 | ||
| 11 | # C specific options here (added to USE_OPT). |
11 | # C specific options here (added to USE_OPT). |
| 12 | ifeq ($(USE_COPT),) |
12 | ifeq ($(USE_COPT),) |
| 13 | USE_COPT = |
13 | USE_COPT = |
| 14 | endif |
14 | endif |
| 15 | 15 | ||
| 16 | # C++ specific options here (added to USE_OPT). |
16 | # C++ specific options here (added to USE_OPT). |
| 17 | ifeq ($(USE_CPPOPT),) |
17 | ifeq ($(USE_CPPOPT),) |
| 18 | USE_CPPOPT = -fno-rtti |
18 | USE_CPPOPT = -fno-rtti |
| Line 72... | Line 72... | ||
| 72 | #include $(CHIBIOS)/ext/fatfs/fatfs.mk |
72 | #include $(CHIBIOS)/ext/fatfs/fatfs.mk |
| 73 | 73 | ||
| 74 | # Define linker script file here |
74 | # Define linker script file here |
| 75 | LDSCRIPT= $(PORTLD)/STM32F103xB.ld |
75 | LDSCRIPT= $(PORTLD)/STM32F103xB.ld |
| 76 | 76 | ||
| - | 77 | SSD1306SRC = SSD1306_lib/Font.c |
|
| - | 78 | SSD1306SRC += SSD1306_lib/SSD1306.c |
|
| - | 79 | ||
| - | 80 | SSD1306INC = SSD1306_lib |
|
| - | 81 | ||
| - | 82 | IGNSRC = src/hardware.c |
|
| - | 83 | IGNSRC += src/spiInterface.c |
|
| - | 84 | IGNSRC += src/ap_math.c |
|
| 77 | 85 | ||
| 78 | IGNSRC = src/hardware.c |
- | |
| 79 | IGNINC = inc |
86 | IGNINC = inc |
| 80 | 87 | ||
| 81 | # C sources that can be compiled in ARM or THUMB mode depending on the global |
88 | # C sources that can be compiled in ARM or THUMB mode depending on the global |
| 82 | # setting. |
89 | # setting. |
| 83 | CSRC = $(PORTSRC) \ |
90 | CSRC = $(PORTSRC) \ |
| 84 | $(KERNSRC) \ |
91 | $(KERNSRC) \ |
| 85 | $(TESTSRC) \ |
92 | $(TESTSRC) \ |
| 86 | $(HALSRC) \ |
93 | $(HALSRC) \ |
| 87 | $(PLATFORMSRC) \ |
94 | $(PLATFORMSRC) \ |
| 88 | $(BOARDSRC) \ |
95 | $(BOARDSRC) \ |
| - | 96 | $(SSD1306SRC) \ |
|
| 89 | $(CHIBIOS)/os/various/shell.c \ |
97 | $(CHIBIOS)/os/various/shell.c \ |
| 90 | $(CHIBIOS)/os/various/syscalls.c \ |
98 | $(CHIBIOS)/os/various/syscalls.c \ |
| 91 | $(CHIBIOS)/os/various/chprintf.c \ |
99 | $(CHIBIOS)/os/various/chprintf.c \ |
| 92 | $(IGNSRC) \ |
100 | $(IGNSRC) \ |
| 93 | main.c |
101 | main.c |
| Line 119... | Line 127... | ||
| 119 | # List ASM source files here |
127 | # List ASM source files here |
| 120 | ASMSRC = $(PORTASM) |
128 | ASMSRC = $(PORTASM) |
| 121 | 129 | ||
| 122 | INCDIR = $(PORTINC) $(KERNINC) $(TESTINC) \ |
130 | INCDIR = $(PORTINC) $(KERNINC) $(TESTINC) \ |
| 123 | $(HALINC) $(PLATFORMINC) $(BOARDINC) \ |
131 | $(HALINC) $(PLATFORMINC) $(BOARDINC) \ |
| 124 | $(IGNINC) \ |
132 | $(IGNINC) $(SSD1306INC) \ |
| 125 | $(CHIBIOS)/os/various |
133 | $(CHIBIOS)/os/various |
| 126 | 134 | ||
| 127 | # |
135 | # |
| 128 | # Project, sources and paths |
136 | # Project, sources and paths |
| 129 | ############################################################################## |
137 | ############################################################################## |