2021-01-30 11:19:32 -05:00
|
|
|
ICONFLAGS?=-g
|
|
|
|
|
2019-08-23 10:41:23 -04:00
|
|
|
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`
|
|
|
|
|
2021-01-30 10:46:43 -05:00
|
|
|
LDFLAGS = -L$(AD)/build/libs/pbd -Wl,-rpath=$(AD)/build/libs/pbd
|
|
|
|
LDFLAGS += -L$(AD)/build/libs/gtkmm2ext -Wl,-rpath=$(AD)/build/libs/gtkmm2ext
|
|
|
|
LDFLAGS += -L$(AD)/build/libs/widgets -Wl,-rpath=$(AD)/build/libs/widgets
|
2019-08-23 10:41:23 -04:00
|
|
|
|
2021-01-30 10:46:43 -05:00
|
|
|
LDLIBS = `pkg-config --libs cairo cairomm-1.0 libxml-2.0 glibmm-2.4` -lpbd -lgtkmm2ext -lwidgets
|
2019-08-23 10:41:23 -04:00
|
|
|
|
2019-08-27 12:00:56 -04:00
|
|
|
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
|
2021-01-30 11:19:32 -05:00
|
|
|
./icon $(ICONFLAGS) -s 22 -o /tmp/ardour_icons-22.png
|
|
|
|
./icon $(ICONFLAGS) -s 23 -o /tmp/ardour_icons-23.png
|
|
|
|
./icon $(ICONFLAGS) -s 44 -o /tmp/ardour_icons-44.png
|
|
|
|
./icon $(ICONFLAGS) -s 45 -o /tmp/ardour_icons-45.png
|
|
|
|
convert -gravity center \
|
|
|
|
/tmp/ardour_icons-*.png \
|
|
|
|
-background none \
|
|
|
|
+append /tmp/ardour_icons.png
|
|
|
|
|
2019-08-27 12:00:56 -04:00
|
|
|
display /tmp/ardour_icons.png &
|
2019-08-23 10:41:23 -04:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f icon
|
2019-08-27 12:00:56 -04:00
|
|
|
|
|
|
|
.PHONY: show libwidgets clean
|