forked from AlexanderDzhoganov/ksp-advanced-flybywire
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
74 lines (64 loc) · 1.68 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
KSPDIR := ${HOME}/ksp/KSP_linux
MANAGED := ${KSPDIR}/KSP_Data/Managed
GAMEDATA := ${KSPDIR}/GameData
AFBWGAMEDATA := ${GAMEDATA}/ksp-advanced-flybywire
XIDIR := ${GAMEDATA}/ksp-advanced-flybywire
PLUGINDIR := ${AFBWGAMEDATA}
TARGETS := ksp-advanced-flybywire.dll
AFBW_FILES := \
AxisConfiguration.cs \
Bitset.cs \
Configuration.cs \
ControllerPreset.cs \
ControllerConfigurationWindow.cs \
DefaultControllerPresets.cs \
EVAController.cs \
FlightManager.cs \
FlightProperty.cs \
KeyboardMouseController.cs \
ModSettingsWindow.cs \
PresetEditorWindow.cs \
PresetEditorWindowNG.cs \
SDL2.cs \
SDLController.cs \
Stringify.cs \
StringMarshaller.cs \
Utility.cs \
WarpController.cs \
EvaluationCurves.cs \
AdvancedFlyByWire.cs \
IController.cs \
CameraController.cs \
Properties/AssemblyInfo.cs \
ToolbarWrapper.cs \
$e
DOC_FILES := \
License.txt \
README.md
RESGEN2 := resgen2
GMCS := mcs
GMCSFLAGS := -optimize -unsafe -d:LINUX
GIT := git
TAR := tar
ZIP := zip
all: ${TARGETS}
info:
@echo "ksp-advanced-flybywire Build Information"
@echo " resgen2: ${RESGEN2}"
@echo " gmcs: ${GMCS}"
@echo " gmcs flags: ${GMCSFLAGS}"
@echo " git: ${GIT}"
@echo " tar: ${TAR}"
@echo " zip: ${ZIP}"
@echo " KSP Data: ${KSPDIR}"
ksp-advanced-flybywire.dll: ${AFBW_FILES}
${GMCS} ${GMCSFLAGS} -t:library -lib:${XIDIR},${MANAGED} \
-r:Assembly-CSharp,Assembly-CSharp-firstpass \
-r:UnityEngine,UnityEngine.UI \
-out:$@ $^
clean:
rm -f ${TARGETS} AssemblyInfo.cs
install: all
mkdir -p ${PLUGINDIR}
cp ${TARGETS} ${PLUGINDIR}
.PHONY: all clean install