X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2FMakefile.am;h=65381ace5693d5fda685afc9abd6a272a55d565f;hb=7b98b3a4f58f6dc5a8e9cbc188b627966d5e652d;hp=2957ac492d865085e2185e9200fc3535ccb6147b;hpb=2bfc3a138f308ffb38634a92b23bdc7b62592324;p=pspp diff --git a/src/Makefile.am b/src/Makefile.am index 2957ac492d..65381ace56 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -11,7 +11,13 @@ bin_PROGRAMS = pspp AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/src -I$(top_srcdir)/lib \ -I$(top_srcdir)/intl -DISTCLEANFILES = foo $(q_sources_c) +if cc_is_gcc +AM_CFLAGS=-Wall -W -Wno-uninitialized -Wwrite-strings -Wstrict-prototypes \ +-Wpointer-arith -Wno-sign-compare -Wmissing-prototypes +endif + +CLEANFILES = $(q_sources_c) version.c +DISTCLEANFILES = foo MAINTAINERCLEANFILES = Makefile.in EXTRA_DIST = $(q_sources_q) q2c.c ETAGS_ARGS = -l c $(q_sources_c) @@ -29,23 +35,24 @@ frequencies.q list.q means.q set.q t-test.q pspp_SOURCES = aggregate.c algorithm.c algorithm.h alloc.c alloc.h \ apply-dict.c approx.h ascii.c autorecode.c bitvector.h cases.c cases.h \ -cmdline.c command.c command.def command.h compute.c correlations.c \ -count.c crosstabs.c data-in.c data-in.h data-list.c data-out.c \ -debug-print.h descript.c dfm.c dfm.h do-if.c do-ifP.h error.c error.h \ -expr-evl.c expr-opt.c expr-prs.c expr.h exprP.h file-handle.c \ -file-handle.h file-type.c filename.c filename.h flip.c font.h format.c \ -format.def format.h formats.c frequencies.c get.c getline.c getline.h \ -glob.c groff-font.c hash.c hash.h heap.c heap.h html.c htmlP.h \ -include.c inpt-pgm.c inpt-pgm.h lexer.c lexer.h list.c log.h loop.c \ -magic.c magic.h main.c main.h matrix-data.c matrix.c matrix.h means.c \ -mis-val.c misc.c misc.h modify-vars.c numeric.c output.c output.h \ -pfm-read.c pfm-write.c pfm.h pool.c pool.h postscript.c print.c \ -random.c random.h recode.c rename-vars.c repeat.c sample.c sel-if.c \ -set.c settings.h sfm-read.c sfm-write.c sfm.h sfmP.h som.c som.h \ -sort.c sort.h split-file.c stat.h stats.c stats.h str.c str.h \ -sysfile-info.c tab.c tab.h temporary.c title.c t-test.c val-labs.c \ -value-labels.c value-labels.h var-labs.c var.h vars-atr.c vars-prs.c \ -vector.c vector.h version.c version.h vfm.c vfm.h vfmP.h weight.c +cmdline.c cmdline.h command.c command.def command.h compute.c \ +correlations.c count.c crosstabs.c data-in.c data-in.h data-list.c \ +data-out.c debug-print.h descript.c devind.c devind.h dfm.c dfm.h \ +dictionary.c do-if.c do-ifP.h error.c error.h expr-evl.c expr-opt.c \ +expr-prs.c expr.h exprP.h file-handle.c file-handle.h file-type.c \ +filename.c filename.h flip.c font.h format.c format.def format.h \ +formats.c frequencies.c get.c getline.c getline.h glob.c glob.h \ +groff-font.c hash.c hash.h heap.c heap.h html.c htmlP.h include.c \ +inpt-pgm.c lexer.c lexer.h list.c log.h loop.c magic.c magic.h main.c \ +main.h matrix-data.c matrix.c matrix.h means.c mis-val.c misc.c misc.h \ +modify-vars.c numeric.c output.c output.h pfm-read.c pfm-write.c pfm.h \ +pool.c pool.h postscript.c print.c random.c random.h recode.c \ +rename-vars.c repeat.c repeat.h sample.c sel-if.c set.c settings.h \ +sfm-read.c sfm-write.c sfm.h sfmP.h som.c som.h sort.c sort.h \ +split-file.c stat.h stats.c stats.h str.c str.h sysfile-info.c tab.c \ +tab.h temporary.c title.c t-test.c val-labs.c value-labels.c \ +value-labels.h var-labs.c var.h vars-atr.c vars-prs.c vector.c \ +version.c version.h vfm.c vfm.h vfmP.h weight.c pspp_LDADD = ../lib/julcal/libjulcal.a \ ../lib/misc/libmisc.a \ @@ -54,6 +61,7 @@ pspp_LDADD = ../lib/julcal/libjulcal.a \ version.c: echo "#include " > version.c + echo "#include \"version.h\"" > version.c echo "const char bare_version[] = \"@VERSION@\";" >> version.c echo "const char version[] = \"GNU @PACKAGE@ @VERSION@\";" >> version.c echo "const char stat_version[] = \"GNU @PACKAGE@ @VERSION@ \