-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
executable file
·29 lines (25 loc) · 927 Bytes
/
Copy pathmakefile
File metadata and controls
executable file
·29 lines (25 loc) · 927 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Compiler chain, MinGW here for Win32-simulated environment
CC = x86_64-w64-mingw32-gcc
# FreeRTOS paths
FREERTOS_ROOT = FreeRTOS-Kernel/
PORT_INCLUDE = $(FREERTOS_ROOT)/portable/GCC/ARM_CM4F # change to your architecture
HEAP_INCLUDE = $(FREERTOS_ROOT)/portable/MemMang
# Include directories
INCLUDES = \
-I/mingw64/include \
-I$(FREERTOS_ROOT)/include \
-I$(PORT_INCLUDE) \
-I$(HEAP_INCLUDE)
# Source files (your app + maybe FreeRTOS source files — depends on how you build)
SRC = hal.c framebuf.c init.c gfx.c launcher.c wallpaper.c \
$(FREERTOS_ROOT)/tasks.c \
$(FREERTOS_ROOT)/queue.c \
$(FREERTOS_ROOT)/timers.c \
$(FREERTOS_ROOT)/portable/GCC/ARM_CM4F/port.c \
$(FREERTOS_ROOT)/portable/MemMang/heap_4.c
# Build rule
main.exe: $(SRC)
$(CC) -mwindows -lmingw32 \
$(SRC) $(INCLUDES) -L/mingw64/lib \
-lpng -lz -static \
-o main.exe