This is a multi-part message in MIME format.
--
I send you many Makefile specially prepared for easy utilization and
compilation.
Backup all your Makefile.* and replace it by my Makefile.

Don't forget to modifies the header of the file : Makefile for
adjust to your configuration.

I am ready to help you more.

PS : Sorry for my bad English (French :D).

Jed a écrit :
> Err there aren't any files to share. Everything on that page is pretty
> much what you need to do including links/commands to have stuff
> download. It even has downloads to Fedora core 6 images for VMWare
> player if you just want to set-up a virtual machine.
>
> I'm working on updating it for Fedora Core 8 at the moment.
>
> - Jed
>
> On 04/12/2007, Mark Chandler <[EMAIL PROTECTED]> wrote:
>
>> You mind sharing the files as im a complete noob with linux
>>
>> -----Original Message-----
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] On Behalf Of Jed
>> Sent: Tuesday, December 04, 2007 8:52 PM
>> To: [email protected]
>> Subject: Re: [hlcoders] Linux Compile
>>
>> Which version of xerces are you using? I tried with 2.7.0 and had all
>> sorts of problems so I went back and hand-rolled 2.6.0 from the
>> source.
>>
>> You can find details of how I did it here:
>>
>> http://developer.valvesoftware.com/wiki/User:Wunderboy/sandbox
>>
>> - Jed
>>
>> On 04/12/2007, Mark Chandler <[EMAIL PROTECTED]> wrote:
>>
>>> Hey guys im having troubles compiling my mod under linux. It gets up to
>>>
>> the
>>
>>> stage of trying to compile and then spits this error out:
>>>
>>>  [code]
>>> bash-3.1# make
>>> if [ -z "gcc" ]; then echo "Compiler not defined."; exit; fi
>>> if [ ! -d . ];then mkdir .;fi
>>> cd .
>>> if [ ! -f "tier0_i486.so" ]; then ln -s
>>> /root/gesource/main/bin/tier0_i486.so .; fi
>>> if [ ! -f "vstdlib_i486.so" ]; then ln -s
>>> /root/gesource/main/bin/vstdlib_i486.so .; fi
>>> ./vcpm ../dlls/server.vcproj
>>> ./vcpm: error while loading shared libraries: libxerces-c.so.28: cannot
>>>
>> open
>>
>>> shared object file: No such file or directory
>>> make: *** [mod] Error 127
>>> bash-3.1#
>>> [/code]
>>>
>>> I have set the LD_LIBRARY_PATH to point to xerces dir. I cant find any one
>>> else with this error. Any help would be appreciated.
>>>
>>> _______________________________________________
>>> To unsubscribe, edit your list preferences, or view the list archives,
>>>
>> please visit:
>>
>>> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>>>
>>>
>>>
>> _______________________________________________
>> To unsubscribe, edit your list preferences, or view the list archives,
>> please visit:
>> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>>
>> _______________________________________________
>> To unsubscribe, edit your list preferences, or view the list archives, 
>> please visit:
>> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>>
>>
>>
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives, please 
> visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>
>
>
--
#
# -< Perfect Dark >-
#
# SDK Makefile for x86 Linux
#
# $Id: Makefile.pdark 1456 2007-04-22 20:05:26Z bombela $

#############################################################################
# Developer configurable items
#############################################################################

# the directory the base binaries (bin/tier0_i486.so, etc) are located
GAME_DIR=/media/prog/valve

# compiler options (gcc 3.4.1 or above is required)
CC=gcc-3.4
CPLUS=g++-3.4
CLINKER=gcc-3.4

# The gcc lib c++ (directory of libstdc++.a and libgcc_eh.a)
BASE_CPP_LIB=/usr/lib/gcc/i486-linux-gnu/3.4.6

# XERCES 2.6.0 or above ( http://xml.apache.org/xerces-c/ ) is used by the 
vcproj to makefile converter
# it must be installed before being able to run this makefile
XERCES_INC_DIR=/usr/include
XERCES_LIB_DIR=/usr/lib

