summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-02-16 19:36:51 +0000
committerai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-02-16 19:36:51 +0000
commitbd57369de85d0249cdc3e21102d5197c6dbb646a (patch)
tree36f961f336183ba1e06ec6b05e09266b4fdcec8e /Makefile.in
parent4f038aab87c99e34322e7cff82757bfd6c1a4b93 (diff)
downloadhercules-bd57369de85d0249cdc3e21102d5197c6dbb646a.tar.gz
hercules-bd57369de85d0249cdc3e21102d5197c6dbb646a.tar.bz2
hercules-bd57369de85d0249cdc3e21102d5197c6dbb646a.tar.xz
hercules-bd57369de85d0249cdc3e21102d5197c6dbb646a.zip
* Updated configure/make scripts to resolve various issues.
- Added detection whether or not -fPIC switch is required when compiling shared objects (plug-ins) to resolve compile issues on 64-bit platforms (topic:208746). - Native 'strnlen' implementations are now detected and disable the one in strlib (bugreport:1261). - Define 'DB_MANUAL_CAST_TO_UNION' is now set when necessary (bugreport:1261). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14708 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in18
1 files changed, 15 insertions, 3 deletions
diff --git a/Makefile.in b/Makefile.in
index 5b51affa4..667b79fbc 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -2,7 +2,7 @@
HAVE_MYSQL=@HAVE_MYSQL@
ifeq ($(HAVE_MYSQL),yes)
- ALL_DEPENDS=common common_sql login login_sql char char_sql map map_sql tools converters plugins import save
+ ALL_DEPENDS=common common_sql login login_sql char char_sql map map_sql tools converters import save
SQL_DEPENDS=common_sql login_sql char_sql map_sql import save
COMMON_SQL_DEPENDS=
LOGIN_SQL_DEPENDS=common_sql
@@ -10,7 +10,7 @@ ifeq ($(HAVE_MYSQL),yes)
MAP_SQL_DEPENDS=common_sql
CONVERTERS_DEPENDS=common_sql
else
- ALL_DEPENDS=common login char map tools plugins import save
+ ALL_DEPENDS=common login char map tools import save
SQL_DEPENDS=needs_mysql
COMMON_SQL_DEPENDS=needs_mysql
LOGIN_SQL_DEPENDS=needs_mysql
@@ -19,6 +19,14 @@ else
CONVERTERS_DEPENDS=needs_mysql
endif
+WITH_PLUGINS=@WITH_PLUGINS@
+ifeq ($(WITH_PLUGINS),yes)
+ ALL_DEPENDS+=plugins
+ PLUGIN_DEPENDS=common
+else
+ PLUGIN_DEPENDS=no_plugins
+endif
+
#####################################################################
.PHONY: txt sql conf \
common common_sql \
@@ -66,7 +74,7 @@ tools:
converters: $(CONVERTERS_DEPENDS)
@$(MAKE) -C src/txt-converter
-plugins addons: common
+plugins addons: $(PLUGIN_DEPENDS)
@$(MAKE) -C src/plugins
import:
@@ -129,6 +137,10 @@ needs_mysql:
@echo "MySQL not found or disabled by the configure script"
@exit 1
+no_plugins:
+ @echo "Plugins disabled by the configure script"
+ @exit 1
+
#####################################################################
# TODO