1 CFLAGS += -W -Wall -Wno-unused-parameter -g
3 LINTFLAGS += -c -e -f -u
5 LNS = mdocml.ln html4_strict.ln dummy.ln libmdocml.ln roff.ln
11 OBJS = mdocml.o html4_strict.o dummy.o libmdocml.o roff.o
13 SRCS = mdocml.c html4_strict.c dummy.c libmdocml.c roff.c
15 HEADS = libmdocml.h private.h
19 CLEAN = mdocml mdocml.tgz $(LLNS) $(LNS) $(OBJS) $(LIBS)
21 INSTALL = Makefile $(HEADS) $(SRCS) $(MANS)
23 FAIL = test.0 test.1 test.2 test.3 test.4 test.5 test.6 \
26 SUCCEED = test.7 test.8 test.9 test.10 test.11 test.12 test.13 \
27 test.14 test.16 test.17 test.18 test.19 test.21
37 @for f in $(FAIL); do ./mdocml $$f 1>/dev/null 2>/dev/null || continue ; done
38 @for f in $(SUCCEED); do ./mdocml $$f 1>/dev/null || exit 1 ; done
40 mdocml: mdocml.o libmdocml.a
41 $(CC) $(CFLAGS) -o $@ mdocml.o libmdocml.a
46 mdocml.tgz: $(INSTALL)
47 mkdir -p .dist/mdocml/
48 install -m 0644 $(INSTALL) .dist/mdocml/
49 ( cd .dist/ && tar zcf ../mdocml.tgz mdocml/ )
52 llib-lmdocml.ln: mdocml.ln libmdocml.ln html4_strict.ln dummy.ln roff.ln
53 $(LINT) $(LINTFLAGS) -Cmdocml mdocml.ln libmdocml.ln html4_strict.ln dummy.ln roff.ln
61 libmdocml.a: libmdocml.o html4_strict.o dummy.o roff.o
62 $(AR) rs $@ libmdocml.o html4_strict.o dummy.o roff.o
64 html4_strict.ln: html4_strict.c
66 html4_strict.o: html4_strict.c
68 html4_strict.c: private.h libmdocml.h
74 roff.c: private.h libmdocml.h
76 libmdocml.ln: libmdocml.c
78 libmdocml.o: libmdocml.c
80 libmdocml.c: private.h libmdocml.h