blob: b0fcf0a3fcd6e82613f5c98baa60c260b8795b50 (
plain) (
tree)
|
|
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 action.ln tree.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 action.o tree.o
SRCS = macro.c mdoc.c mdocml.c hash.c strings.c xstd.c argv.c validate.c action.c tree.c
HEADS = mdoc.h
BINS = mdocml
CLEAN = $(BINS) $(LNS) $(LLNS) $(LIBS) $(OBJS)
all: $(BINS)
lint: $(LLNS)
mdocml: mdocml.o tree.o libmdoc.a
$(CC) $(CFLAGS) -o $@ mdocml.o tree.o libmdoc.a
clean:
rm -f $(CLEAN)
llib-llibmdoc.ln: macro.ln mdoc.ln hash.ln strings.ln xstd.ln argv.ln validate.ln action.ln
$(LINT) $(LINTFLAGS) -Clibmdoc mdoc.ln macro.ln hash.ln strings.ln xstd.ln argv.ln validate.ln action.ln
llib-lmdocml.ln: mdocml.ln tree.ln llib-llibmdoc.ln
$(LINT) $(LINTFLAGS) -Cmdocml mdocml.ln tree.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
tree.ln: tree.c mdoc.h
tree.o: tree.c mdoc.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
action.ln: action.c private.h
action.o: action.c private.h
private.h: mdoc.h
libmdoc.a: macro.o mdoc.o hash.o strings.o xstd.o argv.o validate.o action.o
$(AR) rs $@ macro.o mdoc.o hash.o strings.o xstd.o argv.o validate.o action.o
|