]> git.cameronkatri.com Git - mandoc.git/blob - Makefile
Prologue Dd and Dt macros.
[mandoc.git] / Makefile
1 VERSION = 1.1.0
2
3 CFLAGS += -W -Wall -Wno-unused-parameter -g
4
5 LNS = macro.ln mdoc.ln mdocml.ln hash.ln strings.ln
6
7 LLNS = llib-llibmdoc.ln llib-lmdocml.ln
8
9 LIBS = libmdoc.a
10
11 OBJS = macro.o mdoc.o mdocml.o hash.o strings.o
12
13 SRCS = macro.c mdoc.c mdocml.c hash.c strings.c
14
15 HEADS = mdoc.h
16
17 BINS = mdocml
18
19 CLEAN = $(BINS) $(LNS) $(LLNS) $(LIBS) $(OBJS)
20
21 all: $(BINS)
22
23 lint: $(LLNS)
24
25 mdocml: mdocml.o libmdoc.a
26 $(CC) $(CFLAGS) -o $@ mdocml.o libmdoc.a
27
28 clean:
29 rm -f $(CLEAN)
30
31 llib-llibmdoc.ln: macro.ln mdoc.ln hash.ln strings.ln
32 $(LINT) $(LINTFLAGS) -Clibmdoc mdoc.ln macro.ln hash.ln strings.ln
33
34 llib-lmdocml.ln: mdocml.ln llib-llibmdoc.ln
35 $(LINT) $(LINTFLAGS) -Cmdocml mdocml.ln llib-llibmdoc.ln
36
37 macro.ln: macro.c private.h
38
39 macro.o: macro.c private.h
40
41 strings.ln: strings.c private.h
42
43 strings.o: strings.c private.h
44
45 hash.ln: hash.c private.h
46
47 hash.o: hash.c private.h
48
49 mdoc.ln: mdoc.c private.h
50
51 mdoc.o: mdoc.c private.h
52
53 mdocml.ln: mdocml.c mdoc.h
54
55 mdocml.o: mdocml.c mdoc.h
56
57 private.h: mdoc.h
58
59 libmdoc.a: macro.o mdoc.o hash.o strings.o
60 $(AR) rs $@ macro.o mdoc.o hash.o strings.o
61