]>
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 | ||
5 | ## Put these files in $prefix/share/lclint/lib | |
6 | lclintlibdir = $(pkgdatadir)/lib | |
7 | ||
8 | ## List of files | |
9 | lclintlib_DATA = \ | |
10 | ansi.h ansi.lcd ansistrict.lcd posix.h posix.lcd posixstrict.lcd \ | |
11 | unix.h unix.lcd unixstrict.lcd CTrait.syms CTraitGen.lcl bool.h \ | |
12 | file-old.mts file.mts file.xh filerw.c filerw.mts filerw.xh \ | |
13 | lclinit.lci linux.h lslinit.lsi tainted.mts tainted.xh | |
14 | ||
15 | ## Include them in the distribution | |
16 | EXTRA_DIST = $(lclintlib_DATA) | |
17 | ||
18 | ## Rules to make lclint & the dumps | |
19 | ||
20 | LCLINT = $(top_builddir)/bin/lclint$(EXEEXT) | |
21 | ||
22 | $(LCLINT): | |
23 | cd $(top_builddir)/src; $(MAKE) | |
24 | ||
25 | ansi.lcd: ansi.h $(LCLINT) | |
26 | -$(LCLINT) -nolib +impconj ansi.h -dump ansi | |
27 | @touch $@ | |
28 | ||
29 | ansistrict.lcd: ansi.h $(LCLINT) | |
30 | -$(LCLINT) -nolib +impconj -DSTRICT ansi.h -dump ansistrict | |
31 | @touch $@ | |
32 | ||
33 | posix.lcd: ansi.h posix.h $(LCLINT) | |
34 | -$(LCLINT) -nolib +impconj ansi.h posix.h -dump posix | |
35 | @touch $@ | |
36 | ||
37 | posixstrict.lcd: ansi.h posix.h $(LCLINT) | |
38 | -$(LCLINT) -nolib +impconj -DSTRICT ansi.h posix.h -dump posixstrict | |
39 | @touch $@ | |
40 | ||
41 | unix.lcd: ansi.h posix.h unix.h $(LCLINT) | |
42 | -$(LCLINT) -nolib +impconj ansi.h posix.h unix.h -dump unix | |
43 | @touch $@ | |
44 | ||
45 | unixstrict.lcd: ansi.h posix.h unix.h $(LCLINT) | |
46 | -$(LCLINT) -nolib +impconj -DSTRICT ansi.h posix.h unix.h -dump unixstrict | |
47 | @touch $@ |