]> Dogcows Code - chaz/openbox/blob - otk/Makefile.am
provide pkg-config info for libotk
[chaz/openbox] / otk / Makefile.am
1 buttonsdir = $(pkgdatadir)/buttons
2 scriptdir = $(libdir)/openbox/python
3 includeotkdir = $(includedir)/otk
4 pkgconfigdir = $(libdir)/pkgconfig
5
6 CXXFLAGS=$(XFT_CFLAGS) @CXXFLAGS@ \
7 -DBUTTONSDIR=\"$(buttonsdir)\" -DSWIG_GLOBAL
8 # -DSWIG_GLOBAL means we don't have to link libswigpy cuz libotk will export
9 # everything it would
10
11 #INCLUDES= -I../src
12
13 #noinst_LIBRARIES=libotk.a
14 lib_LTLIBRARIES=libotk.la
15
16 libotk_la_SOURCES=rendercontrol.cc truerendercontrol.cc surface.cc \
17 renderstyle.cc rendercolor.cc pseudorendercontrol.cc \
18 display.cc font.cc \
19 property.cc rect.cc screeninfo.cc \
20 timer.cc \
21 util.cc widget.cc focuswidget.cc \
22 button.cc eventhandler.cc eventdispatcher.cc ustring.cc \
23 label.cc focuslabel.cc application.cc appwidget.cc \
24 otk_wrap.cc
25 includeotk_HEADERS=application.hh appwidget.hh assassin.hh button.hh \
26 display.hh eventdispatcher.hh eventhandler.hh \
27 focuslabel.hh focuswidget.hh font.hh label.hh otk.hh \
28 point.hh property.hh pseudorendercontrol.hh rect.hh \
29 rendercolor.hh rendercontrol.hh renderstyle.hh \
30 rendertexture.hh screeninfo.hh strut.hh surface.hh \
31 timer.hh truerendercontrol.hh ustring.hh util.hh widget.hh \
32 ../config.h
33 libotk_la_LDFLAGS = $(XFT_LIBS) @LIBS@
34
35 MAINTAINERCLEANFILES= Makefile.in
36
37 pkgconfig_DATA = otk.pc
38
39 script_DATA = otk.py
40
41 EXTRA_DIST = $(script_DATA)
42
43 otk.pc: otk.pc.in
44 @regex_cmd@ -e "s,\@prefix\@,$(prefix)," \
45 -e "s,\@version\@,$(VERSION)," \
46 @srcdir@/$^ > $@
47
48 distclean-local:
49 rm -f *\~ *.orig *.rej .\#*
50
51 otk_test: libotk.la otk_test.cc
52 $(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@
53
54 rendertest: libotk.la rendertest.cc
55 $(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@
56
57 %.py: %_wrap.cc
58
59 otk.i: $(wildcard *.hh)
60 touch $@
61
62 %_wrap.cc: %.i
63 swig $(filter -I%,$(CXXFLAGS)) -python -shadow -c++ -nodefault -o $@ $<
64
65 # local dependencies
This page took 0.042854 seconds and 5 git commands to generate.