diff options
author | shennetsind <ind@henn.et> | 2013-10-04 16:12:09 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-10-04 16:12:09 -0300 |
commit | a49787ff1589d86efa87263676761ddcbecd64ce (patch) | |
tree | 3f4c4f003f261d51995f0e3ff7092bbf82bbab68 /src/plugins/Makefile.in | |
parent | 2f2afbd3b63a75695f8f96e3bcb4db9fff5a7dc6 (diff) | |
download | hercules-a49787ff1589d86efa87263676761ddcbecd64ce.tar.gz hercules-a49787ff1589d86efa87263676761ddcbecd64ce.tar.bz2 hercules-a49787ff1589d86efa87263676761ddcbecd64ce.tar.xz hercules-a49787ff1589d86efa87263676761ddcbecd64ce.zip |
HPM: Hooking!
http://hercules.ws/board/topic/2399-hpm-hooking-now-available/
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/plugins/Makefile.in')
-rw-r--r-- | src/plugins/Makefile.in | 47 |
1 files changed, 35 insertions, 12 deletions
diff --git a/src/plugins/Makefile.in b/src/plugins/Makefile.in index ff7d5b2e2..ed573238d 100644 --- a/src/plugins/Makefile.in +++ b/src/plugins/Makefile.in @@ -1,7 +1,26 @@ - -COMMON_H = ../common/HPMi.h ../common/cbasetypes.h - -PLUGINS = sample db2sql +################ PLUGIN CONFIGURATION ############################## +# # +# When you add a plugin, add its name here: # +# Example: if you have a plugin named my_cool_plugin.c and another # +# one named my_second_plugin.c, add them to the list like this: # +# # +# MYPLUGINS = my_cool_plugin my_second_plugin # +# # +# Note: DO NOT include the .c extension!!! # + +MYPLUGINS = + +# # +######### DO NOT EDIT ANYTHING BELOW THIS LINE!!! ################## + +PLUGINS = sample db2sql HPMHooking $(MYPLUGINS) + +COMMON_H = $(shell ls ../common/*.h) +CONFIG_H = $(shell ls ../config/*.h ../config/*/*.h) +MAP_H = $(shell ls ../map/*.h) +CHAR_H = $(shell ls ../char/*.h) +LOGIN_H = $(shell ls ../login/*.h) +ALL_H = $(COMMON_H) $(CONFIG_H) $(MAP_H) $(CHAR_H) $(LOGIN_H) @SET_MAKE@ @@ -9,17 +28,19 @@ CC = @CC@ export CC ##################################################################### -.PHONY: all $(PLUGINS) sample db2sql clean help +.PHONY: all $(PLUGINS) clean buildclean help all: $(PLUGINS) Makefile -sample: sample@DLLEXT@ - -db2sql: db2sql@DLLEXT@ +$(PLUGINS): %: ../../plugins/%@DLLEXT@ -clean: - @echo " CLEAN plugins" +buildclean: + @echo " CLEAN plugins (build temp files)" @rm -rf *.o + +clean: buildclean + @echo " CLEAN plugins" + @rm -rf ../../plugins/*@DLLEXT@ help: @echo "possible targets are $(PLUGINS:%='%') 'all' 'clean' 'help'" @@ -31,6 +52,8 @@ help: Makefile: Makefile.in @$(MAKE) -C ../.. src/plugins/Makefile -%@DLLEXT@: %.c $(COMMON_H) +.SECONDEXPANSION: + +../../plugins/%@DLLEXT@: %.c $(ALL_H) $$(shell ls %/* 2>/dev/null) @echo " CC $<" - @$(CC) @DEFS@ @CFLAGS@ @CPPFLAGS@ @LDFLAGS@ @SOFLAGS@ -o ../../plugins/$@ $< + @$(CC) @DEFS@ @CFLAGS@ @CPPFLAGS@ @LDFLAGS@ @SOFLAGS@ -o $@ $<
\ No newline at end of file |