path: root/src/mapi/vgapi
diff options
authorChia-I Wu <>2011-01-29 19:06:27 +0800
committerChia-I Wu <>2011-01-29 19:22:54 +0800
commitb825e4955243b8ecb57e58afafd8b2286fdd4369 (patch)
treeb9b8d5d3f7d2ff1855174f31a5068beddb91ca24 /src/mapi/vgapi
parent2a456dc123e8263de8e4666890a34f403faa9a39 (diff)
mapi: Workaround a bug in makedepend.
makedepend would crash when a source includes a header indirectly, such as #define HEADER "some-header.h" #include HEADER Do not define HEADER (makedepend would detects this as an incomplete include) and add the dependency manually in the Makefile. This should hopefully fix bug #33374.
Diffstat (limited to 'src/mapi/vgapi')
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mapi/vgapi/Makefile b/src/mapi/vgapi/Makefile
index e239e20987e..68cf26e83c3 100644
--- a/src/mapi/vgapi/Makefile
+++ b/src/mapi/vgapi/Makefile
@@ -81,11 +81,14 @@ install: default install-headers install-pc
+# due to a bug in makedepend, cannot pass VGAPI_CPPFLAGS to it
+$(VGAPI_OBJECTS): vgapi_tmp.h
depend: $(VGAPI_SOURCES)
@echo "running $(MKDEP)"
@touch depend
- $(VGAPI_CPPFLAGS) $(VGAPI_SOURCES) 2>/dev/null | \
+ $(VGAPI_SOURCES) 2>/dev/null | \
sed -e 's,^$(MAPI)/,,' > depend
-include depend