-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
67 lines (62 loc) · 1.97 KB
/
Makefile
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
XBE_TITLE = XboxHD+
GEN_XISO = $(XBE_TITLE).iso
NXDK_SDL = y
NXDK_CXX = y
NXDK_NET = y
#Include my files
SRCS += \
$(wildcard $(CURDIR)/src/*.cpp) \
$(wildcard $(CURDIR)/src/Generated/*.cpp) \
$(wildcard $(CURDIR)/src/lvgl-extra/*.cpp) \
$(wildcard $(CURDIR)/src/lvgl-style/*.c) \
$(wildcard $(CURDIR)/src/scenes/*.cpp)
# lwip
SRCS += \
$(CURDIR)/src/lwip/http_client.c
# Assets
SRCS += \
$(wildcard $(CURDIR)/assets/*.c)
CFLAGS += \
-I$(CURDIR)/include \
-I$(CURDIR)/src \
-DLWIP_HTTPC_HAVE_FILE_IO \
-DSDL_DISABLE_JOYSTICK_INIT_DELAY \
-O2
CXXFLAGS += \
-I$(CURDIR)/include \
-I$(CURDIR)/src \
-DLWIP_HTTPC_HAVE_FILE_IO \
-DSDL_DISABLE_JOYSTICK_INIT_DELAY \
-O2
#Include lvgl main library
SRCS += \
$(CURDIR)/3rdparty/lvgl-sdl/lv_drv/lv_sdl_drv_input.c \
$(CURDIR)/3rdparty/lvgl-sdl/lv_drv/lv_sdl_drv_display.c \
$(CURDIR)/3rdparty/lvgl-sdl/lv_drv/lv_if_drv_filesystem.c \
$(wildcard $(CURDIR)/3rdparty/lvgl-sdl/lvgl/src/lv_core/*.c) \
$(wildcard $(CURDIR)/3rdparty/lvgl-sdl/lvgl/src/lv_draw/*.c) \
$(wildcard $(CURDIR)/3rdparty/lvgl-sdl/lvgl/src/lv_font/*.c) \
$(wildcard $(CURDIR)/3rdparty/lvgl-sdl/lvgl/src/lv_gpu/*.c) \
$(wildcard $(CURDIR)/3rdparty/lvgl-sdl/lvgl/src/lv_hal/*.c) \
$(wildcard $(CURDIR)/3rdparty/lvgl-sdl/lvgl/src/lv_misc/*.c) \
$(wildcard $(CURDIR)/3rdparty/lvgl-sdl/lvgl/src/lv_themes/*.c) \
$(wildcard $(CURDIR)/3rdparty/lvgl-sdl/lvgl/src/lv_widgets/*.c)
CFLAGS += \
-I$(CURDIR)/3rdparty/lvgl-sdl/ \
-I$(CURDIR)/3rdparty/lvgl-sdl/lv_drv \
-I$(CURDIR)/3rdparty/lvgl-sdl/lvgl/ \
-I$(CURDIR)/3rdparty/lvgl-sdl/lvgl/src
CXXFLAGS += \
-I$(CURDIR)/3rdparty/lvgl-sdl/ \
-I$(CURDIR)/3rdparty/lvgl-sdl/lv_drv \
-I$(CURDIR)/3rdparty/lvgl-sdl/lvgl/ \
-I$(CURDIR)/3rdparty/lvgl-sdl/lvgl/src
# JSON
CXXFLAGS += \
-I$(CURDIR)/3rdparty/json/single_include/nlohmann/
# semver.c
SRCS += \
$(CURDIR)/3rdparty/semver.c/semver.c
CXXFLAGS += \
-I$(CURDIR)/3rdparty/semver.c
include $(NXDK_DIR)/Makefile