blob: 7363687938e831c21aac7589cae19b71ad5c8b2e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
VERSION = 1.1.0
CFLAGS += -W -Wall -Wno-unused-parameter -g
LNS = macro.ln mdoc.ln mdocml.ln hash.ln strings.ln xstd.ln argv.ln validate.ln prologue.ln
LLNS = llib-llibmdoc.ln llib-lmdocml.ln
LIBS = libmdoc.a
OBJS = macro.o mdoc.o mdocml.o hash.o strings.o xstd.o argv.o validate.o prologue.o
SRCS = macro.c mdoc.c mdocml.c hash.c strings.c xstd.c argv.c validate.c prologue.c
HEADS = mdoc.h
BINS = mdocml
CLEAN = $(BINS) $(LNS) $(LLNS) $(LIBS) $(OBJS)
all: $(BINS)
lint: $(LLNS)
mdocml: mdocml.o libmdoc.a
$(CC) $(CFLAGS) -o $@ mdocml.o libmdoc.a
clean:
rm -f $(CLEAN)
llib-llibmdoc.ln: macro.ln mdoc.ln hash.ln strings.ln xstd.ln argv.ln validate.ln prologue.ln
$(LINT) $(LINTFLAGS) -Clibmdoc mdoc.ln macro.ln hash.ln strings.ln xstd.ln argv.ln validate.ln prologue.ln
llib-lmdocml.ln: mdocml.ln llib-llibmdoc.ln
$(LINT) $(LINTFLAGS) -Cmdocml mdocml.ln llib-llibmdoc.ln
macro.ln: macro.c private.h
macro.o: macro.c private.h
strings.ln: strings.c private.h
strings.o: strings.c private.h
hash.ln: hash.c private.h
hash.o: hash.c private.h
mdoc.ln: mdoc.c private.h
mdoc.o: mdoc.c private.h
mdocml.ln: mdocml.c mdoc.h
mdocml.o: mdocml.c mdoc.h
xstd.ln: xstd.c private.h
xstd.o: xstd.c private.h
argv.ln: argv.c private.h
argv.o: argv.c private.h
validate.ln: validate.c private.h
validate.o: validate.c private.h
prologue.ln: prologue.c private.h
prologue.o: prologue.c private.h
private.h: mdoc.h
libmdoc.a: macro.o mdoc.o hash.o strings.o xstd.o argv.o validate.o prologue.o
$(AR) rs $@ macro.o mdoc.o hash.o strings.o xstd.o argv.o validate.o prologue.o
|