/[adonthell]/adonthell/src/py-wrappers/adonthell/Makefile.am
ViewVC logotype

Diff of /adonthell/src/py-wrappers/adonthell/Makefile.am

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.17 by ksterker, Tue Dec 7 16:46:27 2004 UTC revision 1.18 by ksterker, Fri Jun 3 17:29:13 2005 UTC
# Line 1  Line 1 
1  CXXFLAGS += -I$(top_srcdir)/src/  CXXFLAGS += -I$(top_srcdir)/src/
2  EXTRA_DIST = py_base.i py_event.i py_gfx.i py_input.i py_gui.i py_main.i  EXTRA_DIST = py_base.i py_event.i py_gfx.i py_input.i py_gui.i py_main.i py_runtime.i py_debug.i
3    
4  ## Python wrapper files.  ## Python wrapper files.
5  pkgpyexec_PYTHON = __init__.py base.py event.py gfx.py input.py gui.py main.py rpg.py  pkgpyexec_PYTHON = __init__.py base.py event.py gfx.py input.py gui.py main.py rpg.py debug.py
6  noinst_SCRIPTS = __init__.pyc base.pyc event.pyc gfx.pyc input.pyc gui.pyc main.pyc rpg.pyc  noinst_SCRIPTS = __init__.pyc base.pyc event.pyc gfx.pyc input.pyc gui.pyc main.pyc rpg.pyc debug.pyc
7    
8  ## Python helper libraries  ## Python helper libraries
9  pkgpyexec_LTLIBRARIES = _base.la _event.la _gfx.la _input.la _gui.la _main.la _rpg.la  pkgpyexec_LTLIBRARIES = _base.la _event.la _gfx.la _input.la _gui.la _main.la _rpg.la _debug.la
10    
11  ## SWIG runtime support  ## SWIG runtime support
12  lib_LTLIBRARIES = libswigruntime.la libadonthell_py_main.la  lib_LTLIBRARIES = libadonthell_py_main.la libadonthell_py_runtime.la
13    
14  ## Rules to build SWIG's runtime library  ## the swig runtime code
15  libswigruntime_la_SOURCES = swigruntime_wrap.cc  py_runtime.cc: py_runtime.i Makefile.am
16  libswigruntime_la_CXXFLAGS = $(PY_CFLAGS)          $(SWIG) -c++ -noexcept -nocontract -python -modern -module py_runtime -o $(srcdir)/$@ $<
 libswigruntime_la_LIBADD = $(PY_LIBS)  
