From 1062231869b2d5a996f268fa33fc11fbc6e9e30f Mon Sep 17 00:00:00 2001 From: Gautier Hattenberger Date: Thu, 7 Oct 2010 14:45:09 +0000 Subject: [PATCH] use pkg-config for gtk cflags --- sw/lib/ocaml/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sw/lib/ocaml/Makefile b/sw/lib/ocaml/Makefile index 9d0d6b6d46..1dc6fa6472 100644 --- a/sw/lib/ocaml/Makefile +++ b/sw/lib/ocaml/Makefile @@ -71,7 +71,8 @@ xml_get.out : lib-pprz.cma xml_get.cmo tests : lib-pprz.cma $(TESTS_CMO) $(OCAMLC) $(INCLUDES) -custom -I . -o $@ str.cma unix.cma ivy-ocaml.cma xml-light.cma $^ -GTKCFLAGS := -I /usr/lib/gtk-2.0/include -I/usr/include/gtk-2.0 -I/usr/include/atk-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I /usr/include/cairo +GTKCFLAGS := `pkg-config --cflags gtk+-2.0` +#GTKCFLAGS := -I /usr/lib/gtk-2.0/include -I/usr/include/gtk-2.0 -I/usr/include/atk-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I /usr/include/cairo # GTKCFLAGS := $(shell gtk-config --cflags) %.o : %.c