use otk objects in the ob scripts by importing otk
[mikachu/openbox.git] / otk / Makefile.am
1 buttonsdir = $(pkgdatadir)/buttons
2 scriptdir = $(libdir)/openbox/python
3
4 CXXFLAGS=$(XFT_CFLAGS) $(PYTHON_CFLAGS) @CXXFLAGS@ \
5 -DBUTTONSDIR=\"$(buttonsdir)\"
6
7 INCLUDES= -I../src
8
9 #noinst_LIBRARIES=libotk.a
10 lib_LTLIBRARIES=libotk.la
11
12 libotk_la_SOURCES=rendercontrol.cc truerendercontrol.cc surface.cc \
13                   renderstyle.cc rendercolor.cc  \
14                   display.cc font.cc \
15                   property.cc rect.cc screeninfo.cc \
16                   timer.cc \
17                   configuration.cc util.cc widget.cc focuswidget.cc \
18                   button.cc eventhandler.cc eventdispatcher.cc ustring.cc \
19                   label.cc focuslabel.cc application.cc appwidget.cc \
20                   otk_wrap.cc
21
22 libotk_la_LDFLAGS = $(XFT_LIBS) $(PYTHON_LIBS) @LIBS@
23
24 MAINTAINERCLEANFILES= Makefile.in
25
26 script_DATA = otk.py
27
28 EXTRA_DIST = $(script_DATA)
29
30 distclean-local:
31         rm -f *\~ *.orig *.rej .\#*
32
33 otk_test: libotk.la otk_test.cc
34         $(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) .libs/libotk.al @LIBS@
35
36 rendertest: libotk.la rendertest.cc
37         $(CXX) $(CXXFLAGS) -DHAVE_CONFIG_H -I. -I. -I.. -I../src $(XFT_CFLAGS) -Wall -W -pedantic -DNDEBUG -g -O2 -o $@ rendertest.cc $(XFT_LIBS) .libs/libotk.al @LIBS@
38
39 otk.i: $(wildcard *.hh)
40         touch $@
41
42 %_wrap.cc: %.i
43         swig -c $(filter -I%,$(CXXFLAGS)) -python -shadow -c++ -nodefault -o $@ $<
44
45 # local dependencies