]>
Commit | Line | Data |
---|---|---|
8fe44445 | 1 | ## Note: starting comments with ## means they don't end up in Makefile |
2 | ||
3 | AUTOMAKE_OPTIONS = 1.5 foreign | |
4 | ||
11db3170 | 5 | ## Put these files in $prefix/share/splint/lib |
6 | splintlibdir = $(pkgdatadir)/lib | |
8fe44445 | 7 | |
4aadc959 | 8 | UnixHeaders = stdio.h stdlib.h |
9 | ||
8fe44445 | 10 | ## List of files |
11db3170 | 11 | splintlib_DATA = \ |
155af98d | 12 | standard.h standard.lcd standardstrict.lcd posix.h posix.lcd posixstrict.lcd \ |
8fe44445 | 13 | unix.h unix.lcd unixstrict.lcd CTrait.syms CTraitGen.lcl bool.h \ |
14 | file.mts file.xh filerw.mts filerw.xh \ | |
3be9a165 | 15 | lclinit.lci linux.h lslinit.lsi tainted.mts tainted.xh \ |
4aadc959 | 16 | stdio.h stdlib.h $(UnixHeaders) |
8fe44445 | 17 | |
18 | ## Include them in the distribution | |
11db3170 | 19 | EXTRA_DIST = $(splintlib_DATA) |
8fe44445 | 20 | |
4aadc959 | 21 | |
11db3170 | 22 | ## Rules to make splint & the dumps |
8fe44445 | 23 | |
11db3170 | 24 | SPLINT = $(top_builddir)/src/splint$(EXEEXT) |
8fe44445 | 25 | |
11db3170 | 26 | $(SPLINT): |
8fe44445 | 27 | cd $(top_builddir)/src; $(MAKE) |
28 | ||
155af98d | 29 | standard.lcd: standard.h $(SPLINT) |
30 | -$(SPLINT) -nof -nolib +impconj standard.h -dump standard | |
8fe44445 | 31 | @touch $@ |
32 | ||
155af98d | 33 | standardstrict.lcd: standard.h $(SPLINT) |
34 | -$(SPLINT) -nof -nolib +impconj -DSTRICT standard.h -dump standardstrict | |
8fe44445 | 35 | @touch $@ |
36 | ||
155af98d | 37 | posix.lcd: standard.h posix.h $(SPLINT) |
38 | -$(SPLINT) -nof -nolib +impconj standard.h posix.h -dump posix | |
8fe44445 | 39 | @touch $@ |
40 | ||
155af98d | 41 | posixstrict.lcd: standard.h posix.h $(SPLINT) |
42 | -$(SPLINT) -nof -nolib +impconj -DSTRICT standard.h posix.h -dump posixstrict | |
8fe44445 | 43 | @touch $@ |
44 | ||
155af98d | 45 | unix.lcd: standard.h posix.h unix.h $(UnixHeaders) $(SPLINT) |
46 | -$(SPLINT) -supcounts -nof -incondefs -nolib +impconj standard.h posix.h unix.h stdio.h stdlib.h -dump unix | |
8fe44445 | 47 | @touch $@ |
48 | ||
155af98d | 49 | unixstrict.lcd: standard.h posix.h unix.h $(UnixHeaders) $(SPLINT) |
50 | -$(SPLINT) -supcounts -nof -incondefs -nolib +impconj -DSTRICT standard.h posix.h unix.h stdio.h stdlib.h -dump unixstrict | |
8fe44445 | 51 | @touch $@ |