1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2025-01-30 19:52:17 +01:00

Updated stub and sample plugins to compile for latest L4D2 update (bug 4360, r=dvander).

This commit is contained in:
Scott Ehlert 2010-04-23 16:59:32 -04:00
parent 2c5cd02440
commit 42688bbb28
3 changed files with 28 additions and 24 deletions

View File

@ -1,4 +1,4 @@
# (C)2004-2009 SourceMod Development Team
# (C)2004-2010 SourceMod Development Team
# Makefile written by David "BAILOPAN" Anderson
SRCDS_BASE = ~/srcds
@ -73,7 +73,7 @@ ifeq "$(ENGINE)" "left4dead2"
HL2LIB = $(HL2SDK)/lib/linux
CFLAGS += -DSOURCE_ENGINE=6
INCLUDE += -I$(HL2SDK)/public/game/server
SRCDS = $(SRCDS_BASE)/left4dead2_demo
SRCDS = $(SRCDS_BASE)/left4dead2
BINARY = metamod.2.l4d2.so
LIB_PREFIX = lib
LIB_SUFFIX = .so

View File

@ -1,4 +1,4 @@
# (C)2004-2009 Metamod:Source Development Team
# (C)2004-2010 Metamod:Source Development Team
# Makefile written by David "BAILOPAN" Anderson
###########################################
@ -38,7 +38,7 @@ ifeq "$(ENGINE)" "original"
METAMOD = $(MMSOURCE18)/core-legacy
INCLUDE += -I$(HL2SDK)/public/dlls
SRCDS = $(SRCDS_BASE)
LIB_SUFFIX = i486
LIB_SUFFIX = _i486.so
override ENGSET = true
endif
ifeq "$(ENGINE)" "orangebox"
@ -49,7 +49,7 @@ ifeq "$(ENGINE)" "orangebox"
METAMOD = $(MMSOURCE18)/core
INCLUDE += -I$(HL2SDK)/public/game/server
SRCDS = $(SRCDS_BASE)/orangebox
LIB_SUFFIX = i486
LIB_SUFFIX = _i486.so
override ENGSET = true
endif
ifeq "$(ENGINE)" "orangeboxvalve"
@ -60,7 +60,7 @@ ifeq "$(ENGINE)" "orangeboxvalve"
METAMOD = $(MMSOURCE18)/core
INCLUDE += -I$(HL2SDK)/public/game/server
SRCDS = $(SRCDS_BASE)/orangebox
LIB_SUFFIX = i486
LIB_SUFFIX = _i486.so
override ENGSET = true
endif
ifeq "$(ENGINE)" "left4dead"
@ -71,7 +71,7 @@ ifeq "$(ENGINE)" "left4dead"
METAMOD = $(MMSOURCE18)/core
INCLUDE += -I$(HL2SDK)/public/game/server
SRCDS = $(SRCDS_BASE)/l4d
LIB_SUFFIX = i486
LIB_SUFFIX = _i486.so
override ENGSET = true
endif
ifeq "$(ENGINE)" "left4dead2"
@ -81,15 +81,17 @@ ifeq "$(ENGINE)" "left4dead2"
CFLAGS += -DSOURCE_ENGINE=5
METAMOD = $(MMSOURCE18)/core
INCLUDE += -I$(HL2SDK)/public/game/server
SRCDS = $(SRCDS_BASE)/left4dead2_demo
LIB_SUFFIX = linux
SRCDS = $(SRCDS_BASE)/left4dead2
LIB_PREFIX = lib
LIB_SUFFIX = .so
override ENGSET = true
endif
CFLAGS += -DSE_EPISODEONE=1 -DSE_DARKMESSIAH=2 -DSE_ORANGEBOX=3 -DSE_ORANGEBOXVALVE=4 \
-DSE_LEFT4DEAD=5 -DSE_LEFT4DEAD2=6
LINK += $(HL2LIB)/tier1_i486.a vstdlib_$(LIB_SUFFIX).so tier0_$(LIB_SUFFIX).so -static-libgcc
LINK += $(HL2LIB)/tier1_i486.a $(LIB_PREFIX)vstdlib$(LIB_SUFFIX) $(LIB_PREFIX)tier0$(LIB_SUFFIX) \
-static-libgcc
INCLUDE += -I. -I.. -I$(HL2PUB) -I$(HL2PUB)/engine -I$(HL2PUB)/mathlib -I$(HL2PUB)/vstdlib \
-I$(HL2PUB)/tier0 -I$(HL2PUB)/tier1 -I. -I$(METAMOD) -I$(METAMOD)/sourcehook
@ -124,14 +126,14 @@ $(BIN_DIR)/%.o: %.cpp
all: check
mkdir -p $(BIN_DIR)
ln -sf $(HL2LIB)/vstdlib_$(LIB_SUFFIX).so
ln -sf $(HL2LIB)/tier0_$(LIB_SUFFIX).so
ln -sf $(HL2LIB)/$(LIB_PREFIX)vstdlib$(LIB_SUFFIX)
ln -sf $(HL2LIB)/$(LIB_PREFIX)tier0$(LIB_SUFFIX)
$(MAKE) -f Makefile sample_mm
check:
if [ "$(ENGSET)" = "false" ]; then \
echo "You must supply one of the following values for ENGINE:"; \
echo "left4dead2, left4dead, orangeboxvalve or orangebox"; \
echo "left4dead2, left4dead, orangeboxvalve, orangebox, or original"; \
exit 1; \
fi

