use a built-in module to replace libswigpy
[dana/openbox.git] / src / Makefile.am
1 localedir=$(datadir)/locale
2 scriptdir = $(libdir)/openbox/python
3 DEFAULT_MENU=$(pkgdatadir)/menu
4 DEFAULT_STYLE=$(pkgdatadir)/styles/mbdtex
5
6 CXXFLAGS=$(XFT_CFLAGS) $(PYTHON_CFLAGS) @CXXFLAGS@ \
7 -DDEFAULTMENU=\"$(DEFAULT_MENU)\" \
8 -DDEFAULTSTYLE=\"$(DEFAULT_STYLE)\" \
9 -DLOCALEDIR=\"$(localedir)\" \
10 -DSCRIPTDIR=\"$(scriptdir)\" -DSWIG_GLOBAL 
11 # -DSWIG_GLOBAL is for the swigruntime.cc (see swigruntime.i for explanation)
12
13 LIBS=$(XFT_LIBS) $(PYTHON_LIBS) @LIBS@
14
15 INCLUDES= -I..
16
17 bin_PROGRAMS= openbox3
18
19 openbox3_LDADD=-L../otk -lotk @LIBINTL@
20
21 openbox3_SOURCES= actions.cc client.cc frame.cc openbox.cc screen.cc \
22                   main.cc backgroundwidget.cc labelwidget.cc \
23                   buttonwidget.cc python.cc bindings.cc \
24                   swigruntime.cc openbox_wrap.cc
25 openbox3_LDFLAGS= $(PYTHON_LDFLAGS)
26
27 script_DATA = ob.py
28
29 EXTRA_DIST = $(script_DATA)
30
31 MAINTAINERCLEANFILES= Makefile.in
32
33 distclean-local:
34         rm -f *\~ *.orig *.rej .\#*
35
36 openbox.i: openbox.hh screen.hh client.hh python.hh frame.hh
37         touch $@
38
39 %_wrap.cc: %.i
40         swig -c -I../otk $(filter -I%,$(CXXFLAGS)) -python -shadow -c++ -nodefault -o $@ $<
41
42 swigruntime.cc: swigruntime.i
43         swig -python -c++ -o $@ $<
44
45 # local dependencies