fbuf: New data structure for buffered file I/O.
[pspp] / src / libpspp / automake.mk
index 805887410b13a31b9e185ab9c7a51c6e5080a080..81f8f1fcf38be888f31c3d36015296d2b7fe9098 100644 (file)
@@ -1,9 +1,25 @@
+# PSPP - a program for statistical analysis.
+# Copyright (C) 2017 Free Software Foundation, Inc.
+# 
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+# 
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+# 
+# You should have received a copy of the GNU General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+# 
 ## Process this file with automake to produce Makefile.in  -*- makefile -*-
 
 
-noinst_LTLIBRARIES += src/libpspp/libpspp.la
+noinst_LTLIBRARIES += src/libpspp/liblibpspp.la
 
-src_libpspp_libpspp_la_SOURCES = \
+src_libpspp_liblibpspp_la_SOURCES = \
        src/libpspp/abt.c \
        src/libpspp/abt.h \
        src/libpspp/argv-parser.c \
@@ -15,6 +31,8 @@ src_libpspp_libpspp_la_SOURCES = \
        src/libpspp/bt.c \
        src/libpspp/bt.h \
        src/libpspp/cast.h \
+       src/libpspp/cmac-aes256.c \
+       src/libpspp/cmac-aes256.h \
        src/libpspp/compiler.h \
        src/libpspp/copyleft.c \
        src/libpspp/copyleft.h \
@@ -24,6 +42,8 @@ src_libpspp_libpspp_la_SOURCES = \
        src/libpspp/encoding-guesser.h \
        src/libpspp/ext-array.c \
        src/libpspp/ext-array.h \
+       src/libpspp/fbuf.c \
+       src/libpspp/fbuf.h \
        src/libpspp/float-format.c \
        src/libpspp/float-format.h \
        src/libpspp/freaderror.c \
@@ -44,6 +64,8 @@ src_libpspp_libpspp_la_SOURCES = \
        src/libpspp/integer-format.h \
        src/libpspp/intern.c \
        src/libpspp/intern.h \
+       src/libpspp/line-reader.c \
+       src/libpspp/line-reader.h \
        src/libpspp/ll.c \
        src/libpspp/ll.h \
        src/libpspp/llx.c \
@@ -62,6 +84,8 @@ src_libpspp_libpspp_la_SOURCES = \
        src/libpspp/range-map.h \
        src/libpspp/range-set.c \
        src/libpspp/range-set.h \
+       src/libpspp/range-tower.c \
+       src/libpspp/range-tower.h \
        src/libpspp/sparse-array.c \
        src/libpspp/sparse-array.h \
        src/libpspp/sparse-xarray.c \
@@ -88,6 +112,8 @@ src_libpspp_libpspp_la_SOURCES = \
        src/libpspp/tower.h \
        src/libpspp/u8-istream.c \
        src/libpspp/u8-istream.h \
+       src/libpspp/u8-line.c \
+       src/libpspp/u8-line.h \
        src/libpspp/version.h \
        src/libpspp/zip-private.h \
        src/libpspp/zip-reader.c \
@@ -97,29 +123,34 @@ src_libpspp_libpspp_la_SOURCES = \
 
 DISTCLEANFILES+=src/libpspp/version.c
 
-src_libpspp_libpspp_la_CPPFLAGS = -I $(top_srcdir)/src/libpspp $(AM_CPPFLAGS)
+src_libpspp_liblibpspp_la_CPPFLAGS = \
+       -I $(top_srcdir)/src/libpspp \
+       $(AM_CPPFLAGS)
 
-nodist_src_libpspp_libpspp_la_SOURCES = src/libpspp/version.c
+nodist_src_libpspp_liblibpspp_la_SOURCES = src/libpspp/version.c
 
 src/libpspp/version.c: $(top_srcdir)/AUTHORS Makefile
        @$(MKDIR_P) src/libpspp
-       echo "/*        -*- mode: c; buffer-read-only: t -*-" > $@
-       echo "   Generated by src/libpspp/automake.mk --- Do not edit.">> $@
-       echo "" >> $@
-       echo "   The following line is for the benefit of the perl module" >>$@
-       echo "\$$VERSION='$(VERSION_FOR_PERL)';" >> $@
-       echo "*/" >> $@
-       echo "#include \"version.h\"" >> $@
-       echo "const char bare_version[] = \"$(VERSION)\";" >> $@
-       echo "const char version[] = \"GNU $(PACKAGE) $(VERSION)\";" >> $@
-       echo "const char stat_version[] = \"GNU $(PACKAGE) $(VERSION) \
-(`date`).\";" >> $@
-       echo "const char host_system[] = \"$(host_triplet)\";" >> $@
-       echo "const char build_system[] = \"$(build_triplet)\";" >> $@
-       echo "const char locale_dir[] = \"$(datadir)/locale\";" >> $@
-       echo "const char *const authors[] = {" >> $@
-       sed -e 's/^/  \"/' -e 's/$$/\",/' $(top_srcdir)/AUTHORS >> $@
-       echo "0 };" >> $@
-
-
-EXTRA_DIST += src/libpspp/OChangeLog
+       $(AM_V_GEN)echo "/*     -*- mode: c; buffer-read-only: t -*-" > $@,tmp
+       $(AM_V_at)echo "   Generated by src/libpspp/automake.mk --- Do not edit.">> $@,tmp
+       $(AM_V_at)echo "" >> $@,tmp
+       $(AM_V_at)echo "   The following line is for the benefit of the perl module" >>$@,tmp
+       $(AM_V_at)echo "\$$VERSION='$(VERSION_FOR_PERL)';" >> $@,tmp
+       $(AM_V_at)echo "*/" >> $@,tmp
+       $(AM_V_at)echo "#include \"version.h\"" >> $@,tmp
+       $(AM_V_at)echo "const char bare_version[] = \"$(VERSION)\";" >> $@,tmp
+       $(AM_V_at)echo "const char version[] = \"GNU $(PACKAGE) $(VERSION)\";" >> $@,tmp
+       $(AM_V_at)printf "const char announced_version[] = \"GNU $(PACKAGE) $(VERSION)\"" >> $@,tmp
+       @case `echo $(VERSION) | $(SED) -e 's/[0-9][0-9]*\.[0-9]*\([0-9]\)\.[0-9][0-9]*/\1/'` in \
+         [13579]) printf "\"\\\nThis is an unreleased test version. It is not recommended for production use. Use at your own risk\"" >> $@,tmp \
+       ;;\
+       esac
+       $(AM_V_at)printf ";\n" >> $@,tmp
+       $(AM_V_at)echo "const char host_system[] = \"$(host_triplet)\";" >> $@,tmp
+       $(AM_V_at)echo "const char build_system[] = \"$(build_triplet)\";" >> $@,tmp
+       $(AM_V_at)echo "const char locale_dir[] = \"$(datadir)/locale\";" >> $@,tmp
+       $(AM_V_at)echo "const char examples_dir[] = \"$(examplesdir)\";" >> $@,tmp
+       $(AM_V_at)echo "const char *const authors[] = {" >> $@,tmp
+       $(AM_V_at)$(SED) -e 's/^/  \"/' -e 's/$$/\",/' $(top_srcdir)/AUTHORS >> $@,tmp
+       $(AM_V_at)echo "0 };" >> $@,tmp
+       $(AM_V_at)mv $@,tmp $@