Revisão | 12ec10311449d02b044c3a12e52ca2e8eeefeb0a (tree) |
---|---|
Hora | 2013-01-24 20:53:11 |
Autor | Katsuhiko Nishimra <ktns.87@gmai...> |
Commiter | Katsuhiko Nishimra |
Generate objfile.dep only once. #30218
git-svn-id: https://svn.sourceforge.jp/svnroot/molds/trunk@1250 1136aad2-a195-0410-b898-f5ea1d11b9d8
@@ -44,7 +44,7 @@ endif | ||
44 | 44 | .PHONY: depend |
45 | 45 | depend: $(DEPFILE) |
46 | 46 | |
47 | -$(DEPFILE): $(ALL_HEAD_FILES) $(ALL_CPP_FILES) | |
47 | +$(DEPFILE): Makefile | |
48 | 48 | ifeq ($(INTEL), 64) |
49 | 49 | $(CC) -MM $(ALL_CPP_FILES) -I$(BOOST_INC_DIR) | sed 's/^\([^ ]\)/obj\/\1/g' | sed 's/\($$*\)\.o[ :]*/\1.o : /g' | sed 's/h$$/h\n\t$$(CC) -I$$(BOOST_INC_DIR) -o $$@ $$< $$(CFLAGS64) -c /g' > $(DEPFILE) |
50 | 50 | else |
@@ -40,7 +40,7 @@ $(EXENAME): $(DEPFILE) $(ALL_OBJ_FILES) | ||
40 | 40 | .PHONY: depend |
41 | 41 | depend: $(DEPFILE) |
42 | 42 | |
43 | -$(DEPFILE): $(ALL_HEAD_FILES) $(ALL_CPP_FILES) | |
43 | +$(DEPFILE): Makefile_GNU | |
44 | 44 | $(CC) -MM $(ALL_CPP_FILES) -I$(BOOST_INC_DIR) -I$(OPENBLAS_INC_DIR) | sed 's/^\([^ ]\)/obj\/\1/g' | sed 's/\($$*\)\.o[ :]*/\1.o : /g' | sed 's/h$$/h\n\t$$(CC) -I$$(BOOST_INC_DIR) -I$$(OPENBLAS_INC_DIR) -o $$@ $$< $$(CFLAGS) -c /g' > $(DEPFILE) |
45 | 45 | |
46 | 46 | .PHONY: clean |