Skip to content
Snippets Groups Projects
Commit 85d0f954 authored by Amorilia's avatar Amorilia
Browse files

automake small improvement (now only builds the python wrapper independent of...

automake small improvement (now only builds the python wrapper independent of additional library files)
parent 42b52161
No related branches found
No related tags found
No related merge requests found
......@@ -17,24 +17,35 @@ AM_CPPFLAGS = -I$(srcdir) -ggdb
## generated libraries and sources
lib_LTLIBRARIES = libniflib.la
# (uncomment the libniflib stuff to build a C++ library)
libniflib_la_SOURCES = \
niflib.cpp \
nif_math.cpp \
NIF_Blocks.cpp \
NIF_IO.cpp
#lib_LTLIBRARIES = libniflib.la
#libniflib_la_SOURCES = \
#niflib.cpp \
#nif_math.cpp \
#NIF_Blocks.cpp \
#NIF_IO.cpp \
#docsys_extract.cpp
libniflib_la_LDFLAGS = -version-info 0:0:0 -shared -no-undefined
#libniflib_la_LDFLAGS = -version-info 0:0:0 -shared -no-undefined
BUILT_SOURCES = swig_wrap.cpp
SWIG_SOURCES = pyniflib.i
pkgpython_PYTHON = niflib.py
pkgpyexec_LTLIBRARIES = _niflib.la
_niflib_la_SOURCES = swig_wrap.cpp $(SWIG_SOURCES)
_niflib_la_SOURCES = \
niflib.cpp \
nif_math.cpp \
NIF_Blocks.cpp \
NIF_IO.cpp \
docsys_extract.cpp \
swig_wrap.cpp \
$(SWIG_SOURCES)
_niflib_la_CPPFLAGS = $(SWIG_PYTHON_CPPFLAGS)
_niflib_la_LDFLAGS = -module -shared -no-undefined
_niflib_la_LIBADD = libniflib.la
swig_wrap.cpp: $(SWIG_SOURCES)
$(SWIG) $(SWIG_PYTHON_OPT) -o $@ $<
CLEANFILES = swig_wrap.cpp
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment