1 buttonsdir = $(pkgdatadir)/buttons
2 scriptdir = $(libdir)/openbox/python
3 includeotkdir = $(includedir)/otk
5 CXXFLAGS=$(XFT_CFLAGS) $(PYTHON_CFLAGS) @CXXFLAGS@ \
6 -DBUTTONSDIR=\"$(buttonsdir)\" -DSWIG_GLOBAL
7 # -DSWIG_GLOBAL means we don't have to link libswigpy cuz libotk will export
12 #noinst_LIBRARIES=libotk.a
13 lib_LTLIBRARIES=libotk.la
15 libotk_la_SOURCES=rendercontrol.cc truerendercontrol.cc surface.cc \
16 renderstyle.cc rendercolor.cc pseudorendercontrol.cc \
18 property.cc rect.cc screeninfo.cc \
20 util.cc widget.cc focuswidget.cc \
21 button.cc eventhandler.cc eventdispatcher.cc ustring.cc \
22 label.cc focuslabel.cc application.cc appwidget.cc \
24 includeotk_HEADERS=application.hh appwidget.hh assassin.hh button.hh \
25 display.hh eventdispatcher.hh eventhandler.hh \
26 focuslabel.hh focuswidget.hh font.hh label.hh otk.hh \
27 point.hh property.hh pseudorendercontrol.hh rect.hh \
28 rendercolor.hh rendercontrol.hh renderstyle.hh \
29 rendertexture.hh screeninfo.hh strut.hh surface.hh \
30 timer.hh truerendercontrol.hh ustring.hh util.hh widget.hh \
32 libotk_la_LDFLAGS = $(XFT_LIBS) $(PYTHON_LIBS) @LIBS@
34 MAINTAINERCLEANFILES= Makefile.in
38 EXTRA_DIST = $(script_DATA)
41 rm -f *\~ *.orig *.rej .\#*
43 otk_test: libotk.la otk_test.cc
44 $(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@
46 rendertest: libotk.la rendertest.cc
47 $(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@
51 otk.i: $(wildcard *.hh)
55 swig $(filter -I%,$(CXXFLAGS)) -python -shadow -c++ -nodefault -o $@ $<