move the otk wrapper stuff into its own dir
[mikachu/openbox.git] / otk / Makefile.am
1 SUBDIRS = wrap
2
3 buttonsdir = $(pkgdatadir)/buttons
4 includeotkdir = $(includedir)/otk
5 pkgconfigdir = $(libdir)/pkgconfig
6
7 CXXFLAGS=$(XFT_CFLAGS) @CXXFLAGS@ \
8 -DBUTTONSDIR=\"$(buttonsdir)\"
9
10 #noinst_LIBRARIES=libotk.a
11 lib_LTLIBRARIES=libotk.la
12
13 libotk_la_SOURCES=rendercontrol.cc truerendercontrol.cc surface.cc \
14                   renderstyle.cc rendercolor.cc pseudorendercontrol.cc \
15                   display.cc font.cc \
16                   property.cc rect.cc screeninfo.cc \
17                   timer.cc \
18                   util.cc widget.cc focuswidget.cc \
19                   button.cc eventhandler.cc eventdispatcher.cc ustring.cc \
20                   label.cc focuslabel.cc application.cc appwidget.cc
21 includeotk_HEADERS=application.hh appwidget.hh assassin.hh button.hh \
22                    display.hh eventdispatcher.hh eventhandler.hh \
23                    focuslabel.hh focuswidget.hh font.hh label.hh otk.hh \
24                    point.hh property.hh pseudorendercontrol.hh rect.hh \
25                    rendercolor.hh rendercontrol.hh renderstyle.hh \
26                    rendertexture.hh screeninfo.hh strut.hh surface.hh \
27                    timer.hh truerendercontrol.hh ustring.hh util.hh widget.hh \
28                    ../config.h
29
30 MAINTAINERCLEANFILES= Makefile.in
31
32 pkgconfig_DATA = otk.pc
33
34 otk.pc: otk.pc.in
35         @regex_cmd@ -e "s,\@prefix\@,$(prefix)," \
36                 -e "s,\@version\@,$(VERSION)," \
37                 @srcdir@/$^ > $@
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 # local dependencies