]>
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 | |
5ca29538 | 21 | ##get rid of lcd files if the user does a make clean |
22 | CLEANFILES = posix.lcd standard.lcd unix.lcd \ | |
23 | posixstrict.lcd standardstrict.lcd unixstrict.lcd | |
24 | ||
4aadc959 | 25 | |
11db3170 | 26 | ## Rules to make splint & the dumps |
8fe44445 | 27 | |
11db3170 | 28 | SPLINT = $(top_builddir)/src/splint$(EXEEXT) |
8fe44445 | 29 | |
11db3170 | 30 | $(SPLINT): |
8fe44445 | 31 | cd $(top_builddir)/src; $(MAKE) |
32 | ||
155af98d | 33 | standard.lcd: standard.h $(SPLINT) |
34 | -$(SPLINT) -nof -nolib +impconj standard.h -dump standard | |
8fe44445 | 35 | @touch $@ |
36 | ||
155af98d | 37 | standardstrict.lcd: standard.h $(SPLINT) |
38 | -$(SPLINT) -nof -nolib +impconj -DSTRICT standard.h -dump standardstrict | |
8fe44445 | 39 | @touch $@ |
40 | ||
155af98d | 41 | posix.lcd: standard.h posix.h $(SPLINT) |
42 | -$(SPLINT) -nof -nolib +impconj standard.h posix.h -dump posix | |
8fe44445 | 43 | @touch $@ |
44 | ||
155af98d | 45 | posixstrict.lcd: standard.h posix.h $(SPLINT) |
46 | -$(SPLINT) -nof -nolib +impconj -DSTRICT standard.h posix.h -dump posixstrict | |
8fe44445 | 47 | @touch $@ |
48 | ||
155af98d | 49 | unix.lcd: standard.h posix.h unix.h $(UnixHeaders) $(SPLINT) |
50 | -$(SPLINT) -supcounts -nof -incondefs -nolib +impconj standard.h posix.h unix.h stdio.h stdlib.h -dump unix | |
8fe44445 | 51 | @touch $@ |
52 | ||
155af98d | 53 | unixstrict.lcd: standard.h posix.h unix.h $(UnixHeaders) $(SPLINT) |
54 | -$(SPLINT) -supcounts -nof -incondefs -nolib +impconj -DSTRICT standard.h posix.h unix.h stdio.h stdlib.h -dump unixstrict | |
8fe44445 | 55 | @touch $@ |