[CWB] [PATCH] Fix make depend under utils

Alberto Simões ambs at di.uminho.pt
Tue Mar 30 19:45:18 CEST 2010


In my Mac 'make depend' will not follow correctly the header files
included by glib-2.0/glib.h.

With this patch, it will.

Cheers
Alberto

PS: yes, I know this glib is temporary. Do you wanna me to patch
configure to detect it and add the libraries to build variables?
-- 
Alberto Simões
-------------- next part --------------
Index: utils/Makefile
===================================================================
--- utils/Makefile	(revision 140)
+++ utils/Makefile	(working copy)
@@ -106,7 +106,7 @@
 
 depend.mk:
 	-$(RM) depend.mk
-	$(DEPEND) $(DEPEND_CFLAGS_ALL) $(SRCS) > depend.mk
+	$(DEPEND) $(DEPEND_CFLAGS_ALL) `pkg-config --cflags glib-2.0` $(SRCS) > depend.mk
 
 install: $(PROGRAMS)
 	if [ ! -d "$(BININSTDIR)" ]; then $(INSTALL) $(INST_FLAGS_DIR) "$(BININSTDIR)"; fi;


More information about the CWB mailing list