View File

@ -1,4 +1,4 @@
# (C)2004-2009 Metamod:Source Development Team
# (C)2004-2010 Metamod:Source Development Team
# Makefile written by David "BAILOPAN" Anderson
###########################################
@ -38,7 +38,7 @@ ifeq "$(ENGINE)" "original"
METAMOD = $(MMSOURCE18)/core-legacy
INCLUDE += -I$(HL2SDK)/public/dlls
SRCDS = $(SRCDS_BASE)
LIB_SUFFIX = i486
LIB_SUFFIX = _i486.so
override ENGSET = true
endif
ifeq "$(ENGINE)" "orangebox"
@ -49,7 +49,7 @@ ifeq "$(ENGINE)" "orangebox"
METAMOD = $(MMSOURCE18)/core
INCLUDE += -I$(HL2SDK)/public/game/server
SRCDS = $(SRCDS_BASE)/orangebox
LIB_SUFFIX = i486
LIB_SUFFIX = _i486.so
override ENGSET = true
endif
ifeq "$(ENGINE)" "orangeboxvalve"
@ -60,7 +60,7 @@ ifeq "$(ENGINE)" "orangeboxvalve"
METAMOD = $(MMSOURCE18)/core
INCLUDE += -I$(HL2SDK)/public/game/server
SRCDS = $(SRCDS_BASE)/orangebox
LIB_SUFFIX = i486
LIB_SUFFIX = _i486.so
override ENGSET = true
endif
ifeq "$(ENGINE)" "left4dead"
@ -71,7 +71,7 @@ ifeq "$(ENGINE)" "left4dead"
METAMOD = $(MMSOURCE18)/core
INCLUDE += -I$(HL2SDK)/public/game/server
SRCDS = $(SRCDS_BASE)/l4d
LIB_SUFFIX = i486
LIB_SUFFIX = _i486.so
override ENGSET = true
endif
ifeq "$(ENGINE)" "left4dead2"
@ -81,15 +81,17 @@ ifeq "$(ENGINE)" "left4dead2"
CFLAGS += -DSOURCE_ENGINE=6
METAMOD = $(MMSOURCE18)/core
INCLUDE += -I$(HL2SDK)/public/game/server
SRCDS = $(SRCDS_BASE)/left4dead2_demo
LIB_SUFFIX = linux
SRCDS = $(SRCDS_BASE)/left4dead2
LIB_PREFIX = lib
LIB_SUFFIX = .so
override ENGSET = true
endif
CFLAGS += -DSE_EPISODEONE=1 -DSE_DARKMESSIAH=2 -DSE_ORANGEBOX=3 -DSE_ORANGEBOXVALVE=4 \
-DSE_LEFT4DEAD=5 -DSE_LEFT4DEAD2=6
LINK += $(HL2LIB)/tier1_i486.a vstdlib_$(LIB_SUFFIX).so tier0_$(LIB_SUFFIX).so -static-libgcc
LINK += $(HL2LIB)/tier1_i486.a $(LIB_PREFIX)vstdlib$(LIB_SUFFIX) $(LIB_PREFIX)tier0$(LIB_SUFFIX) \
-static-libgcc
INCLUDE += -I. -I.. -I$(HL2PUB) -I$(HL2PUB)/engine -I$(HL2PUB)/mathlib -I$(HL2PUB)/vstdlib \
-I$(HL2PUB)/tier0 -I$(HL2PUB)/tier1 -I. -I$(METAMOD) -I$(METAMOD)/sourcehook
@ -124,14 +126,14 @@ $(BIN_DIR)/%.o: %.cpp
all: check
mkdir -p $(BIN_DIR)
ln -sf $(HL2LIB)/vstdlib_$(LIB_SUFFIX).so
ln -sf $(HL2LIB)/tier0_$(LIB_SUFFIX).so
ln -sf $(HL2LIB)/$(LIB_PREFIX)vstdlib$(LIB_SUFFIX)
ln -sf $(HL2LIB)/$(LIB_PREFIX)tier0$(LIB_SUFFIX)
$(MAKE) -f Makefile stub_mm
check:
if [ "$(ENGSET)" = "false" ]; then \
echo "You must supply one of the following values for ENGINE:"; \
echo "left4dead2, left4dead, orangeboxvalve or orangebox"; \
echo "left4dead2, left4dead, orangeboxvalve, orangebox, or original"; \
exit 1; \
fi