1 buttonsdir = $(pkgdatadir)/buttons
2 scriptdir = $(libdir)/openbox/python
3 includeotkdir = $(includedir)/otk
4 pkgconfigdir = $(libdir)/pkgconfig
6 CXXFLAGS=$(XFT_CFLAGS) @CXXFLAGS@ \
7 -DBUTTONSDIR=\"$(buttonsdir)\" -DSWIG_GLOBAL
8 # -DSWIG_GLOBAL means we don't have to link libswigpy cuz libotk will export
13 #noinst_LIBRARIES=libotk.a
14 lib_LTLIBRARIES=libotk.la
16 libotk_la_SOURCES=rendercontrol.cc truerendercontrol.cc surface.cc \
17 renderstyle.cc rendercolor.cc pseudorendercontrol.cc \
19 property.cc rect.cc screeninfo.cc \
21 util.cc widget.cc focuswidget.cc \
22 button.cc eventhandler.cc eventdispatcher.cc ustring.cc \
23 label.cc focuslabel.cc application.cc appwidget.cc \
25 includeotk_HEADERS=application.hh appwidget.hh assassin.hh button.hh \
26 display.hh eventdispatcher.hh eventhandler.hh \
27 focuslabel.hh focuswidget.hh font.hh label.hh otk.hh \
28 point.hh property.hh pseudorendercontrol.hh rect.hh \
29 rendercolor.hh rendercontrol.hh renderstyle.hh \
30 rendertexture.hh screeninfo.hh strut.hh surface.hh \
31 timer.hh truerendercontrol.hh ustring.hh util.hh widget.hh \
33 libotk_la_LDFLAGS = $(XFT_LIBS) @LIBS@
35 MAINTAINERCLEANFILES= Makefile.in
37 pkgconfig_DATA = otk.pc
41 EXTRA_DIST = $(script_DATA)
44 @regex_cmd@ -e "s,\@prefix\@,$(prefix)," \
45 -e "s,\@version\@,$(VERSION)," \
49 rm -f *\~ *.orig *.rej .\#*
51 otk_test: libotk.la otk_test.cc
52 $(CXX) $(CXXFLAGS) -DHAVE_CONFIG_H -I. -I. -I.. -I../src $(XFT_CFLAGS) -Wall -W -pedantic -DNDEBUG -g -O2 -o otk_test otk_test.cc $(XFT_LIBS) -L. -lotk @LIBS@
54 rendertest: libotk.la rendertest.cc
55 $(CXX) $(CXXFLAGS) -DHAVE_CONFIG_H -I. -I. -I.. -I../src $(XFT_CFLAGS) -Wall -W -pedantic -DNDEBUG -g -O2 -o $@ rendertest.cc $(XFT_LIBS) -L. -lotk @LIBS@
59 otk.i: $(wildcard *.hh)
63 swig $(filter -I%,$(CXXFLAGS)) -python -shadow -c++ -nodefault -o $@ $<