Permalink
Browse files

Add explicit dependencies on generated header files.

These explicit dependencies are not normally needed (because they
are covered by automatic dependency generation) but when the "-jN"
flag is passed to gmake, they help gmake schedule parallel builds.
(cherry picked from commit 5479aaf)
  • Loading branch information...
steveicarus committed Dec 4, 2009
1 parent a720b23 commit 26ab32ac3b0f8cf99c6561097f5dacbe92d1c972
Showing with 9 additions and 7 deletions.
  1. +3 −1 Makefile.in
  2. +1 −1 libveriuser/Makefile.in
  3. +1 −1 tgt-vhdl/Makefile.in
  4. +1 −1 tgt-vvp/Makefile.in
  5. +1 −1 vpi/Makefile.in
  6. +2 −2 vvp/Makefile.in
View
@@ -197,10 +197,12 @@ version.exe: $(srcdir)/version.c $(srcdir)/version_base.h version_tag.h
dep:
mkdir dep
-%.o: %.cc
+%.o: %.cc config.h
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -MD -c $< -o $*.o
mv $*.d dep/$*.d
+# Here are some explicit dependencies needed to get things going.
+main.o: main.cc version_tag.h
lexor.o: lexor.cc parse.h
View
@@ -78,7 +78,7 @@ libveriuser.a: libveriuser.o
dep:
mkdir dep
-%.o: %.c
+%.o: %.c config.h
$(CC) $(CPPFLAGS) $(CFLAGS) -MD -c $< -o $*.o
mv $*.d dep
View
@@ -45,7 +45,7 @@ all: dep vhdl.tgt vhdl.conf vhdl-s.conf
dep:
mkdir dep
-%.o: %.cc
+%.o: %.cc vhdl_config.h
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -MD -c $< -o $*.o
mv $*.d dep
View
@@ -47,7 +47,7 @@ all: dep vvp.tgt vvp.conf vvp-s.conf
dep:
mkdir dep
-%.o: %.c
+%.o: %.c vvp_config.h
$(CC) $(CPPFLAGS) $(CFLAGS) -MD -c $< -o $*.o
mv $*.d dep
View
@@ -50,7 +50,7 @@ check: all
dep:
mkdir dep
-%.o: %.c
+%.o: %.c vpi_config.h
$(CC) $(CPPFLAGS) $(CFLAGS) -MD -c $< -o $*.o
mv $*.d dep
View
@@ -103,11 +103,11 @@ endif
dep:
mkdir dep
-%.o: %.cc
+%.o: %.cc config.h
$(CXX) $(CPPFLAGS) $(MDIR1) $(MDIR2) $(CXXFLAGS) -MD -c $< -o $*.o
mv $*.d dep/$*.d
-%.o: %.c
+%.o: %.c config.h
$(CC) $(CPPFLAGS) $(MDIR1) $(MDIR2) $(CFLAGS) -MD -c $< -o $*.o
mv $*.d dep/$*.d

0 comments on commit 26ab32a

Please sign in to comment.