forked from XboxDev/nxdk-sdl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.xbox
39 lines (35 loc) · 1.62 KB
/
Makefile.xbox
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
SDL_DIR = $(NXDK_DIR)/lib/sdl/SDL2
# Based on Makefile.minimal (some backends adapted for Xbox)
SDL_SRCS += $(wildcard $(SDL_DIR)/src/*.c)
SDL_SRCS += $(wildcard $(SDL_DIR)/src/audio/*.c)
SDL_SRCS += $(wildcard $(SDL_DIR)/src/audio/xbox/*.c)
SDL_SRCS += $(wildcard $(SDL_DIR)/src/cpuinfo/*.c)
SDL_SRCS += $(wildcard $(SDL_DIR)/src/events/*.c)
SDL_SRCS += $(wildcard $(SDL_DIR)/src/file/*.c)
SDL_SRCS += $(wildcard $(SDL_DIR)/src/haptic/*.c)
SDL_SRCS += $(wildcard $(SDL_DIR)/src/haptic/dummy/*.c)
SDL_SRCS += $(wildcard $(SDL_DIR)/src/joystick/*.c)
SDL_SRCS += $(wildcard $(SDL_DIR)/src/joystick/xbox/*.c)
SDL_SRCS += $(wildcard $(SDL_DIR)/src/loadso/dummy/*.c)
SDL_SRCS += $(wildcard $(SDL_DIR)/src/power/*.c)
SDL_SRCS += $(wildcard $(SDL_DIR)/src/filesystem/dummy/*.c)
SDL_SRCS += $(wildcard $(SDL_DIR)/src/render/*.c)
SDL_SRCS += $(wildcard $(SDL_DIR)/src/render/software/*.c)
SDL_SRCS += $(wildcard $(SDL_DIR)/src/sensor/*.c)
SDL_SRCS += $(wildcard $(SDL_DIR)/src/sensor/dummy/*.c)
SDL_SRCS += $(wildcard $(SDL_DIR)/src/stdlib/*.c)
SDL_SRCS += $(wildcard $(SDL_DIR)/src/thread/*.c)
SDL_SRCS += $(wildcard $(SDL_DIR)/src/thread/windows/*.c)
SDL_SRCS += $(wildcard $(SDL_DIR)/src/timer/*.c)
SDL_SRCS += $(wildcard $(SDL_DIR)/src/timer/windows/*.c)
SDL_SRCS += $(wildcard $(SDL_DIR)/src/video/*.c)
SDL_SRCS += $(wildcard $(SDL_DIR)/src/video/xbox/*.c)
SDL_SRCS += $(wildcard $(SDL_DIR)/src/video/yuv2rgb/*.c)
# Additions for Xbox
SDL_SRCS += $(wildcard $(SDL_DIR)/src/libm/*.c)
SDL_SRCS += $(wildcard $(SDL_DIR)/src/atomic/*.c)
SRCS += $(SDL_SRCS)
CFLAGS += -I$(SDL_DIR)/include \
-DXBOX
CXXFLAGS += -I$(SDL_DIR)/include \
-DXBOX