File: Makefile.am

package info (click to toggle)
cdo 2.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 49,836 kB
  • sloc: cpp: 185,271; ansic: 95,766; sh: 7,192; f90: 6,147; makefile: 1,977; ruby: 1,078; csh: 1,028; python: 995; fortran: 319; pascal: 219; perl: 9
file content (24 lines) | stat: -rw-r--r-- 626 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
if ENABLE_PYTHON_INTERFACE

python_PYTHON = Cdi.py
pyexec_LTLIBRARIES = _Cdi.la
_Cdi_la_SOURCES = cdi_wrapper.cpp
_Cdi_la_CPPFLAGS = $(AM_CPPFLAGS) $(PYTHON_CPPFLAGS)
AM_CXXFLAGS = -shared
AM_LDFLAGS = -module -avoid-version
AM_CPPFLAGS = -I$(srcdir)/.. -I$(top_srcdir)/src
_Cdi_la_LIBADD = ../libcdipp.la $(PYTHON_LIBS)

../libcdipp.la:
	$(am__cd) .. && $(MAKE) libcdipp.la

endif ENABLE_PYTHON_INTERFACE

if MAINTAINER_MODE
Cdi.py: ../cdi.i ../cdi.hpp
	$(AM_V_GEN)$(SWIG) -python -c++ -o cdi_wrapper.cpp $<

cdi_wrapper.cpp: Cdi.py
	$(AM_V_at)test -f $@ || rm -f $<
	$(AM_V_at)test -f $@ || $(MAKE) $(AM_MAKEFLAGS) $<
endif