diff options
author | Haru <haru@dotalux.com> | 2013-09-22 10:20:44 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2013-09-22 10:22:13 +0200 |
commit | 233453c7d2e256aece37ece349fe4890cdeb4586 (patch) | |
tree | 627aa73a9d422f6a473a9e286e813c3b8336f35e | |
parent | 469102135fd5429a4225afe378bed3e82dc81d31 (diff) | |
download | hercules-233453c7d2e256aece37ece349fe4890cdeb4586.tar.gz hercules-233453c7d2e256aece37ece349fe4890cdeb4586.tar.bz2 hercules-233453c7d2e256aece37ece349fe4890cdeb4586.tar.xz hercules-233453c7d2e256aece37ece349fe4890cdeb4586.zip |
Changed Makefiles to avoid rebuilding targets if nothing was modified
To force a rebuild, it's still possible to use the -B flag of make, or
just run make clean beforehand.
Signed-off-by: Haru <haru@dotalux.com>
-rw-r--r-- | src/char/Makefile.in | 6 | ||||
-rw-r--r-- | src/login/Makefile.in | 6 | ||||
-rw-r--r-- | src/map/Makefile.in | 6 | ||||
-rw-r--r-- | src/tool/Makefile.in | 6 |
4 files changed, 16 insertions, 8 deletions
diff --git a/src/char/Makefile.in b/src/char/Makefile.in index e22d3f5a5..02759b32e 100644 --- a/src/char/Makefile.in +++ b/src/char/Makefile.in @@ -68,8 +68,10 @@ obj_sql: # executables -char-server: $(CHAR_SERVER_SQL_DEPENDS) Makefile - @echo " LD $@" +char-server: ../../char-server@EXEEXT@ + +../../char-server@EXEEXT@: $(CHAR_SERVER_SQL_DEPENDS) Makefile + @echo " LD $(notdir $@)" @$(CC) @LDFLAGS@ -o ../../char-server@EXEEXT@ $(CHAR_OBJ) ../common/obj_sql/common_sql.a ../common/obj_all/common.a $(MT19937AR_OBJ) $(LIBCONFIG_OBJ) @LIBS@ @MYSQL_LIBS@ # char object files diff --git a/src/login/Makefile.in b/src/login/Makefile.in index 681eb5e6f..b6b70a495 100644 --- a/src/login/Makefile.in +++ b/src/login/Makefile.in @@ -65,8 +65,10 @@ obj_sql: # executables -login-server: $(LOGIN_SERVER_SQL_DEPENDS) Makefile - @echo " LD $@" +login-server: ../../login-server@EXEEXT@ + +../../login-server@EXEEXT@: $(LOGIN_SERVER_SQL_DEPENDS) Makefile + @echo " LD $(notdir $@)" @$(CC) @LDFLAGS@ -o ../../login-server@EXEEXT@ $(LOGIN_OBJ) ../common/obj_sql/common_sql.a ../common/obj_all/common.a $(MT19937AR_OBJ) $(LIBCONFIG_OBJ) @LIBS@ @MYSQL_LIBS@ # login object files diff --git a/src/map/Makefile.in b/src/map/Makefile.in index f7e178667..fb78d51a1 100644 --- a/src/map/Makefile.in +++ b/src/map/Makefile.in @@ -81,8 +81,10 @@ obj_sql: # executables -map-server: $(MAP_SERVER_SQL_DEPENDS) Makefile - @echo " LD $@" +map-server: ../../map-server@EXEEXT@ + +../../map-server@EXEEXT@: $(MAP_SERVER_SQL_DEPENDS) Makefile + @echo " LD $(notdir $@)" @$(CC) @LDFLAGS@ -o ../../map-server@EXEEXT@ $(MAP_OBJ) ../common/obj_sql/common_sql.a ../common/obj_all/common.a $(MT19937AR_OBJ) $(LIBCONFIG_OBJ) @LIBS@ @PCRE_LIBS@ @MYSQL_LIBS@ # map object files diff --git a/src/tool/Makefile.in b/src/tool/Makefile.in index 4f9dc7590..baf4a0327 100644 --- a/src/tool/Makefile.in +++ b/src/tool/Makefile.in @@ -26,8 +26,10 @@ export CC all: mapcache Makefile -mapcache: $(MAPCACHE_OBJ) $(COMMON_OBJ) $(LIBCONFIG_OBJ) Makefile - @echo " LD $@" +mapcache: ../../mapcache@EXEEXT@ + +../../mapcache@EXEEXT@: $(MAPCACHE_OBJ) $(COMMON_OBJ) $(LIBCONFIG_OBJ) Makefile + @echo " LD $(notdir $@)" @$(CC) @LDFLAGS@ $(LIBCONFIG_INCLUDE) -o ../../mapcache@EXEEXT@ $(MAPCACHE_OBJ) $(COMMON_OBJ) $(LIBCONFIG_OBJ) @LIBS@ clean: |