1 CFLAGS += -W -Wall -Wno-unused-parameter -g
3 LINTFLAGS += -c -e -f -u
5 LNS = mdocml.ln html4_strict.ln xml.ln libmdocml.ln roff.ln
11 OBJS = mdocml.o html4_strict.o xml.o libmdocml.o roff.o
13 SRCS = mdocml.c html4_strict.c xml.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 xml.ln roff.ln
53 $(LINT) $(LINTFLAGS) -Cmdocml mdocml.ln libmdocml.ln html4_strict.ln xml.ln roff.ln
55 mdocml.ln: mdocml.c libmdocml.h
57 mdocml.o: mdocml.c libmdocml.h
59 libmdocml.a: libmdocml.o html4_strict.o xml.o roff.o
60 $(AR) rs $@ libmdocml.o html4_strict.o xml.o roff.o
62 xml.ln: xml.c private.h libmdocml.h
64 xml.o: xml.c private.h libmdocml.h
66 html4_strict.ln: html4_strict.c private.h libmdocml.h
68 html4_strict.o: html4_strict.c private.h libmdocml.h
70 roff.ln: roff.c private.h libmdocml.h
72 roff.o: roff.c private.h libmdocml.h
74 libmdocml.ln: libmdocml.c private.h libmdocml.h
76 libmdocml.o: libmdocml.c private.h libmdocml.h