# PROJECT DEBUG MODE
# Equal 1 for activate. (Or add -D PROJECT_DEBUG=1 make program parameter).
# It's usefull for compile with no optimization and use gdb and/or valgrind ;)
PROJECT_DEBUG=1

# Use and activate ccache.
# Two cache dir are used :
# ccache_release
# ccache_debug
ACTIVE_CCACHE=1

#############################################################################
# Things below here shouldn't need to be altered
#############################################################################

# the name of the mod binary (_i486.so is appended to the end)
NAME=server

# the location of the vcproj that builds the mod
MOD_PROJ=../dlls/hl_sdk.vcproj

# link flags for your mod, make sure to include any special libraries here
LDFLAGS=-lm -ldl tier0_i486.so vstdlib_i486.so mathlib_i486.a 
choreoobjects_i486.a tier1_i486.a

# For include lib in current directory (aka link : tier0_i486.so 
vstdlib_i486.so).
export LD_LIBRARY_PATH=.

# Re-define the automatic $(MAKE) define
MAKE:=$(MAKE) --no-print-directory

# A nice echo
include Makefile.echo

[EMAIL PROTECTED](call ECHO_MAGENTA,Linking \t$@); $(CLINKER)

# the dir we want to put binaries we build into
BUILD_DIR=.
# the place to put object files
BUILD_OBJ_DIR=$(BUILD_DIR)/obj

# the location of the source code
SOURCE_DIR=..

# the CPU target for the build, must be i486 for now
ARCH=i486
ARCH_CFLAGS=-mtune=i686 -march=pentium3 -mmmx

ifeq ($(PROJECT_DEBUG),1)
  # PROJECT DEBUG MODE
  ARCH_CFLAGS+=-O0 -g -D_PROJECT_DEBUG
  # the name of the mod configuration (typically <proj name>_<build type><build 
target>)
  MOD_CONFIG=hl_ReleaseHL2Win32

  # Define ccache dir
  ifeq ($(ACTIVE_CCACHE),1)
    CCACHE_DIR:=./ccache_debug
  endif
else
  # PROJECT RELEASE MODE
  ARCH_CFLAGS+=-O2
  # the name of the mod configuration (typically <proj name>_<build type><build 
target>)
  MOD_CONFIG=hl_ReleaseHL2Win32

  # Define ccache dir
  ifeq ($(ACTIVE_CCACHE),1)
    CCACHE_DIR:=./ccache_release
  endif
endif

ifeq ($(ACTIVE_CCACHE),1)
  CC:=ccache $(CC)
  CPLUS:=ccache $(CPLUS)
  CLINKER:=ccache $(CLINKER)
  export CCACHE_DIR
endif

# -fpermissive is so gcc 3.4.x doesn't complain about some template stuff
BASE_CFLAGS=-fpermissive -D_LINUX -DNDEBUG -Dstricmp=strcasecmp 
-D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp 
-D_snprintf=snprintf -D_vsnprintf=vsnprintf -D_alloca=alloca 
-Dstrcmpi=strcasecmp
SHLIBEXT=so
SHLIBCFLAGS=-fPIC
SHLIBLDFLAGS=-shared -Wl,-Map,[EMAIL PROTECTED] -Wl

# CPP lib
CPP_LIB=$(BASE_CPP_LIB)/libstdc++.a $(BASE_CPP_LIB)/libgcc_eh.a

#flags passed to the c compiler
CFLAGS=$(DEFINES) $(ARCH_CFLAGS) $(BASE_CFLAGS) 
-Usprintf=use_Q_snprintf_instead_of_sprintf -Ustrncpy=use_Q_strncpy_instead 
-UPROTECTED_THINGS_ENABLE

