version 1.1, 2008/11/22 14:53:29 |
version 1.55, 2009/01/01 20:40:16 |
|
|
CFLAGS += -W -Wall -g |
VERSION = 1.1.0 |
|
|
LINTFLAGS += -c -e -f -u |
CFLAGS += -W -Wall -Wno-unused-parameter -g |
|
|
CLEAN = mdocml mdocml.o mdocml.ln libmdocml.o libmdocml.ln |
LNS = macro.ln mdoc.ln mdocml.ln hash.ln strings.ln xstd.ln argv.ln validate.ln prologue.ln |
|
|
INSTALL = Makefile libmdocml.h mdocml.c libmdocml.c mdocml.1 |
LLNS = llib-llibmdoc.ln llib-lmdocml.ln |
|
|
all: mdocml |
LIBS = libmdoc.a |
|
|
lint: mdocml.ln libmdocml.ln |
OBJS = macro.o mdoc.o mdocml.o hash.o strings.o xstd.o argv.o validate.o prologue.o |
|
|
mdocml: mdocml.o libmdocml.o |
SRCS = macro.c mdoc.c mdocml.c hash.c strings.c xstd.c argv.c validate.c prologue.c |
$(CC) $(CFLAGS) -o $@ mdocml.o libmdocml.o |
|
|
|
|
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: |
clean: |
rm -f $(CLEAN) |
rm -f $(CLEAN) |
|
|
dist: |
llib-llibmdoc.ln: macro.ln mdoc.ln hash.ln strings.ln xstd.ln argv.ln validate.ln prologue.ln |
mkdir -p .dist/mdocml/ |
$(LINT) $(LINTFLAGS) -Clibmdoc mdoc.ln macro.ln hash.ln strings.ln xstd.ln argv.ln validate.ln prologue.ln |
install -m 0644 $(INSTALL) .dist/mdocml/ |
|
( cd .dist/ && tar zcf ../mdocml.tgz mdocml/ ) |
|
rm -rf .dist/ |
|
|
|
mdocml.ln: mdocml.c |
llib-lmdocml.ln: mdocml.ln llib-llibmdoc.ln |
|
$(LINT) $(LINTFLAGS) -Cmdocml mdocml.ln llib-llibmdoc.ln |
|
|
mdocml.o: mdocml.c |
macro.ln: macro.c private.h |
|
|
mdocml.c: libmdocml.h |
macro.o: macro.c private.h |
|
|
libmdocml.ln: libmdocml.c |
strings.ln: strings.c private.h |
|
|
libmdocml.o: libmdocml.c |
strings.o: strings.c private.h |
|
|
libmdocml.c: libmdocml.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 |
|
|