17    
18  ## Rules to build libadonthell_py_main  ## Rules to build libadonthell_py_main
19  libadonthell_py_main_la_SOURCES = py_main.cc  libadonthell_py_main_la_SOURCES = py_main.cc
20  libadonthell_py_main_la_CXXFLAGS = $(PY_CFLAGS)  libadonthell_py_main_la_CXXFLAGS = $(PY_CFLAGS)
21  libadonthell_py_main_la_LIBADD = $(PY_LIBS)  libadonthell_py_main_la_LIBADD = $(PY_LIBS)
22    
23    ## Rules to build libadonthell_py_runtime
24    libadonthell_py_runtime_la_SOURCES = py_runtime.cc
25    libadonthell_py_runtime_la_CXXFLAGS = $(PY_CFLAGS) -DSWIGRUNTIME= -DSWIGINLINE=
26    libadonthell_py_runtime_la_LIBADD = $(PY_LIBS)
27    
28    PY_LIBADD = -L$(top_builddir)/src/python -ladonthell_python $(PY_LIBS)
29    
30  ## Rules to build libpybase (libbase's Python wrapper)  ## Rules to build libpybase (libbase's Python wrapper)
31  _base_la_SOURCES = py_base_wrap.cc  _base_la_SOURCES = py_base_wrap.cc
32  _base_la_CXXFLAGS = $(PY_CFLAGS)  _base_la_CXXFLAGS = $(PY_CFLAGS)
33  _base_la_LDFLAGS = -avoid-version -module  _base_la_LDFLAGS = -avoid-version -module
34  _base_la_LIBADD = -L$(top_builddir)/src/base/ -ladonthell_base -L$(top_builddir)/src/python -ladonthell_python $(PY_LIBS) -lswigruntime  _base_la_LIBADD = $(PY_LIBADD) -L$(top_builddir)/src/base/ -ladonthell_base -ladonthell_py_runtime
35    
36  ## Rules to build libpyevent (libevent's Python wrapper)  ## Rules to build libpyevent (libevent's Python wrapper)
37  _event_la_SOURCES = py_event_wrap.cc  _event_la_SOURCES = py_event_wrap.cc
38  _event_la_CXXFLAGS = $(PY_CFLAGS)  _event_la_CXXFLAGS = $(PY_CFLAGS)
39  _event_la_LDFLAGS = -avoid-version -module  _event_la_LDFLAGS = -avoid-version -module
40  _event_la_LIBADD = -L$(top_builddir)/src/event/ -ladonthell_event -L$(top_builddir)/src/python -ladonthell_python $(PY_LIBS) -lswigruntime  _event_la_LIBADD = $(PY_LIBADD) -L$(top_builddir)/src/event/ -ladonthell_event -ladonthell_py_runtime
41    
42  ## Rules to build libpygfx (libgfx's Python wrapper)  ## Rules to build libpygfx (libgfx's Python wrapper)
43  _gfx_la_SOURCES = py_gfx_wrap.cc  _gfx_la_SOURCES = py_gfx_wrap.cc
44  _gfx_la_CXXFLAGS = $(PY_CFLAGS)  _gfx_la_CXXFLAGS = $(PY_CFLAGS)
45  _gfx_la_LDFLAGS = -avoid-version -module  _gfx_la_LDFLAGS = -avoid-version -module
46  _gfx_la_LIBADD = -L$(top_builddir)/src/gfx/ -ladonthell_gfx -L$(top_builddir)/src/python -ladonthell_python $(PY_LIBS) -lswigruntime  _gfx_la_LIBADD = $(PY_LIBADD) -L$(top_builddir)/src/gfx/ -ladonthell_gfx -ladonthell_py_runtime
47    
48  ## Rules to build libpyinput (libinput's Python wrapper)  ## Rules to build libpyinput (libinput's Python wrapper)
49  _input_la_SOURCES = py_input_wrap.cc  _input_la_SOURCES = py_input_wrap.cc
50  _input_la_CXXFLAGS = $(PY_CFLAGS)  _input_la_CXXFLAGS = $(PY_CFLAGS)
51  _input_la_LDFLAGS = -avoid-version -module  _input_la_LDFLAGS = -avoid-version -module
52  _input_la_LIBADD = -L$(top_builddir)/src/input/ -ladonthell_input -L$(top_builddir)/src/python -ladonthell_python $(PY_LIBS) -lswigruntime  _input_la_LIBADD =  $(PY_LIBADD) -L$(top_builddir)/src/input/ -ladonthell_input -ladonthell_py_runtime
53    
54  ## Rules to build libpygui (libgui's Python wrapper)  ## Rules to build libpygui (libgui's Python wrapper)
55  _gui_la_SOURCES = py_gui_wrap.cc  _gui_la_SOURCES = py_gui_wrap.cc
56  _gui_la_CXXFLAGS = $(PY_CFLAGS)  _gui_la_CXXFLAGS = $(PY_CFLAGS)
57  _gui_la_LDFLAGS = -avoid-version -module  _gui_la_LDFLAGS = -avoid-version -module
58  _gui_la_LIBADD = -L$(top_builddir)/src/gui/ -ladonthell_gui -L$(top_builddir)/src/python -ladonthell_python $(PY_LIBS) -lswigruntime  _gui_la_LIBADD =  $(PY_LIBADD) -L$(top_builddir)/src/gui/ -ladonthell_gui -ladonthell_py_runtime
59    
60  ## Rules to build libpymain (libmain's Python wrapper)  ## Rules to build libpymain (libmain's Python wrapper)
61  _main_la_SOURCES = py_main_wrap.cc  _main_la_SOURCES = py_main_wrap.cc
62  _main_la_CXXFLAGS = $(PY_CFLAGS)  _main_la_CXXFLAGS = $(PY_CFLAGS)
63  _main_la_LDFLAGS = -avoid-version -module  _main_la_LDFLAGS = -avoid-version -module
64  _main_la_LIBADD = -ladonthell_py_main -L$(top_builddir)/src/main -ladonthell_main -L$(top_builddir)/src/python -ladonthell_python $(PY_LIBS) -L$(top_builddir)/src/gfx -ladonthell_gfx -L$(top_builddir)/src/input -ladonthell_input -lswigruntime  _main_la_LIBADD = $(PY_LIBADD) -ladonthell_py_main      \
65            -L$(top_builddir)/src/main -ladonthell_main             \
66            -L$(top_builddir)/src/gfx -ladonthell_gfx               \
67            -L$(top_builddir)/src/input -ladonthell_input   \
68            -L$(top_builddir)/src/event -ladonthell_event   \
69            -ladonthell_py_runtime
70    
71  ## Rules to build libpyrpg (librpg's Python wrapper)  ## Rules to build libpyrpg (librpg's Python wrapper)
72  _rpg_la_SOURCES = py_rpg_wrap.cc  _rpg_la_SOURCES = py_rpg_wrap.cc
73  _rpg_la_CXXFLAGS = $(PY_CFLAGS)  _rpg_la_CXXFLAGS = $(PY_CFLAGS)
74  _rpg_la_LDFLAGS = -avoid-version -module  _rpg_la_LDFLAGS = -avoid-version -module
75  _rpg_la_LIBADD = -L$(top_builddir)/src/rpg -ladonthell_rpg -L$(top_builddir)/src/event/ -ladonthell_event -L$(top_builddir)/src/python -ladonthell_python $(PY_LIBS) -lswigruntime  _rpg_la_LIBADD = $(PY_LIBADD)                                           \
76            -L$(top_builddir)/src/rpg -ladonthell_rpg               \
77            -L$(top_builddir)/src/event -ladonthell_event   \
78            -ladonthell_py_runtime
79    
80    ## Rules to build libpydebug (helper for debugging the engine)
81    _debug_la_SOURCES = py_debug_wrap.cc
82    _debug_la_CXXFLAGS = $(PY_CFLAGS)
83    _debug_la_LDFLAGS = -avoid-version -module
84    _debug_la_LIBADD = $(PY_LIBADD) -L$(top_builddir)/src/python -ladonthell_python -ladonthell_py_runtime
85    
86    
87  ## Rules for SWIG runtime library generation  ## Swig arguments
88  swigruntime_wrap.cc:  SWIG_ARGS = -python -modern -noexcept -I$(top_srcdir)/src
         swig -runtime -python -noproxy -o $(srcdir)/$@ swigrun.i  
