Avoid implicit initialization + minor refactoring.
[splint-patched.git] / lib / Makefile.am
blob8b2c7177a1310c958bd5ad38d2c9a5d840a8c6b2
1 ## Note: starting comments with ## means they don't end up in Makefile
3 .PHONY: all
5 AUTOMAKE_OPTIONS = 1.5 foreign
7 ## Put these files in $prefix/share/splint/lib
8 splintlibdir = $(pkgdatadir)/lib
10 LCDFILES = \
11            standard.lcd standardstrict.lcd \
12            posix.lcd posixstrict.lcd \
13            unix.lcd unixstrict.lcd
15 UnixHeaders = stdio.h stdlib.h
16 AllHeaders = \
17              standard.h \
18              posix.h \
19              unix.h \
20              bool.h \
21              $(UnixHeaders)
22 MtsFiles = \
23            file.mts file.xh \
24            filerw.mts filerw.xh \
25            tainted.mts tainted.xh
26 LarchFiles = \
27              CTrait.syms \
28              lclinit.lci lslinit.lsi
30 ## List of files
31 splintlib_DATA = $(LCDFILES) $(MtsFiles) $(LarchFiles)
33 ##get rid of lcd files if the user does a make clean
34 CLEANFILES = $(LCDFILES)
36 ## Include them in the distribution
37 EXTRA_DIST = $(AllHeaders)
39 ## Rules to make splint & the dumps
41 SPLINT = $(top_builddir)/src/splint$(EXEEXT)
42 LCDGEN = @if $(AM_V_P); then set -x; else echo "  GEN      $@"; fi; \
43                 $(SPLINT) +quiet -nof -nolib +impconj $^ -dump $@
45 $(SPLINT):
46         @$(MAKE) -C $(top_builddir)/src 
48 all: $(SPLINT) $(LCDFILES)
50 standard.lcd: standard.h
51         $(LCDGEN)
53 standardstrict.lcd: standard.h
54         $(LCDGEN) -DSTRICT
56 posix.lcd: standard.h posix.h
57         $(LCDGEN)
59 posixstrict.lcd: standard.h posix.h
60         $(LCDGEN) -DSTRICT
62 unix.lcd: standard.h posix.h unix.h $(UnixHeaders)
63         $(LCDGEN) -supcounts -incondefs
65 unixstrict.lcd: standard.h posix.h unix.h $(UnixHeaders)
66         $(LCDGEN) -supcounts -incondefs -DSTRICT