-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (33 loc) · 811 Bytes
/
Makefile
File metadata and controls
40 lines (33 loc) · 811 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
30
31
32
33
34
35
36
37
38
39
40
XBE_TITLE = StellarAttachISO
GEN_XISO = $(XBE_TITLE).iso
NXDK_SDL = n
NXDK_CXX = n
NXDK_NET = n
DEBUG=n
#
XBE_XTIMAGE = $(CURDIR)/resources/logo.xpr
#
SRCS += \
$(CURDIR)/source/attach.c \
$(CURDIR)/source/helpers.c \
$(CURDIR)/source/resources.packed.obj
CFLAGS += \
-I$(CURDIR)/3rdparty \
-I$(CURDIR)/source \
-DWIN32
# minIni
SRCS += \
$(CURDIR)/3rdparty/minIni/dev/minIni.c
CFLAGS += \
-I$(CURDIR)/3rdparty/minIni/dev
# Optimize build by removing unused symbols
CFLAGS += \
-ffunction-sections \
-fdata-sections
CXXFLAGS += \
-ffunction-sections \
-fdata-sections
include $(NXDK_DIR)/Makefile
$(OBJS): $(CURDIR)/source/resources.obj
$(CURDIR)/source/resources.packed.obj: $(CURDIR)/source/resources.obj
objcopy $< --long-section-names=enable --update-section 'XTIMAGE=$(XBE_XTIMAGE)' $@