summaryrefslogtreecommitdiff
path: root/src/tool/Makefile.in
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2013-11-20 03:52:08 +0100
committerHaru <haru@dotalux.com>2013-11-20 03:52:08 +0100
commit98ad6bc7987e2f96b9b5dda07ccae552ccfb4c86 (patch)
tree572a366a9b81c4d87e1a91f8f21985fcef008092 /src/tool/Makefile.in
parent1667c050a7a4b2a0dd699d0a174a071a692322dd (diff)
downloadhercules-98ad6bc7987e2f96b9b5dda07ccae552ccfb4c86.tar.gz
hercules-98ad6bc7987e2f96b9b5dda07ccae552ccfb4c86.tar.bz2
hercules-98ad6bc7987e2f96b9b5dda07ccae552ccfb4c86.tar.xz
hercules-98ad6bc7987e2f96b9b5dda07ccae552ccfb4c86.zip
Added support for 'make plugin.pluginname' to compile only 'pluginname'
- Various Makefile optimizations Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/tool/Makefile.in')
-rw-r--r--src/tool/Makefile.in21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/tool/Makefile.in b/src/tool/Makefile.in
index ee448a16a..307aa6d2c 100644
--- a/src/tool/Makefile.in
+++ b/src/tool/Makefile.in
@@ -1,19 +1,20 @@
+CONFIG_D = ../config
+CONFIG_H = $(wildcard $(CONFIG_D)/*.h) $(wildcard $(CONFIG_D)/*/*.h)
+
COMMON_D = ../common
COMMON_OBJ = $(addprefix $(COMMON_D)/obj_all/, des.o grfio.o malloc.o \
- miniconsole.o minicore.o showmsg.o strlib.o utils.o)
+ miniconsole.o minicore.o showmsg.o strlib.o utils.o)
COMMON_H = $(addprefix $(COMMON_D)/, cbasetypes.h console.h core.h des.h \
- grfio.h malloc.h mmo.h showmsg.h strlib.h utils.h)
+ grfio.h malloc.h mmo.h showmsg.h strlib.h utils.h)
LIBCONFIG_D = ../../3rdparty/libconfig
LIBCONFIG_OBJ = $(addprefix $(LIBCONFIG_D)/, libconfig.o grammar.o scanctx.o \
- scanner.o strbuf.o)
+ scanner.o strbuf.o)
LIBCONFIG_H = $(addprefix $(LIBCONFIG_D)/, libconfig.h grammar.h parsectx.h \
- scanctx.h scanner.h strbuf.h wincompat.h)
+ scanctx.h scanner.h strbuf.h wincompat.h)
LIBCONFIG_INCLUDE = -I$(LIBCONFIG_D)
-CONFIG_H = $(shell ls ../config/*.h ../config/*/*.h)
-
MAPCACHE_OBJ = obj_all/mapcache.o
@SET_MAKE@
@@ -63,13 +64,13 @@ obj_all/%.o: %.c $(COMMON_H) $(CONFIG_H) $(LIBCONFIG_H) | obj_all
@$(CC) @CFLAGS@ $(LIBCONFIG_INCLUDE) @CPPFLAGS@ -c $(OUTPUT_OPTION) $<
# missing common object files
-../common/obj_all/%.o:
+$(COMMON_D)/obj_all/%.o:
@echo " MAKE $@"
- @$(MAKE) -C ../common sql
+ @$(MAKE) -C $(COMMON_D) sql
-../common/obj_all/mini%.o:
+$(COMMON_D)/obj_all/mini%.o:
@echo " MAKE $@"
- @$(MAKE) -C ../common sql
+ @$(MAKE) -C $(COMMON_D) sql
$(LIBCONFIG_OBJ):
@echo " MAKE $@"