From a215e5adda20cc0598ba2e4e9ac04981377cccd8 Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Fri, 16 Apr 2010 10:07:08 +0000 Subject: [PATCH] - works better like this on MacOSX. git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1802 8eb893ce-cfd4-0310-b710-fb5ebe64c474 --- core/plug-in/stats/Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/core/plug-in/stats/Makefile b/core/plug-in/stats/Makefile index f27dd531..2c52b29c 100644 --- a/core/plug-in/stats/Makefile +++ b/core/plug-in/stats/Makefile @@ -12,8 +12,14 @@ extra_clean = clean_query_stats include ../Makefile.app_module -$(QUERY_STATS_NAME): query_stats.cxx Makefile - $(CXX) $(CXXFLAGS) -o $(QUERY_STATS_NAME) query_stats.cxx +%.d: %.cxx Makefile + $(CXX) -MM $< $(CXXFLAGS) $(CPPFLAGS) > $@ + +%.o: %.cxx %.d $(COREPATH)/../Makefile.defs + $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $< -o $@ + +$(QUERY_STATS_NAME): query_stats.d query_stats.o Makefile + $(CXX) $(CXXFLAGS) $(CPPFLAGS) -o $(QUERY_STATS_NAME) query_stats.o install_query_stats: $(QUERY_STATS_NAME) $(DESTDIR)$(bin-prefix)/$(bin-dir) $(INSTALL-TOUCH) $(DESTDIR)$(bin-prefix)/$(bin-dir)$(QUERY_STATS_NAME)