From ad5bc37912dc64e89a9be6c62709f43ba93a12a2 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 27 Feb 2007 08:32:29 +0000 Subject: [PATCH] added linux support --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40549 --- extensions/batsupport/BATInterface.h | 5 +++-- extensions/batsupport/Makefile | 6 +----- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/extensions/batsupport/BATInterface.h b/extensions/batsupport/BATInterface.h index 7ed28961..7640f52b 100644 --- a/extensions/batsupport/BATInterface.h +++ b/extensions/batsupport/BATInterface.h @@ -12,7 +12,7 @@ #ifndef _INCLUDE_BATINTERFACE #define _INCLUDE_BATINTERFACE -#include "ismmplugin.h" +#include #define ADMININTERFACE_VERSION 0 #define ADMININTERFACE_MAXACCESSLENGTHTEXT 50 // This is the maximum length of a "flag" access text. @@ -58,4 +58,5 @@ class MyListener : public IMetamodListener public: virtual void *OnMetamodQuery(const char *iface, int *ret); }; -#endif \ No newline at end of file +#endif + diff --git a/extensions/batsupport/Makefile b/extensions/batsupport/Makefile index 537e149c..1e9d6a22 100644 --- a/extensions/batsupport/Makefile +++ b/extensions/batsupport/Makefile @@ -9,7 +9,7 @@ SOURCEMM = ../../../../sourcemm ### EDIT BELOW FOR OTHER PROJECTS ### ##################################### -PROJECT = sample +PROJECT = batsupport #Uncomment for SourceMM-enabled extensions #LINK_HL2 = $(HL2LIB)/tier1_i486.a vstdlib_i486.so tier0_i486.so @@ -60,14 +60,10 @@ endif BINARY = $(PROJECT).ext.so OBJ_LINUX := $(OBJECTS:%.cpp=$(BIN_DIR)/%.o) -OBJ_LINUX := $(OBJECTS:%.c=$(BIN_DIR)/%.o) $(BIN_DIR)/%.o: %.cpp $(CPP) $(INCLUDE) $(CFLAGS) $(CPPFLAGS) -o $@ -c $< -$(BIN_DIR)/%.o: %.c - $(CPP) $(INCLUDE) $(CFLAGS) -o $@ -c $< - all: mkdir -p $(BIN_DIR) ln -sf $(SRCDS)/bin/vstdlib_i486.so vstdlib_i486.so