added linux support

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40549
This commit is contained in:
David Anderson 2007-02-27 08:32:29 +00:00
parent 88023370ea
commit ad5bc37912
2 changed files with 4 additions and 7 deletions

View File

@ -12,7 +12,7 @@
#ifndef _INCLUDE_BATINTERFACE
#define _INCLUDE_BATINTERFACE
#include "ismmplugin.h"
#include <ISmmPlugin.h>
#define ADMININTERFACE_VERSION 0
#define ADMININTERFACE_MAXACCESSLENGTHTEXT 50 // This is the maximum length of a "flag" access text.
@ -59,3 +59,4 @@ public:
virtual void *OnMetamodQuery(const char *iface, int *ret);
};
#endif

View File

@ -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