Skip to content

Commit f13667c

Browse files
committed
Makefiles to compile GunchoConsole on Linux with Mono.
1 parent 819ef68 commit f13667c

File tree

3 files changed

+42
-0
lines changed

3 files changed

+42
-0
lines changed

Guncho.Core/Makefile

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Makefile for Mono
2+
3+
SRC=Commands.cs ILogger.cs PriorityQueue.cs ReplacingStream.cs \
4+
Connection.cs Instance.cs Realm.cs Server.cs \
5+
Controller.cs Player.cs RealmFactory.cs ServerRunner.cs \
6+
Properties/AssemblyInfo.cs Properties/Settings.Designer.cs \
7+
XML/playerIndex.cs XML/realmIndex.cs XML/realmStorage.cs
8+
9+
CSC=csc
10+
REFS=-r:../TextfyreVM.dll \
11+
-r:System.Runtime.Remoting.dll \
12+
-r:System.Web.dll
13+
14+
bin/Guncho.Core.dll: $(SRC)
15+
mkdir -p bin
16+
$(CSC) -out:bin/Guncho.Core.dll -target:library $(REFS) $(SRC)
17+
18+

GunchoConsole/Makefile

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Makefile for Mono
2+
3+
SRC=Program.cs Properties/AssemblyInfo.cs
4+
5+
CSC=csc
6+
REFS=-r:../Guncho.Core/bin/Guncho.Core.dll
7+
8+
bin/GunchoConsole.exe: $(SRC) ../Guncho.Core/bin/Guncho.Core.dll
9+
mkdir -p bin
10+
$(CSC) -out:bin/GunchoConsole.exe -target:exe $(REFS) $(SRC)

Makefile

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Makefile for Mono
2+
3+
BINS=Guncho.Core/bin/Guncho.Core.dll \
4+
GunchoConsole/bin/GunchoConsole.exe \
5+
TextfyreVM.dll
6+
7+
all: force_build
8+
cd Guncho.Core; make
9+
cd GunchoConsole; make
10+
mkdir -p bin
11+
cp $(BINS) bin
12+
13+
force_build:
14+
true

0 commit comments

Comments
 (0)