From 7fe2f7e952dea07ebee877832ed26dcfc6b53503 Mon Sep 17 00:00:00 2001 From: "Andrew M. B. Boktor" Date: Tue, 3 Jul 2012 20:34:26 -0800 Subject: Now makedepend doesn't have to interfere with our commits anymore. makedepend generates the dependencies in Makefile.makedepend that is generated dynamically and cleaned with "make clean" Next step is to use gcc's "-M" option and get rid of makedepend altogether. [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 13292] --- src/gpgpu-sim/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/gpgpu-sim') diff --git a/src/gpgpu-sim/Makefile b/src/gpgpu-sim/Makefile index a468eac..4f636fb 100644 --- a/src/gpgpu-sim/Makefile +++ b/src/gpgpu-sim/Makefile @@ -64,8 +64,11 @@ OBJS = $(SRCS:%.cc=$(OUTPUT_DIR)/%.$(OEXT)) libgpu_uarch_sim.a:$(OBJS) ar rcs $(OUTPUT_DIR)/libgpu_uarch_sim.a $(OBJS) +Makefile.makedepend: depend + depend: - makedepend -p$(OUTPUT_DIR)/ $(SRCS) 2> /dev/null + touch Makefile.makedepend + makedepend -fMakefile.makedepend -p$(OUTPUT_DIR)/ $(SRCS) 2> /dev/null $(OUTPUT_DIR)/l2cache.$(OEXT): l2cache.cc $(CPP) $(OPTFLAGS) $(CXXFLAGS_L2CACHE) -o $*.$(OEXT) -c l2cache.cc @@ -75,6 +78,7 @@ $(OUTPUT_DIR)/%.$(OEXT): %.cc clean: rm -f *.o core *~ *.a + rm -f Makefile.makedepend Makefile.makedepend.bak $(OUTPUT_DIR)/option_parser.$(OEXT): option_parser.h @@ -83,5 +87,5 @@ $(OUTPUT_DIR)/dram_sched.$(OEXT): ../cuda-sim/ptx.tab.h ../cuda-sim/ptx.tab.h: make -C ../cuda-sim/ ptx.tab.c -# DO NOT DELETE +include Makefile.makedepend -- cgit v1.3