-
Notifications
You must be signed in to change notification settings - Fork 21
/
Makefile
65 lines (55 loc) · 1.54 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
XBE_TITLE = NevolutionX
INCDIR = $(CURDIR)/Includes
RESOURCEDIR = $(CURDIR)/Resources
SRCDIR = $(CURDIR)/Sources
SRCS += \
$(CURDIR)/main.cpp \
$(SRCDIR)/audioMenu.cpp \
$(SRCDIR)/config.cpp \
$(SRCDIR)/font.cpp \
$(SRCDIR)/ftpConnection.cpp \
$(SRCDIR)/ftpServer.cpp \
$(SRCDIR)/infoLog.cpp \
$(SRCDIR)/langMenu.cpp \
$(SRCDIR)/logViewer.cpp \
$(SRCDIR)/logViewerMenu.cpp \
$(SRCDIR)/menu.cpp \
$(SRCDIR)/networkManager.cpp \
$(SRCDIR)/networking.cpp \
$(SRCDIR)/renderer.cpp \
$(SRCDIR)/settingsMenu.cpp \
$(SRCDIR)/sntpClient.cpp \
$(SRCDIR)/subAppRouter.cpp \
$(SRCDIR)/subsystems.cpp \
$(SRCDIR)/timeMenu.cpp \
$(SRCDIR)/timing.cpp \
$(SRCDIR)/videoMenu.cpp \
$(SRCDIR)/wipeCache.cpp \
$(SRCDIR)/xbeLauncher.cpp \
$(SRCDIR)/xbeScanner.cpp \
$(CURDIR)/3rdparty/SDL_FontCache/SDL_FontCache.c
NXDK_DIR ?= $(CURDIR)/../nxdk
NXDK_SDL = y
NXDK_CXX = y
NXDK_NET = y
NXDK_DISABLE_AUTOMOUNT_D = y
GEN_XISO = ${XBE_TITLE}.iso
CXXFLAGS += -I$(CURDIR) \
-I$(INCDIR) \
-Wall \
-Wextra \
-std=gnu++11 \
-DSDL_DISABLE_JOYSTICK_INIT_DELAY
CFLAGS += -std=gnu11 \
-DSDL_DISABLE_JOYSTICK_INIT_DELAY
ifneq ($(DEBUG),y)
CFLAGS += -O2
CXXFLAGS += -O2
endif
new_all: copy_resources all
include $(NXDK_DIR)/Makefile
copy_resources: $(OUTPUT_DIR)/config.json
@cp $(RESOURCEDIR)/480.png $(RESOURCEDIR)/720.png $(RESOURCEDIR)/vegur.ttf $(OUTPUT_DIR)
$(OUTPUT_DIR)/config.json: $(CURDIR)/sampleconfig.json
@mkdir -p $(OUTPUT_DIR)
cp $(CURDIR)/sampleconfig.json $(OUTPUT_DIR)/config.json