# define list passed to make for the sub makefile
BASE_DEFINES=CC="$(CC)" CPLUS="$(CPLUS)" CPP_LIB="$(CPP_LIB)" \
        BUILD_DIR=$(BUILD_DIR) BUILD_OBJ_DIR=$(BUILD_OBJ_DIR) \
        SOURCE_DIR=$(SOURCE_DIR) SHLIBLDFLAGS="$(SHLIBLDFLAGS)" 
SHLIBEXT="$(SHLIBEXT)" \
        CLINK="$(CLINK)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" \
        ARCH=$(ARCH) GAME_DIR=$(GAME_DIR) MOD_CONFIG=$(MOD_CONFIG) NAME=$(NAME) 
\
        XERCES_INC_DIR=$(XERCES_INC_DIR) XERCES_LIB_DIR=$(XERCES_LIB_DIR)

# Project Makefile
MAKE_MOD=Makefile.mod
MAKE_VCPM=Makefile.vcpm
MAKE_PLUGIN=Makefile.plugin

all: check vcpm mod

check:
ifeq ($(PROJECT_DEBUG),1)
        @$(call ECHO_WHITE,Perfect Dark:Source - DEBUG MODE - Building...)
        [EMAIL PROTECTED] -f build_release ] && $(call ECHO_GREEN,Remove last 
RELEASE BUILD.) && rm -rf obj/ build_release
        @touch build_debug
else
        @$(call ECHO_WHITE,Perfect Dark:Source - RELEASE MODE - Building...)
        [EMAIL PROTECTED] -f build_debug ] && $(call ECHO_GREEN,Remove last 
DEBUG BUILD.) && rm -rf obj/ build_debug
        @touch build_release
endif
        @if [ -z "$(CC)" ]; then echo "Compiler not defined."; exit; fi
        @if [ ! -d $(BUILD_DIR) ];then mkdir $(BUILD_DIR);fi
        @cd $(BUILD_DIR)

vcpm:
        @$(call ECHO_CYAN,Make \t$(MAKE_VCPM))
        @$(MAKE) -f $(MAKE_VCPM) $(BASE_DEFINES)

mod: vcpm
        @if [ ! -f "tier0_i486.so" ]; then ln -s $(GAME_DIR)/bin/tier0_i486.so 
.; fi
        @if [ ! -f "vstdlib_i486.so" ]; then ln -s 
$(GAME_DIR)/bin/vstdlib_i486.so .; fi
        @$(call ECHO_YELLOW,Generating Makefile from \t$(MOD_PROJ))
        @./vcpm $(MOD_PROJ)
        @$(call ECHO_CYAN,Make \t$(MAKE_MOD))
        @$(MAKE) -f $(MAKE_MOD) $(BASE_DEFINES)
ifeq ($(PROJECT_DEBUG),1)
        @$(call ECHO_WHITE,Perfect Dark:Source - DEBUG MODE - Builded with 
success.)
else
        @$(call ECHO_WHITE,Perfect Dark:Source - RELEASE MODE - Builded with 
success.)
endif

plugin:
        @$(call ECHO_CYAN,Make \t$(MAKE_PLUGIN))
        @$(MAKE) -f $(MAKE_PLUGIN) $(BASE_DEFINES)

clean:
        @$(call ECHO_CYAN,Make \t$(MAKE_VCPM) clean)
        @$(MAKE) -f $(MAKE_VCPM) $(BASE_DEFINES) clean
        @$(call ECHO_CYAN,Make \t$(MAKE_PLUGIN) clean)
        @$(MAKE) -f $(MAKE_PLUGIN) $(BASE_DEFINES) clean
        @$(call ECHO_CYAN,Make \t$(MAKE_MOD) clean)
        @$(MAKE) -f $(MAKE_MOD) $(BASE_DEFINES) clean

