1 ## Note: starting comments with ## means they don't end up in Makefile
5 AUTOMAKE_OPTIONS = 1.5 foreign
7 ## Put these files in $prefix/share/splint/lib
8 splintlibdir = $(pkgdatadir)/lib
11 standard.lcd standardstrict.lcd \
12 posix.lcd posixstrict.lcd \
13 unix.lcd unixstrict.lcd
15 UnixHeaders = stdio.h stdlib.h
25 CTrait.syms CTraitGen.lcl \
27 filerw.mts filerw.xh \
28 tainted.mts tainted.xh \
29 lclinit.lci lslinit.lsi
31 ## Include them in the distribution
32 EXTRA_DIST = $(splintlib_DATA)
34 ##get rid of lcd files if the user does a make clean
35 CLEANFILES = $(LCDFILES)
37 ## Rules to make splint & the dumps
39 SPLINT = $(top_builddir)/src/splint$(EXEEXT)
40 LCDGEN = @if $(AM_V_P); then set -x; else echo " GEN $@"; fi; \
41 $(SPLINT) +quiet -nof -nolib +impconj $^ -dump $@
44 @$(MAKE) -C $(top_builddir)/src
46 all: $(SPLINT) $(LCDFILES)
48 standard.lcd: standard.h
51 standardstrict.lcd: standard.h
54 posix.lcd: standard.h posix.h
57 posixstrict.lcd: standard.h posix.h
60 unix.lcd: standard.h posix.h unix.h $(UnixHeaders)
61 $(LCDGEN) -supcounts -incondefs
63 unixstrict.lcd: standard.h posix.h unix.h $(UnixHeaders)
64 $(LCDGEN) -supcounts -incondefs -DSTRICT