]>
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.mts file.xh filerw.mts filerw.xh \ | |
3be9a165 | 13 | lclinit.lci linux.h lslinit.lsi tainted.mts tainted.xh \ |
14 | stdio.h stdlib.h | |
8fe44445 | 15 | |
16 | ## Include them in the distribution | |
17 | EXTRA_DIST = $(lclintlib_DATA) | |
18 | ||
19 | ## Rules to make lclint & the dumps | |
20 | ||
e5f31c00 | 21 | LCLINT = $(top_builddir)/src/lclint$(EXEEXT) |
8fe44445 | 22 | |
23 | $(LCLINT): | |
24 | cd $(top_builddir)/src; $(MAKE) | |
25 | ||
26 | ansi.lcd: ansi.h $(LCLINT) | |
27 | -$(LCLINT) -nolib +impconj ansi.h -dump ansi | |
28 | @touch $@ | |
29 | ||
30 | ansistrict.lcd: ansi.h $(LCLINT) | |
31 | -$(LCLINT) -nolib +impconj -DSTRICT ansi.h -dump ansistrict | |
32 | @touch $@ | |
33 | ||
34 | posix.lcd: ansi.h posix.h $(LCLINT) | |
35 | -$(LCLINT) -nolib +impconj ansi.h posix.h -dump posix | |
36 | @touch $@ | |
37 | ||
38 | posixstrict.lcd: ansi.h posix.h $(LCLINT) | |
39 | -$(LCLINT) -nolib +impconj -DSTRICT ansi.h posix.h -dump posixstrict | |
40 | @touch $@ | |
41 | ||
42 | unix.lcd: ansi.h posix.h unix.h $(LCLINT) | |
6c9a3167 | 43 | -$(LCLINT) -nolib +impconj ansi.h posix.h unix.h stdio.h stdlib.h -dump unix |
8fe44445 | 44 | @touch $@ |
45 | ||
46 | unixstrict.lcd: ansi.h posix.h unix.h $(LCLINT) | |
6c9a3167 | 47 | -$(LCLINT) -nolib +impconj -DSTRICT ansi.h posix.h unix.h stdio.h stdlib.h -dump unixstrict |
8fe44445 | 48 | @touch $@ |