X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flibpspp%2Fautomake.mk;h=99b6bed70020c19e233440cec50d569ac5f0d2ff;hb=6bad8bb980d4219d57389cde20dd2e77be2236c4;hp=567e56a492ad8b08530176f0f0618c1c2fb58dc1;hpb=4202bb6da3c58d199820521826a0caa45dc44145;p=pspp diff --git a/src/libpspp/automake.mk b/src/libpspp/automake.mk index 567e56a492..99b6bed700 100644 --- a/src/libpspp/automake.mk +++ b/src/libpspp/automake.mk @@ -1,3 +1,19 @@ +# 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 . +# ## Process this file with automake to produce Makefile.in -*- makefile -*- @@ -11,10 +27,13 @@ src_libpspp_liblibpspp_la_SOURCES = \ src/libpspp/array.c \ src/libpspp/array.h \ src/libpspp/assertion.h \ + src/libpspp/bit-vector.c \ src/libpspp/bit-vector.h \ 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 \ @@ -30,8 +49,6 @@ src_libpspp_liblibpspp_la_SOURCES = \ src/libpspp/freaderror.h \ src/libpspp/hash-functions.c \ src/libpspp/hash-functions.h \ - src/libpspp/inflate.c \ - src/libpspp/inflate.h \ src/libpspp/heap.c \ src/libpspp/heap.h \ src/libpspp/hmap.c \ @@ -44,6 +61,8 @@ src_libpspp_liblibpspp_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 +81,8 @@ src_libpspp_liblibpspp_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 +109,8 @@ src_libpspp_liblibpspp_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 \ @@ -105,23 +128,27 @@ 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 + { \ + 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)\";"; \ + printf "const char announced_version[] = \"GNU $(PACKAGE) $(VERSION)\""; \ + 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\"" ;; \ + esac; \ + printf ";\n"; \ + echo "const char host_system[] = \"$(host_triplet)\";"; \ + echo "const char build_system[] = \"$(build_triplet)\";"; \ + echo "const char locale_dir[] = \"$(datadir)/locale\";"; \ + echo "const char examples_dir[] = \"$(examplesdir)\";"; \ + echo "const char *const authors[] = {"; \ + $(SED) -e 's/^/ \"/' -e 's/$$/\",/' $(top_srcdir)/AUTHORS; \ + echo " 0"; \ + echo "};"; \ + } > $@,tmp && mv $@,tmp $@