f0c2e805d654f19f916fe59059283ed5c3379db9
[mikachu/openbox.git] / otk / Makefile.am
1 buttonsdir = $(pkgdatadir)/buttons
2 includeotkdir = $(includedir)/otk
3 pkgconfigdir = $(libdir)/pkgconfig
4
5 CPPFLAGS=$(XFT_CFLAGS) @CPPFLAGS@ -DBUTTONSDIR=\"$(buttonsdir)\"
6
7 lib_LTLIBRARIES=libotk.la
8
9 libotk_la_SOURCES=rendercontrol.cc truerendercontrol.cc surface.cc util.cc \
10                   renderstyle.cc rendercolor.cc pseudorendercontrol.cc \
11                   display.cc font.cc screeninfo.cc property.cc timer.cc \
12                   eventdispatcher.cc eventhandler.cc ustring.cc \
13                   widget.cc application.cc label.cc appwidget.cc button.cc
14
15 #focuswidget.cc focuslabel.cc
16
17 includeotk_HEADERS=application.hh appwidget.hh assassin.hh button.hh \
18                    display.hh eventdispatcher.hh eventhandler.hh font.hh \
19                    label.hh otk.hh point.hh property.hh pseudorendercontrol.hh\
20                    rect.hh rendercolor.hh rendercontrol.hh renderstyle.hh \
21                    rendertexture.hh screeninfo.hh size.hh strut.hh surface.hh \
22                    timer.hh truerendercontrol.hh ustring.hh util.hh widget.hh \
23                    ../config.h
24
25 EXTRA_DIST = otk.pc.in
26
27 DISTCLEANFILES = otk.pc
28 MAINTAINERCLEANFILES= Makefile.in
29
30 pkgconfig_DATA = otk.pc
31
32 otk.pc: otk.pc.in
33         @regex_cmd@ -e "s,\@prefix\@,$(prefix)," \
34                 -e "s,\@version\@,$(VERSION)," \
35                 @srcdir@/$^ > $@
36
37 distclean-local:
38         $(RM) *\~ *.orig *.rej .\#*
39
40 uninstall-am:
41         -rmdir -p $(includeotkdir)
42         -rmdir -p $(pkgconfigdir)
43
44 otk_test: libotk.la otk_test.cc
45         $(CXX) $(CPPFLAGS) $(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@
46
47 rendertest: libotk.la rendertest.cc
48         $(CXX) $(CPPFLAGS) $(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@
49
50 # local dependencies