# GOOCANVAS for Gtk2 GOOCANVAS_GTK2=$(HOME)/autobuild/Linux-$(HOST)-goocanvas-gtk2 # GOOCANVAS for Gtk3 GOOCANVAS_GTK3=$(HOME)/goocanvas GOOCANVAS_GTK2_CXXFLAGS=-I$(GOOCANVAS_GTK2)/include/goocanvas-1.0 GOOCANVAS_GTK2_LIBS=-L$(GOOCANVAS_GTK2)/lib -lgoocanvas GOOCANVAS_GTK3_CXXFLAGS=-I$(GOOCANVAS_GTK3)/include/goocanvas-2.0 GOOCANVAS_GTK3_LIBS=-L$(GOOCANVAS_GTK3)/lib -lgoocanvas-2.0 CXXFLAGS_GTK2=`pkg-config --cflags gtk+-2.0` $(GOOCANVAS_GTK2_CXXFLAGS) -Wno-deprecated-declarations \ -Wl,--rpath=$(GOOCANVAS_GTK2)/lib LDFLAGS_GTK2=`pkg-config --libs gtk+-2.0` $(GOOCANVAS_GTK2_LIBS) CXXFLAGS_GTK3=`pkg-config --cflags gtk+-3.0` $(GOOCANVAS_GTK3_CXXFLAGS) -Wno-deprecated-declarations \ -Wl,--rpath=$(GOOCANVAS_GTK3)/lib LDFLAGS_GTK3=`pkg-config --libs gtk+-3.0` $(GOOCANVAS_GTK3_LIBS) problem-example-gtk2: problem-example.cc $(CXX) $^ $(CXXFLAGS_GTK2) -o $@ $(LDFLAGS_GTK2) $(LDLIBS) problem-example-gtk3: problem-example.cc $(CXX) $^ $(CXXFLAGS_GTK3) -o $@ $(LDFLAGS_GTK3) $(LDLIBS) clean: rm -f problem-example-gtk2 problem-example-gtk3