[SlashMUD-commits] slashmudx/plugins/FireSwamp Makefile.cygwin,NONE,1.1 Makefile.freebsd,NONE,1.1 Ma
Status: Alpha
Brought to you by:
koryn
From: <nt...@us...> - 2003-12-28 20:11:50
|
Update of /cvsroot/slashmud/slashmudx/plugins/FireSwamp In directory sc8-pr-cvs1:/tmp/cvs-serv29799 Added Files: Makefile.cygwin Makefile.freebsd Makefile.macosx README Log Message: Add makefiles and readme. --- NEW FILE: Makefile.cygwin --- # $Header: /cvsroot/slashmud/slashmudx/plugins/FireSwamp/Makefile.cygwin,v 1.1 2003/12/28 20:11:46 ntiffin Exp $ # Programs to use for archiving, compiling, compressing and making AR = /usr/bin/ar CC = /usr/bin/gcc CP = /usr/bin/cp DLLTOOL = /usr/bin/dlltool GZIP = /usr/bin/gzip MAKE = /usr/bin/make MKDIR = /usr/bin/mkdir RM = /usr/bin/rm TAR = /usr/bin/tar BASE_NAME = slashmudx BIN_NAME = $(BASE_NAME).exe BIN_DEBUG_NAME = $(BASE_NAME).debug.exe STUB_LIB_NAME = $(BASE_NAME).lib EXPORT_GLUE_NAME = $(BASE_NAME)_export.o PLUGIN_BASE_NAME = fireswamp PLUGIN_NAME = $(PLUGIN_BASE_NAME).so PLUGIN_DEBUG_NAME = $(PLUGIN_BASE_NAME).debug.so LIBKORYN_DIR = ../../../libraries/kdg COMMON_LIBRARIES = BUILD_LIBRARIES = $(LIBKORYN_DIR)/libkoryn.a DEBUG_LIBRARIES = $(LIBKORYN_DIR)/libkoryn.debug.a SLASHMUDX_DIR = ../.. SLASHMUDX_BIN_DIR = $(SLASHMUDX_DIR)/bin SLASHMUDX_SRC_DIR = $(SLASHMUDX_DIR)/src PLUGIN_DIR = $(SLASHMUDX_BIN_DIR)/plugins GLUE_DIR = ../common BIN_DIR = ./bin BUILD_DIR = ./build SOURCE_DIR = . # Compiler flags -ftime-report -fmem-report DEBUG_FLAGS = -DDEBUG_VERSION -g -fbounds-check -fstack-check BUILD_FLAGS = -O3 -funroll-loops -fdelete-null-pointer-checks -fexpensive-optimizations CFLAGS = -DTARGET_CYGWIN -Wall -fmemoize-lookups -I$(SOURCE_DIR) -I$(SLASHMUDX_SRC_DIR) -I$(LIBKORYN_DIR) # Notes about the gcc flags: # # -ggdb means produce debugging information in the best format for GDB # -pedantic means flag more errors in ISO C/C++ conformance # -pg means produce profiling information for gprof (view with gprof <objfile> <gmon.out>) # -a means produce profiling information about basic blocks # -Q means print function names during compilation and summary stats afterwards # -funroll-loops is an optimization not implied by -O3 (because it may increase code size) # -Wall enables all warnings # -pedantic enforces conformance to ISO C # -fmemoize-lookups -fsave-memoized may or may not improve compilation time by caching scope (and other) information: all: debug build ensure-dirs: -$(MKDIR) $(BIN_DIR) $(BUILD_DIR) debug: ensure-dirs $(PLUGIN_DEBUG_NAME) build: ensure-dirs $(PLUGIN_NAME) PLUGIN_DEBUG_OBJS = $(BUILD_DIR)/$(PLUGIN_BASE_NAME).debug.o $(PLUGIN_DEBUG_NAME): $(PLUGIN_DEBUG_OBJS) $(CC) -lm -shared -o $(BIN_DIR)/$@ $(PLUGIN_DEBUG_OBJS) $(GLUE_DIR)/$(STUB_LIB_NAME) $(CP) $(BIN_DIR)/$@ $(PLUGIN_DIR)/ PLUGIN_BUILD_OBJS = $(BUILD_DIR)/$(PLUGIN_BASE_NAME).o $(PLUGIN_NAME): $(PLUGIN_BUILD_OBJS) $(CC) -lm -shared -o $(BIN_DIR)/$@ $(PLUGIN_BUILD_OBJS) $(GLUE_DIR)/$(STUB_LIB_NAME) $(CP) $(BIN_DIR)/$@ $(PLUGIN_DIR)/ $(BUILD_DIR)/%.debug.o: $(SOURCE_DIR)/%.cp $(CC) $(DEBUG_FLAGS) $(CFLAGS) -c -o $@ $< $(BUILD_DIR)/%.o: $(SOURCE_DIR)/%.cp $(CC) $(BUILD_FLAGS) $(CFLAGS) -c -o $@ $< clean: -$(RM) -f $(BUILD_DIR)/*.o $(BIN_DIR)/$(PLUGIN_NAME) $(BIN_DIR)/$(PLUGIN_DEBUG_NAME) --- NEW FILE: Makefile.freebsd --- # $Header: /cvsroot/slashmud/slashmudx/plugins/FireSwamp/Makefile.freebsd,v 1.1 2003/12/28 20:11:46 ntiffin Exp $ # Programs to use for archiving, compiling, compressing and making AR = /usr/bin/ar CC = /usr/bin/gcc CP = /bin/cp GZIP = /usr/bin/gzip MAKE = /usr/local/bin/gmake MKDIR = /bin/mkdir RM = /bin/rm TAR = /usr/bin/tar BASE_NAME = slashmudx BIN_NAME = $(BASE_NAME) BIN_DEBUG_NAME = $(BASE_NAME).debug STUB_LIB_NAME = $(BASE_NAME).lib EXPORT_GLUE_NAME = $(BASE_NAME)_export.o PLUGIN_BASE_NAME = fireswamp PLUGIN_NAME = $(PLUGIN_BASE_NAME).so PLUGIN_DEBUG_NAME = $(PLUGIN_BASE_NAME).debug.so LIBKORYN_DIR = ../../../libraries/kdg COMMON_LIBRARIES = BUILD_LIBRARIES = $(LIBKORYN_DIR)/libkoryn.a DEBUG_LIBRARIES = $(LIBKORYN_DIR)/libkoryn.debug.a SLASHMUDX_DIR = ../.. SLASHMUDX_BIN_DIR = $(SLASHMUDX_DIR)/bin SLASHMUDX_SRC_DIR = $(SLASHMUDX_DIR)/src PLUGIN_DIR = $(SLASHMUDX_BIN_DIR)/plugins BIN_DIR = ./bin BUILD_DIR = ./build SOURCE_DIR = . # Compiler flags -ftime-report -fmem-report DEBUG_FLAGS = -DDEBUG_VERSION -g -fbounds-check -fstack-check BUILD_FLAGS = -O3 -funroll-loops -fexpensive-optimizations CFLAGS = -DTARGET_FREEBSD -Wall -fmemoize-lookups -I$(SOURCE_DIR) -I$(SLASHMUDX_SRC_DIR) -I$(LIBKORYN_DIR) # Notes about the gcc flags: # # -ggdb means produce debugging information in the best format for GDB # -pedantic means flag more errors in ISO C/C++ conformance # -pg means produce profiling information for gprof (view with gprof <objfile> <gmon.out>) # -a means produce profiling information about basic blocks # -Q means print function names during compilation and summary stats afterwards # -funroll-loops is an optimization not implied by -O3 (because it may increase code size) # -Wall enables all warnings # -pedantic enforces conformance to ISO C # -fmemoize-lookups -fsave-memoized may or may not improve compilation time by caching scope (and other) information: all: debug build ensure-dirs: -$(MKDIR) $(BIN_DIR) $(BUILD_DIR) $(PLUGIN_DIR) debug: ensure-dirs $(PLUGIN_DEBUG_NAME) build: ensure-dirs $(PLUGIN_NAME) PLUGIN_DEBUG_OBJS = $(BUILD_DIR)/$(PLUGIN_BASE_NAME).debug.o $(PLUGIN_DEBUG_NAME): $(PLUGIN_DEBUG_OBJS) $(CC) -lm -shared -o $(BIN_DIR)/$@ $(PLUGIN_DEBUG_OBJS) $(CP) $(BIN_DIR)/$@ $(PLUGIN_DIR)/ PLUGIN_BUILD_OBJS = $(BUILD_DIR)/$(PLUGIN_BASE_NAME).o $(PLUGIN_NAME): $(PLUGIN_BUILD_OBJS) $(CC) -lm -shared -o $(BIN_DIR)/$@ $(PLUGIN_BUILD_OBJS) $(CP) $(BIN_DIR)/$@ $(PLUGIN_DIR)/ $(BUILD_DIR)/%.debug.o: $(SOURCE_DIR)/%.cp $(CC) $(DEBUG_FLAGS) $(CFLAGS) -c -o $@ $< $(BUILD_DIR)/%.o: $(SOURCE_DIR)/%.cp $(CC) $(BUILD_FLAGS) $(CFLAGS) -c -o $@ $< clean: -$(RM) -f $(BUILD_DIR)/*.o $(BIN_DIR)/$(PLUGIN_NAME) $(BIN_DIR)/$(PLUGIN_DEBUG_NAME) --- NEW FILE: Makefile.macosx --- # $Header: /cvsroot/slashmud/slashmudx/plugins/FireSwamp/Makefile.macosx,v 1.1 2003/12/28 20:11:46 ntiffin Exp $ # Programs to use for archiving, compiling, compressing and making AR = /usr/bin/ar CC = /usr/bin/gcc CP = /bin/cp GZIP = /usr/bin/gzip MAKE = /usr/bin/make MKDIR = /bin/mkdir RM = /bin/rm TAR = /usr/bin/tar BASE_NAME = slashmudx BIN_NAME = $(BASE_NAME) BIN_DEBUG_NAME = $(BASE_NAME).debug STUB_LIB_NAME = $(BASE_NAME).lib EXPORT_GLUE_NAME = $(BASE_NAME)_export.o PLUGIN_BASE_NAME = fireswamp PLUGIN_NAME = $(PLUGIN_BASE_NAME).so PLUGIN_DEBUG_NAME = $(PLUGIN_BASE_NAME).debug.so LIBKORYN_DIR = ../../../libraries/kdg COMMON_LIBRARIES = BUILD_LIBRARIES = $(LIBKORYN_DIR)/libkoryn.a DEBUG_LIBRARIES = $(LIBKORYN_DIR)/libkoryn.debug.a SLASHMUDX_DIR = ../.. SLASHMUDX_BIN_DIR = $(SLASHMUDX_DIR)/bin SLASHMUDX_SRC_DIR = $(SLASHMUDX_DIR)/src PLUGIN_DIR = $(SLASHMUDX_BIN_DIR)/plugins BIN_DIR = ./bin BUILD_DIR = ./build SOURCE_DIR = . # Compiler flags -ftime-report -fmem-report DEBUG_FLAGS = -DDEBUG_VERSION -g -fbounds-check -fstack-check BUILD_FLAGS = -O3 -funroll-loops -fdelete-null-pointer-checks -fexpensive-optimizations CFLAGS = -DTARGET_MACOSX -Wall -fmemoize-lookups -no-cpp-precomp -I$(SOURCE_DIR) -I$(SLASHMUDX_SRC_DIR) -I$(LIBKORYN_DIR) # Notes about the gcc flags: # # -ggdb means produce debugging information in the best format for GDB # -pedantic means flag more errors in ISO C/C++ conformance # -pg means produce profiling information for gprof (view with gprof <objfile> <gmon.out>) # -a means produce profiling information about basic blocks # -Q means print function names during compilation and summary stats afterwards # -funroll-loops is an optimization not implied by -O3 (because it may increase code size) # -Wall enables all warnings # -pedantic enforces conformance to ISO C # -fmemoize-lookups -fsave-memoized may or may not improve compilation time by caching scope (and other) information: all: debug build ensure-dirs: -$(MKDIR) $(BIN_DIR) $(BUILD_DIR) $(PLUGIN_DIR) debug: ensure-dirs $(PLUGIN_DEBUG_NAME) build: ensure-dirs $(PLUGIN_NAME) PLUGIN_DEBUG_OBJS = $(BUILD_DIR)/$(PLUGIN_BASE_NAME).debug.o $(PLUGIN_DEBUG_NAME): $(PLUGIN_DEBUG_OBJS) $(CC) -lm -bundle -bundle_loader $(SLASHMUDX_BIN_DIR)/$(BIN_DEBUG_NAME) -lstdc++ -o $(BIN_DIR)/$@ $(PLUGIN_DEBUG_OBJS) $(CP) $(BIN_DIR)/$@ $(PLUGIN_DIR)/ PLUGIN_BUILD_OBJS = $(BUILD_DIR)/$(PLUGIN_BASE_NAME).o $(PLUGIN_NAME): $(PLUGIN_BUILD_OBJS) $(CC) -lm -bundle -bundle_loader $(SLASHMUDX_BIN_DIR)/$(BIN_NAME) -lstdc++ -o $(BIN_DIR)/$@ $(PLUGIN_BUILD_OBJS) $(CP) $(BIN_DIR)/$@ $(PLUGIN_DIR)/ $(BUILD_DIR)/%.debug.o: $(SOURCE_DIR)/%.cp $(CC) $(DEBUG_FLAGS) $(CFLAGS) -c -o $@ $< $(BUILD_DIR)/%.o: $(SOURCE_DIR)/%.cp $(CC) $(BUILD_FLAGS) $(CFLAGS) -c -o $@ $< clean: -$(RM) -f $(BUILD_DIR)/*.o $(PLUGIN_DIR)/$(PLUGIN_NAME) $(PLUGIN_DIR)/$(PLUGIN_DEBUG_NAME) --- NEW FILE: README --- FireSwamp Plugin Notes =========================== A plug-in room that causes damage to most livings that are in the room during the update. Configuration ============== fireswamp-damage <value> Amount of damage to apply. Defaults to 1. fireswamp-lethal true | false If applying the damage can kill the <living>. Defaults to false. fireswamp-frequency <game seconds> How often to apply the damage. Defaults to 300 game seconds. fireswamp-damage-message <text message> The message sent to the player when Update damage is assessed. If <text message> is empty then deletes the default message. Default message is "Ouch, that hurt!". If more than one fireswamp-damage-message is specified then the messages are selected at ramdom. Plugin Parameters ================== plugin-fireswamp-effect <percentage> Any <player> that has this plugin property will be have the damage effects of the fireswamp modified. The <percentage> specifies the amount of damage effect applied in percentages (i.e. 100 = 100% damage effect, 50 = 50% effect, 200 = 2 times the damage effect). It is up to another plugin to add or remove this plugin property from the player. Suggestions (To-Do List) ========================= Revisions ========== $Log: README,v $ Revision 1.1 2003/12/28 20:11:46 ntiffin Add makefiles and readme. Version 1.0.1 - 26 April 2000 Added: fireswamp-damage-message for random messages. (Tim Payne) Added: plugin-fireswamp-effect(Tim Payne) Version 1.0.0 - 24 April 2000 Created. |