1
## Process this file with automake to produce Makefile.in
3
lib_LTLIBRARIES = lib5250.la
5
bin_PROGRAMS = scs2ascii\
11
lib5250_la_SOURCES = buffer.c\
35
lib5250_la_LIBADD = @with_extra_libs@
37
INCLUDES = @PYTHON_CFLAGS@ \
38
-DSYSCONFDIR=\"$(sysconfdir)\"
40
# Here's where we build the python module.
42
pysodir = @PYTHON_PREFIX@/lib/python@PYTHON_VERSION@/lib-dynload
43
pyso_LTLIBRARIES = libtn5250module.la
45
# For some icky reason, automake or libtool pukes on the below line. So we
46
# just add all the SOURCES (sigh).
47
# libtn5250module_la_LIBADD = lib5250.la
49
libtn5250module_la_LIBADD = @with_exra_libs@
51
libtn5250module_la_SOURCES = tn5250-python.c\
56
tn5250_SOURCES = tn5250.c
58
tn5250_LDADD = @with_extra_libs@ lib5250.la
60
scs2ascii_SOURCES = scs2ascii.c
62
scs2ascii_LDADD = @with_extra_libs@ lib5250.la
64
scs2pdf_SOURCES = scs2pdf.c
66
scs2pdf_LDADD = @with_extra_libs@ lib5250.la
68
scs2ps_SOURCES = scs2ps.c
70
scs2ps_LDADD = @with_extra_libs@ lib5250.la
72
lp5250d_SOURCES = lp5250d.c
74
lp5250d_LDADD = @with_extra_libs@ lib5250.la
76
pkginclude_HEADERS = buffer.h\
99
include_HEADERS = tn5250.h
101
noinst_HEADERS = transmaps.h\
104
EXTRA_DIST = .lclintrc\
108
@echo "lint checking with lclint... "
109
@( lclint tn5250.c $(lib5250_la_SOURCES) > lclint.err 2>&1 ; \
111
echo "`grep -c :.*:.*: lclint.err` errors." ; \
114
config.h: tn5250-config.h
115
cat tn5250-config.h |sed -e 's/VERSION/TN5250_LIB_VERSION/g' -e '/PACKAGE/d' >config.h
118
# We generate our library docs using robodoc.
120
DOCFILES = $(lib5250_la_SOURCES) $(pkginclude_HEADERS)
123
( rm -f index.xrefs ; \
124
for file in $(DOCFILES) ; do \
125
robodoc $$file ../doc/$$file.html GENXREF ../doc/$$file.xref ; \
126
echo "../doc/$$file.xref" >>../doc/index.xrefs ; \
128
for file in $(DOCFILES) ; do \
129
robodoc $$file ../doc/$$file.html HTML -x ../doc/index.xrefs ; \
131
robodoc ../doc/index.xrefs ../doc/index.html INDEX HTML ; \
132
rm -f ../doc/*.xref ../doc/index.xrefs )
135
rm -f *~ *.xref index.xrefs index.html
142
( cd $(pysodir) && ln -sf libtn5250module.so tn5250module.so )