forked from RSDKModding/RSDKv4-Decompilation
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
95 lines (88 loc) · 3.74 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
CXXFLAGS_ALL = $(shell pkg-config --cflags --static sdl2 vorbisfile vorbis glew) $(CXXFLAGS) \
-DBASE_PATH='"$(BASE_PATH)"' \
-IRSDKv4/ \
-IRSDKv4/NativeObjects/ \
-Idependencies/all/asio/include/ \
-Idependencies/all/stb-image/ \
-Idependencies/all/tinyxml2/
LDFLAGS_ALL = $(LDFLAGS)
LIBS_ALL = $(shell pkg-config --libs --static sdl2 vorbisfile vorbis glew) -pthread $(LIBS)
SOURCES = \
dependencies/all/tinyxml2/tinyxml2.cpp \
RSDKv4/Animation.cpp \
RSDKv4/Audio.cpp \
RSDKv4/Collision.cpp \
RSDKv4/Debug.cpp \
RSDKv4/Drawing.cpp \
RSDKv4/Ini.cpp \
RSDKv4/Input.cpp \
RSDKv4/main.cpp \
RSDKv4/Math.cpp \
RSDKv4/ModAPI.cpp \
RSDKv4/Networking.cpp \
RSDKv4/Object.cpp \
RSDKv4/Palette.cpp \
RSDKv4/Reader.cpp \
RSDKv4/Renderer.cpp \
RSDKv4/RetroEngine.cpp \
RSDKv4/Scene.cpp \
RSDKv4/Scene3D.cpp \
RSDKv4/Script.cpp \
RSDKv4/Sprite.cpp \
RSDKv4/String.cpp \
RSDKv4/Text.cpp \
RSDKv4/Userdata.cpp \
RSDKv4/NativeObjects/AboutScreen.cpp \
RSDKv4/NativeObjects/AchievementDisplay.cpp \
RSDKv4/NativeObjects/AchievementsButton.cpp \
RSDKv4/NativeObjects/AchievementsMenu.cpp \
RSDKv4/NativeObjects/BackButton.cpp \
RSDKv4/NativeObjects/CWSplash.cpp \
RSDKv4/NativeObjects/CreditText.cpp \
RSDKv4/NativeObjects/DialogPanel.cpp \
RSDKv4/NativeObjects/FadeScreen.cpp \
RSDKv4/NativeObjects/InstructionsScreen.cpp \
RSDKv4/NativeObjects/LeaderboardsButton.cpp \
RSDKv4/NativeObjects/MenuBG.cpp \
RSDKv4/NativeObjects/MenuControl.cpp \
RSDKv4/NativeObjects/ModInfoButton.cpp \
RSDKv4/NativeObjects/ModsButton.cpp \
RSDKv4/NativeObjects/ModsMenu.cpp \
RSDKv4/NativeObjects/MultiplayerButton.cpp \
RSDKv4/NativeObjects/MultiplayerHandler.cpp \
RSDKv4/NativeObjects/MultiplayerScreen.cpp \
RSDKv4/NativeObjects/OptionsButton.cpp \
RSDKv4/NativeObjects/OptionsMenu.cpp \
RSDKv4/NativeObjects/PauseMenu.cpp \
RSDKv4/NativeObjects/PlayerSelectScreen.cpp \
RSDKv4/NativeObjects/PushButton.cpp \
RSDKv4/NativeObjects/RecordsScreen.cpp \
RSDKv4/NativeObjects/RetroGameLoop.cpp \
RSDKv4/NativeObjects/SaveSelect.cpp \
RSDKv4/NativeObjects/SegaIDButton.cpp \
RSDKv4/NativeObjects/SegaSplash.cpp \
RSDKv4/NativeObjects/SettingsScreen.cpp \
RSDKv4/NativeObjects/StaffCredits.cpp \
RSDKv4/NativeObjects/StartGameButton.cpp \
RSDKv4/NativeObjects/SubMenuButton.cpp \
RSDKv4/NativeObjects/TextLabel.cpp \
RSDKv4/NativeObjects/TimeAttack.cpp \
RSDKv4/NativeObjects/TimeAttackButton.cpp \
RSDKv4/NativeObjects/TitleScreen.cpp \
RSDKv4/NativeObjects/VirtualDPad.cpp \
RSDKv4/NativeObjects/VirtualDPadM.cpp \
RSDKv4/NativeObjects/ZoneButton.cpp \
ifneq ($(FORCE_CASE_INSENSITIVE),)
CXXFLAGS_ALL += -DFORCE_CASE_INSENSITIVE
SOURCES += RSDKv4/fcaseopen.c
endif
objects/%.o: %
mkdir -p $(@D)
$(CXX) $(CXXFLAGS_ALL) -std=c++17 $^ -o $@ -c
bin/RSDKv4: $(SOURCES:%=objects/%.o)
mkdir -p $(@D)
$(CXX) $(CXXFLAGS_ALL) $(LDFLAGS_ALL) $^ -o $@ $(LIBS_ALL)
install: bin/RSDKv4
install -Dp -m755 bin/RSDKv4 $(prefix)/bin/RSDKv4
clean:
rm -r -f bin && rm -r -f objects