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
45 include/sys/utsname.h \
58 filerw.mts filerw.xh \
59 tainted.mts tainted.xh
62 lclinit.lci lslinit.lsi
65 splintlib_DATA = $(LCDFILES) $(MtsFiles) $(LarchFiles)
67 ##get rid of lcd files if the user does a make clean
68 CLEANFILES = $(LCDFILES)
70 ## Include them in the distribution
71 EXTRA_DIST = $(AllHeaders)
73 ## Rules to make splint & the dumps
75 SPLINT = $(top_builddir)/src/splint$(EXEEXT)
76 LCDGEN = @if $(AM_V_P); then set -x; else echo " GEN $@"; fi; \
77 $(SPLINT) +quiet -nof -nolib +impconj -nextlinemacros +allimponly +globsimpmodifiesnothing $^ -dump $@
80 @$(MAKE) -C $(top_builddir)/src
82 all: $(SPLINT) $(LCDFILES)
84 standard.lcd: $(StdHeaders)
87 standardstrict.lcd: $(StdHeaders)
90 posix.lcd: $(PosixHeaders)
93 posixstrict.lcd: $(PosixHeaders)
94 $(LCDGEN) -DPOSIX -DSTRICT
96 unix.lcd: $(PosixHeaders) unix.h
97 $(LCDGEN) -supcounts -incondefs -DPOSIX -DUNIX
99 unixstrict.lcd: $(PosixHeaders) unix.h
100 $(LCDGEN) -supcounts -incondefs -DPOSIX -DUNIX -DSTRICT