1 buttonsdir = $(pkgdatadir)/buttons
2 scriptdir = $(libdir)/openbox/python
4 CXXFLAGS=$(XFT_CFLAGS) $(PYTHON_CFLAGS) @CXXFLAGS@ \
5 -DBUTTONSDIR=\"$(buttonsdir)\" -DSWIG_GLOBAL
6 # -DSWIG_GLOBAL means we don't have to link libswigpy cuz libotk will export
11 #noinst_LIBRARIES=libotk.a
12 lib_LTLIBRARIES=libotk.la
14 libotk_la_SOURCES=rendercontrol.cc truerendercontrol.cc surface.cc \
15 renderstyle.cc rendercolor.cc \
17 property.cc rect.cc screeninfo.cc \
19 configuration.cc util.cc widget.cc focuswidget.cc \
20 button.cc eventhandler.cc eventdispatcher.cc ustring.cc \
21 label.cc focuslabel.cc application.cc appwidget.cc \
24 libotk_la_LDFLAGS = $(XFT_LIBS) $(PYTHON_LIBS) @LIBS@
26 MAINTAINERCLEANFILES= Makefile.in
30 EXTRA_DIST = $(script_DATA)
33 rm -f *\~ *.orig *.rej .\#*
35 otk_test: libotk.la otk_test.cc
36 $(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@
38 rendertest: libotk.la rendertest.cc
39 $(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@
43 otk.i: $(wildcard *.hh)
47 swig $(filter -I%,$(CXXFLAGS)) -python -shadow -c++ -nodefault -o $@ $<