]> icculus.org git repositories - mikachu/openbox.git/blob - otk/Makefile.am
make .py rule
[mikachu/openbox.git] / otk / Makefile.am
1 buttonsdir = $(pkgdatadir)/buttons
2 scriptdir = $(libdir)/openbox/python
3
4 CXXFLAGS=$(XFT_CFLAGS) $(PYTHON_CFLAGS) @CXXFLAGS@ \
5 -DBUTTONSDIR=\"$(buttonsdir)\" -DSWIG_GLOBAL
6 # -DSWIG_GLOBAL means we don't have to link libswigpy cuz libotk will export
7 # everything it would
8
9 #INCLUDES= -I../src
10
11 #noinst_LIBRARIES=libotk.a
12 lib_LTLIBRARIES=libotk.la
13
14 libotk_la_SOURCES=rendercontrol.cc truerendercontrol.cc surface.cc \
15                   renderstyle.cc rendercolor.cc  \
16                   display.cc font.cc \
17                   property.cc rect.cc screeninfo.cc \
18                   timer.cc \
19                   configuration.cc util.cc widget.cc focuswidget.cc \
20                   button.cc eventhandler.cc eventdispatcher.cc ustring.cc \
21                   label.cc focuslabel.cc application.cc appwidget.cc \
22                   otk_wrap.cc
23
24 libotk_la_LDFLAGS = $(XFT_LIBS) $(PYTHON_LIBS) @LIBS@
25
26 MAINTAINERCLEANFILES= Makefile.in
27
28 script_DATA = otk.py
29
30 EXTRA_DIST = $(script_DATA)
31
32 distclean-local:
33         rm -f *\~ *.orig *.rej .\#*
34
35 otk_test: libotk.la otk_test.cc
36         $(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@
37
38 rendertest: libotk.la rendertest.cc
39         $(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@
40
41 %.py: %_wrap.cc
42
43 otk.i: $(wildcard *.hh)
44         touch $@
45
46 %_wrap.cc: %.i
47         swig $(filter -I%,$(CXXFLAGS)) -python -shadow -c++ -nodefault -o $@ $<
48
49 # local dependencies