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 = ./include/stdio.h ./include/stdlib.h
24 filerw.mts filerw.xh \
25 tainted.mts tainted.xh
28 lclinit.lci lslinit.lsi
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 $@
46 @$(MAKE) -C $(top_builddir)/src
48 all: $(SPLINT) $(LCDFILES)
50 standard.lcd: standard.h
53 standardstrict.lcd: standard.h
56 posix.lcd: standard.h posix.h
59 posixstrict.lcd: standard.h posix.h
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