--
ECHO_CYAN=echo "\033[36m\033[1m$(1)\033[0m"
ECHO_BLUE=echo "\033[34m\033[1m$(1)\033[0m"
ECHO_YELLOW=echo "\033[33m\033[1m$(1)\033[0m"
ECHO_WHITE=echo "\033[37m\033[1m$(1)\033[0m"
ECHO_GREEN=echo "\033[32m\033[1m$(1)\033[0m"

ECHO_MAGENTA=echo '\033[35m\033[1m$(1)\033[0m'
--
[ Makefile.mod of type audio/x-mod deleted ]
--
#
# VCProject file to Makefile converter
#
# November 2004, [EMAIL PROTECTED]
#

# A nice echo
include Makefile.echo

VCPM_SRC_DIR=$(SOURCE_DIR)/utils/vprojtomake
UTIL_COMMON_SRC_DIR=$(SOURCE_DIR)/utils/common
TIER1_PUBLIC_SRC_DIR=$(SOURCE_DIR)/public/tier1
PUBLIC_SRC_DIR=$(SOURCE_DIR)/public
TIER1_SRC_DIR=$(SOURCE_DIR)/tier1

VCPM_OBJ_DIR=$(BUILD_OBJ_DIR)/vcpm
TIER1_OBJ_DIR=$(BUILD_OBJ_DIR)/vcpm/public

#we use custome CFLAGS because the base ones interfere with XERCES
CFLAGS= -w -fpermissive -D_LINUX -DNDEBUG -D_alloca=alloca -D_snprintf=snprintf 
-D_vsnprintf=vsnprintf $(ARCH_CFLAGS)
#DEBUG = -g -ggdb
#CFLAGS+= $(DEBUG)

INCLUDEDIRS=-I$(PUBLIC_SRC_DIR) -I$(XERCES_INC_DIR) -I$(UTIL_COMMON_SRC_DIR) 
-I$(TIER1_PUBLIC_SRC_DIR)
LDFLAGS_VC=-lm -ldl -L$(XERCES_LIB_DIR) -lxerces-c 
$(GAME_DIR)/bin/tier0_i486.so $(GAME_DIR)/bin/vstdlib_i486.so

[EMAIL PROTECTED](call ECHO_BLUE,Compiling \t$<); $(CPLUS) $(INCLUDEDIRS) -w 
$(CFLAGS) -DARCH=$(ARCH) -o $@ -c $<

#####################################################################

VCPM_OBJS = \
        $(VCPM_OBJ_DIR)/makefilecreator.o \
        $(VCPM_OBJ_DIR)/vprojtomake.o \
        $(VCPM_OBJ_DIR)/vcprojconvert.o \

TIER1_OBJS = \
        $(TIER1_OBJ_DIR)/characterset.o \
        $(TIER1_OBJ_DIR)/interface.o \
        $(TIER1_OBJ_DIR)/generichash.o \
        $(TIER1_OBJ_DIR)/KeyValues.o \
        $(TIER1_OBJ_DIR)/stringpool.o \
        $(TIER1_OBJ_DIR)/utlbuffer.o \
        $(TIER1_OBJ_DIR)/utlsymbol.o \

all: dirs vcpm

dirs:
        -mkdir $(BUILD_OBJ_DIR)
        -mkdir $(VCPM_OBJ_DIR)
        -mkdir $(TIER1_OBJ_DIR)

vcpm: $(VCPM_OBJS) $(TIER1_OBJS)
        $(CLINK) $(DEBUG) -o $(BUILD_DIR)/$@ $(VCPM_OBJS) $(TIER1_OBJS) 
$(CPP_LIB) $(LDFLAGS_VC)

$(VCPM_OBJ_DIR)/%.o: $(VCPM_SRC_DIR)/%.cpp
        $(DO_CC)

$(TIER1_OBJ_DIR)/%.o: $(TIER1_SRC_DIR)/%.cpp
        $(DO_CC) -Dstricmp=strcasecmp -Dstrcmpi=strcasecmp

clean:
        -rm -rf $(VCPM_OBJ_DIR)
        -rm -f vcpm
--

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to