summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/Makefile
diff options
context:
space:
mode:
authorAndrew M. B. Boktor <[email protected]>2012-07-03 20:34:26 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:47:33 -0700
commit7fe2f7e952dea07ebee877832ed26dcfc6b53503 (patch)
tree2fcbcc391766e019d11dc7c8132ae1b43dfe6b38 /src/gpgpu-sim/Makefile
parentdadb44ad16727623476a1e6947453da81ed682c7 (diff)
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]
Diffstat (limited to 'src/gpgpu-sim/Makefile')
-rw-r--r--src/gpgpu-sim/Makefile8
1 files changed, 6 insertions, 2 deletions
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