89    
90  ## Rules for Python wrappers generation  ## Rules for Python wrappers generation
91  ## The .pyc are generated so the Python modules are accessible even if  ## The .pyc are generated so the Python modules are accessible even if
# Line 74  swigruntime_wrap.cc: Line 93  swigruntime_wrap.cc:
93  base.pyc: base.py  base.pyc: base.py
94          $(PYTHON) -c "import py_compile; py_compile.compile(\"$<\", \"./$@\");"          $(PYTHON) -c "import py_compile; py_compile.compile(\"$<\", \"./$@\");"
95  base.py: py_base_wrap.cc  base.py: py_base_wrap.cc
96  py_base_wrap.cc: py_base.i swigruntime_wrap.cc $(top_srcdir)/src/base/*.h  py_base_wrap.cc: py_base.i  $(top_srcdir)/src/base/*.h
97          $(SWIG) -noruntime -python -modern -I$(top_srcdir)/src -o $(srcdir)/$@ $<          $(SWIG) $(SWIG_ARGS) -o $(srcdir)/$@ $<
98    
99  event.pyc: event.py  event.pyc: event.py
100          $(PYTHON) -c "import py_compile; py_compile.compile(\"$<\", \"./$@\");"          $(PYTHON) -c "import py_compile; py_compile.compile(\"$<\", \"./$@\");"
101  event.py: py_event_wrap.cc  event.py: py_event_wrap.cc
102  py_event_wrap.cc: py_event.i swigruntime_wrap.cc $(top_srcdir)/src/event/*.h  py_event_wrap.cc: py_event.i  $(top_srcdir)/src/event/*.h
103          $(SWIG) -noruntime -python -modern -I$(top_srcdir)/src -o $(srcdir)/$@ $<          $(SWIG) $(SWIG_ARGS) -o $(srcdir)/$@ $<
104    
105  gfx.pyc: gfx.py  gfx.pyc: gfx.py
106          $(PYTHON) -c "import py_compile; py_compile.compile(\"$<\", \"./$@\");"          $(PYTHON) -c "import py_compile; py_compile.compile(\"$<\", \"./$@\");"
107  gfx.py: py_gfx_wrap.cc  gfx.py: py_gfx_wrap.cc
108  py_gfx_wrap.cc: py_gfx.i swigruntime_wrap.cc $(top_srcdir)/src/gfx/*.h  py_gfx_wrap.cc: py_gfx.i  $(top_srcdir)/src/gfx/*.h
109          $(SWIG) -noruntime -python -modern -I$(top_srcdir)/src -o $(srcdir)/$@ $<          $(SWIG)  $(SWIG_ARGS) -o $(srcdir)/$@ $<
110    
111  input.pyc: input.py  input.pyc: input.py
112          $(PYTHON) -c "import py_compile; py_compile.compile(\"$<\", \"./$@\");"          $(PYTHON) -c "import py_compile; py_compile.compile(\"$<\", \"./$@\");"
113  input.py: py_input_wrap.cc  input.py: py_input_wrap.cc
114  py_input_wrap.cc: py_input.i swigruntime_wrap.cc $(top_srcdir)/src/input/*.h  py_input_wrap.cc: py_input.i $(top_srcdir)/src/input/*.h
115          $(SWIG) -noruntime -python -modern -I$(top_srcdir)/src -o $(srcdir)/$@ $<          $(SWIG) $(SWIG_ARGS) -o $(srcdir)/$@ $<
116    
117  gui.pyc: gui.py  gui.pyc: gui.py
118          $(PYTHON) -c "import py_compile; py_compile.compile(\"$<\", \"./$@\");"          $(PYTHON) -c "import py_compile; py_compile.compile(\"$<\", \"./$@\");"
119  gui.py: py_gui_wrap.cc  gui.py: py_gui_wrap.cc
120  py_gui_wrap.cc: py_gui.i swigruntime_wrap.cc $(top_srcdir)/src/gui/*.h  py_gui_wrap.cc: py_gui.i  $(top_srcdir)/src/gui/*.h
121          $(SWIG) -noruntime -python -modern -I$(top_srcdir)/src -o $(srcdir)/$@ $<          $(SWIG) $(SWIG_ARGS) -o $(srcdir)/$@ $<
122    
123  main.pyc: main.py  main.pyc: main.py
124          $(PYTHON) -c "import py_compile; py_compile.compile(\"$<\", \"./$@\");"          $(PYTHON) -c "import py_compile; py_compile.compile(\"$<\", \"./$@\");"
125  main.py: py_main_wrap.cc  main.py: py_main_wrap.cc
126  py_main_wrap.cc: py_main.i swigruntime_wrap.cc $(top_srcdir)/src/main/*.h  py_main_wrap.cc: py_main.i  $(top_srcdir)/src/main/*.h
127          $(SWIG) -noruntime -python -modern -I$(top_srcdir)/src -I$(top_srcdir)/src/py-wrappers/adonthell -o $(srcdir)/$@ $<          $(SWIG) $(SWIG_ARGS) -I$(srcdir)/$@ -o $(srcdir)/$@ $<
128    
129  rpg.pyc: rpg.py  rpg.pyc: rpg.py
130          $(PYTHON) -c "import py_compile; py_compile.compile(\"$<\", \"./$@\");"          $(PYTHON) -c "import py_compile; py_compile.compile(\"$<\", \"./$@\");"
131  rpg.py: py_rpg_wrap.cc  rpg.py: py_rpg_wrap.cc
132  py_rpg_wrap.cc: py_rpg.i swigruntime_wrap.cc $(top_srcdir)/src/rpg/*.h  py_rpg_wrap.cc: py_rpg.i  $(top_srcdir)/src/rpg/*.h
133          $(SWIG) -noruntime -python -modern -I$(top_srcdir)/src -I$(top_srcdir)/src/py-wrappers/adonthell -o $(srcdir)/$@ $<          $(SWIG) $(SWIG_ARGS) -I$(srcdir)/$@ -o $(srcdir)/$@ $<
134    
135    debug.pyc: debug.py
136            $(PYTHON) -c "import py_compile; py_compile.compile(\"$<\", \"./$@\");"
137    debug.py: py_debug_wrap.cc
138    py_debug_wrap.cc: py_debug.i py_runtime.i
139            $(SWIG) $(SWIG_ARGS) -I$(srcdir)/$@ -o $(srcdir)/$@ $<
140    
141  __init__.pyc: __init__.py  __init__.pyc: __init__.py
142          $(PYTHON) -c "import py_compile; py_compile.compile(\"$(srcdir)/$<\", \"./$@\");"          $(PYTHON) -c "import py_compile; py_compile.compile(\"$(srcdir)/$<\", \"./$@\");"

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26