From 233453c7d2e256aece37ece349fe4890cdeb4586 Mon Sep 17 00:00:00 2001 From: Haru Date: Sun, 22 Sep 2013 10:20:44 +0200 Subject: 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 --- src/char/Makefile.in | 6 ++++-- src/login/Makefile.in | 6 ++++-- src/map/Makefile.in | 6 ++++-- src/tool/Makefile.in | 6 ++++-- 4 files changed, 16 insertions(+), 8 deletions(-) (limited to 'src') 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: -- cgit v1.2.3-70-g09d2