From 4a455c4e4e5e192661dd1dc6089fdb870a5d4898 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 26 Sep 2007 14:43:35 +0000 Subject: [PATCH] updated makefile and linux support --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401495 --- extensions/topmenus/Makefile | 7 ++++--- extensions/topmenus/TopMenu.cpp | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/extensions/topmenus/Makefile b/extensions/topmenus/Makefile index 8c735d7d..15a4e10a 100644 --- a/extensions/topmenus/Makefile +++ b/extensions/topmenus/Makefile @@ -9,12 +9,13 @@ SOURCEMM = ../../../../sourcemm ### EDIT BELOW FOR OTHER PROJECTS ### ##################################### -PROJECT = sample +PROJECT = topmenus #Uncomment for SourceMM-enabled extensions #LINK_HL2 = $(HL2LIB)/tier1_i486.a vstdlib_i486.so tier0_i486.so -OBJECTS = sdk/smsdk_ext.cpp extension.cpp +OBJECTS = sdk/smsdk_ext.cpp extension.cpp TopMenuManager.cpp TopMenu.cpp \ + sdk/sm_memtable.cpp ############################################## ### CONFIGURE ANY OTHER FLAGS/OPTIONS HERE ### @@ -36,7 +37,7 @@ INCLUDE = -I. -I.. -Isdk -I$(HL2PUB) -I$(HL2PUB)/dlls -I$(HL2PUB)/engine -I$(HL2 -I$(HL2PUB)/vstdlib -I$(HL2SDK)/tier1 -I$(SMM_TRUNK) -I$(SMM_TRUNK)/sourcehook -I$(SMM_TRUNK)/sourcemm \ -I$(SMSDK)/public -I$(SMSDK)/public/sourcepawn -I$(SMSDK)/public/extensions \ -CFLAGS = -D_LINUX -DNDEBUG -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_snprintf=snprintf -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp -Wall -Werror -fPIC -msse -DSOURCEMOD_BUILD -DHAVE_STDINT_H +CFLAGS = -D_LINUX -DNDEBUG -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_snprintf=snprintf -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp -Wall -Werror -fPIC -msse -DSOURCEMOD_BUILD -DHAVE_STDINT_H -Wno-uninitialized CPPFLAGS = -Wno-non-virtual-dtor -fno-exceptions -fno-rtti ################################################ diff --git a/extensions/topmenus/TopMenu.cpp b/extensions/topmenus/TopMenu.cpp index c7bf307d..ca434776 100644 --- a/extensions/topmenus/TopMenu.cpp +++ b/extensions/topmenus/TopMenu.cpp @@ -30,6 +30,7 @@ */ #include +#include #include "TopMenu.h" struct obj_by_name_t