1
0

Makefile cleanup - read COMPILING for details on *nix compilation

git-svn-id: http://mc-server.googlecode.com/svn/trunk@259 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
madmaxoft@gmail.com 2012-02-14 13:50:34 +00:00
parent 4d6bad2b21
commit 46df5ee331
4 changed files with 61 additions and 21 deletions

7
COMPILING Normal file
View File

@ -0,0 +1,7 @@
COMPILING
=========
To compile MCServer on *nix, either:
1, Use GNU-compatible make (with GNUmakefile) directly, as described in the GNUmakefile header
2, Copy makefile.debug or makefile.release as makefile and use any make-system
3, Use "make -f makefile.debug" or "make -f makefile.release", if your make system accepts "-f <filename>" parameter

25
makefile.debug Normal file
View File

@ -0,0 +1,25 @@
###################################################
#
# Makefile template for MCServer
# This makefile makes the debug version of MCServer (with gdb symbols, little to no optimizations)
# To use this file, either copy it as makefile or run "make -f makefile.debug"
#
# Do NOT add file dependencies here, add them to makefile_base instead
#
###################################################
# _X: These settings produce a debug build, with gdb symbols:
CC_OPTIONS = -s -ggdb
CCE_OPTIONS = -s -x c -ggdb
LNK_OPTIONS = -lstdc++ -pthread -ggdb
include makefile_base

24
makefile.release Normal file
View File

@ -0,0 +1,24 @@
###################################################
#
# Makefile template for MCServer
# This makefile makes the release version of MCServer (no symbols, more optimizations)
# To use this file, either copy it as makefile or run "make -f makefile.release"
#
# Do NOT add file dependencies here, add them to makefile_base instead
#
###################################################
# _X: these settings should be used for the release build:
CC_OPTIONS = -s -O3
CCE_OPTIONS = -s -x c -O3
LNK_OPTIONS = -lstdc++ -pthread -O3
include makefile_base

View File

@ -1,31 +1,15 @@
###################################################
#
# Makefile for MCServer
# Creator [Xcode -> Makefile Ver: Feb 14 2007 09:18:41]
# Created: [Thu Feb 24 19:53:17 2011]
# Base for MCServer Makefile
# This file only declares per-file dependencies; if a source file is added to the project, it needs to be added here
# Do not make using this file directly, instead use the makefile.* wrappers, depending on what build you want
# To use this file, either copy makefile.debug or makefile.release as makefile, or run "make -f makefile.debug" or "make -f makefile.release"
#
###################################################
#
# Macros
#
CC = /usr/bin/g++
# _X: These settings produce a debug build, with gdb symbols:
# CC_OPTIONS = -s -ggdb
# CCE_OPTIONS = -s -x c -ggdb
# LNK_OPTIONS = -lstdc++ -pthread -ggdb
# _X: these settings should be used for the release build:
CC_OPTIONS = -s -O3
CCE_OPTIONS = -s -x c -O3
LNK_OPTIONS = -lstdc++ -pthread -O3
#
# INCLUDE directories for MCServer
#
@ -1570,4 +1554,4 @@ build/WSSCompact.o : source/WSSCompact.cpp
# Template: copy and delete the "# "; insert filenames
# build/.o : source/.cpp
# $(CC) $(CC_OPTIONS) source/.cpp -c $(INCLUDE) -o build/.o
##### END RUN ####