AD = ../.. CXXFLAGS = -Wall CPPFLAGS = -I $(AD)/libs/gtkmm2ext -I $(AD)/libs/widgets -I $(AD)/libs/pbd -I $(AD)/build/libs/pbd CPPFLAGS += `pkg-config --cflags cairo cairomm-1.0 libxml-2.0 glibmm-2.4` LDFLAGS = -L $(AD)/build/libs/pbd -lpbd -Xlinker -rpath=$(AD)/build/libs/pbd LDFLAGS += -L $(AD)/build/libs/gtkmm2ext -lgtkmm2ext -Xlinker -rpath=$(AD)/build/libs/gtkmm2ext LDFLAGS += -L $(AD)/build/libs/widgets -lwidgets -Xlinker -rpath=$(AD)/build/libs/widgets LDLIBS = `pkg-config --libs cairo cairomm-1.0 libxml-2.0 glibmm-2.4` icon: icon.cc libwidgets $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ icon.cc $(LDLIBS) libwidgets: cd $(AD); ./waf build --targets=libwidgets show: icon rm -f /tmp/ardour_icons-*.png ./icon -g -s 22 -o /tmp/ardour_icons-22.png ./icon -g -s 23 -o /tmp/ardour_icons-23.png ./icon -g -s 44 -o /tmp/ardour_icons-44.png ./icon -g -s 45 -o /tmp/ardour_icons-45.png convert -append /tmp/ardour_icons-*.png /tmp/ardour_icons.png display /tmp/ardour_icons.png & clean: rm -f icon .PHONY: show libwidgets clean