← Back to team overview

kicad-developers team mailing list archive

fix-common-depend.patch

 

"make deps" caused invalid dependencies to be created for pcbcommon.o,
which in turn made "make" think it couldn't build pcbcommon.o. This
patch makes "make deps" search also for the correct header files.

- Werner

---------------------------------- cut here -----------------------------------

Index: kicad/common/makefile.gtk
===================================================================
--- kicad.orig/common/makefile.gtk	2009-04-28 17:16:31.000000000 -0300
+++ kicad/common/makefile.gtk	2009-04-28 17:17:42.000000000 -0300
@@ -7,7 +7,7 @@
all: common.a pcbcommon.a

deps:
-	$(CXX) $(CPPFLAGS) -E -MMD -MG *.cpp >/dev/null
+	$(CXX) $(CPPFLAGS) $(PCBINCL) -E -MMD -MG *.cpp >/dev/null

include makefile.include
-include *.d