]> icculus.org git repositories - mikachu/openbox.git/blob - otk/Makefile.am
use the widget's bevel width
[mikachu/openbox.git] / otk / Makefile.am
1 buttonsdir = $(pkgdatadir)/buttons
2 scriptdir = $(libdir)/openbox/python
3 includeotkdir = $(includedir)/otk
4
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
8 # everything it would
9
10 #INCLUDES= -I../src
11
12 #noinst_LIBRARIES=libotk.a
13 lib_LTLIBRARIES=libotk.la
14
15 libotk_la_SOURCES=rendercontrol.cc truerendercontrol.cc surface.cc \
16                   renderstyle.cc rendercolor.cc pseudorendercontrol.cc \
17                   display.cc font.cc \
18                   property.cc rect.cc screeninfo.cc \
19                   timer.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 \
23                   otk_wrap.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 \
31                    ../config.h
32 libotk_la_LDFLAGS = $(XFT_LIBS) $(PYTHON_LIBS) @LIBS@
33
34 MAINTAINERCLEANFILES= Makefile.in
35
36 script_DATA = otk.py
37
38 EXTRA_DIST = $(script_DATA)
39
40 distclean-local:
41         rm -f *\~ *.orig *.rej .\#*
42
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@
45
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@
48
49 %.py: %_wrap.cc
50
51 otk.i: $(wildcard *.hh)
52         touch $@
53
54 %_wrap.cc: %.i
55         swig $(filter -I%,$(CXXFLAGS)) -python -shadow -c++ -nodefault -o $@ $<
56
57 # local dependencies