Skip to content

Commit 0ec3983

Browse files
author
James Danielson
committed
First upload on Alpha.
0 parents  commit 0ec3983

33 files changed

+3411
-0
lines changed

Makefile

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
all:
2+
cp template.h defines.h
3+
g++ main.cpp game.cpp irc.cpp modules.cpp -o GameServ -lmysqlclient -rdynamic -ldl
4+
nomysql:
5+
cat template.h | sed "s/#define USE_MYSQL/\/\/#define USE_MYSQL/" > defines.h
6+
g++ main.cpp game.cpp irc.cpp -o GameServ -rdynamic -ldl
7+
install:
8+
cp GameServ /usr/bin/GameServ
9+
chmod 0755 /usr/bin/GameServ
10+
uninstall:
11+
rm -f /usr/bin/GameServ
12+
clean:
13+
rm -f GameServ

Readme

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Mysql support needs: libmysqlclient16
2+
3+
Compiling (With mysql support):
4+
g++ main.cpp irc.cpp game.cpp -o GameServ -lmysqlclient
5+
6+
Compiling (Without mysql support):
7+
Same as above only without "-lmysqlclient" be sure to comment out the line "#define USE_MYSQL" in defines.h as well.
8+
9+
For Windows support: (Experimental)
10+
Comment out "#define LINUX" and uncomment "#define WINDOWS" in defines.h

0 commit comments

Comments
 (0)