]>
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 = \ |
8fe44445 | 12 | ansi.h ansi.lcd ansistrict.lcd posix.h posix.lcd posixstrict.lcd \ |
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 | ||
11db3170 | 29 | ansi.lcd: ansi.h $(SPLINT) |
30 | -$(SPLINT) -nolib +impconj ansi.h -dump ansi | |
8fe44445 | 31 | @touch $@ |
32 | ||
11db3170 | 33 | ansistrict.lcd: ansi.h $(SPLINT) |
34 | -$(SPLINT) -nolib +impconj -DSTRICT ansi.h -dump ansistrict | |
8fe44445 | 35 | @touch $@ |
36 | ||
11db3170 | 37 | posix.lcd: ansi.h posix.h $(SPLINT) |
38 | -$(SPLINT) -nolib +impconj ansi.h posix.h -dump posix | |
8fe44445 | 39 | @touch $@ |
40 | ||
11db3170 | 41 | posixstrict.lcd: ansi.h posix.h $(SPLINT) |
42 | -$(SPLINT) -nolib +impconj -DSTRICT ansi.h posix.h -dump posixstrict | |
8fe44445 | 43 | @touch $@ |
44 | ||
4aadc959 | 45 | unix.lcd: ansi.h posix.h unix.h $(UnixHeaders) $(SPLINT) |
46 | -$(SPLINT) -incondefs -nolib +impconj ansi.h posix.h unix.h stdio.h stdlib.h -dump unix | |
8fe44445 | 47 | @touch $@ |
48 | ||
4aadc959 | 49 | unixstrict.lcd: ansi.h posix.h unix.h $(UnixHeaders) $(SPLINT) |
50 | -$(SPLINT) -incondefs -nolib +impconj -DSTRICT ansi.h posix.h unix.h stdio.h stdlib.h -dump unixstrict | |
8fe44445 | 51 | @touch $@ |