add the headers, and install them
[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 libotk_la_LDFLAGS = $(XFT_LIBS) $(PYTHON_LIBS) @LIBS@
32
33 MAINTAINERCLEANFILES= Makefile.in
34
35 script_DATA = otk.py
36
37 EXTRA_DIST = $(script_DATA)
38
39 distclean-local:
40         rm -f *\~ *.orig *.rej .\#*
41
42 otk_test: libotk.la otk_test.cc
43         $(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@
44
45 rendertest: libotk.la rendertest.cc
46         $(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@
47
48 %.py: %_wrap.cc
49
50 otk.i: $(wildcard *.hh)
51         touch $@
52
53 %_wrap.cc: %.i
54         swig $(filter -I%,$(CXXFLAGS)) -python -shadow -c++ -nodefault -o $@ $<
55
56 # local dependencies