forked from ngagesdk/ccleste
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.nxdk
44 lines (34 loc) · 1018 Bytes
/
Makefile.nxdk
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
XBE_TITLE = CCelesteX
GEN_XISO = $(XBE_TITLE).iso
NXDK_DIR = $(CURDIR)/dependencies/xbox/nxdk
NXDK_SDL = y
NXDK_SDL_MIXER = y
SRCS += \
$(CURDIR)/src/celeste.c \
$(CURDIR)/src/sdl12main.c
INCLUDES += \
-I$(CURDIR)/src/
EXTRA_OFLAGS = \
-O2 \
-fsigned-char \
-fpermissive
FLAGS = \
-D__XBOX__ \
-DCELESTE_P8_ENABLE_AUDIO=1
CFLAGS += $(EXTRA_OFLAGS) $(INCLUDES) $(FLAGS)
CXXFLAGS += $(CFLAGS)
new_all: copy_resources all
include $(NXDK_DIR)/Makefile
copy_resources:
@mkdir -p $(OUTPUT_DIR)
@mkdir -p $(OUTPUT_DIR)/data
@cp -r $(CURDIR)/data/xbox_sound/*.ogg $(OUTPUT_DIR)/data/
@cp -r $(CURDIR)/data/font.bmp $(OUTPUT_DIR)/data/
@cp -r $(CURDIR)/data/gfx.bmp $(OUTPUT_DIR)/data/
@cp -r $(CURDIR)/data/frame_xbox.bmp $(OUTPUT_DIR)/data/
clean_local:
@echo clean ...
rm -Rf ./bin
find . -name '*.iso' -type f -delete
find . -name '*.obj' ! -path './dependencies/xbox/nxdk/*' -type f -delete
find . -name '*.d' ! -path './dependencies/xbox/nxdk/*' -type f -delete