summaryrefslogblamecommitdiffstats
path: root/Makefile
blob: 30f8df5faad7b71c230cb563db5f708f2e1eac77 (plain) (tree)
1
2
3
4
5
6
7
8
9
               
 
                                            
 
                                            
 
                                          
 
                   
 
                                        
 
                                        
 
                
 
                
 
                                                
 
               
 
               
 

                                                



                      
                                          
                                                               
 

                                                                
 
                           
 
                          
 
                         
 
                        
 
                         
 
                        
 
                          
 
                         
 
                 
 

                                         
 
VERSION	= 1.1.0

CFLAGS += -W -Wall -Wno-unused-parameter -g 

LNS	= macro.ln mdoc.ln mdocml.ln hash.ln

LLNS	= llib-llibmdoc.ln llib-lmdocml.ln

LIBS	= libmdoc.a

OBJS	= macro.o mdoc.o mdocml.o hash.o

SRCS	= macro.c mdoc.c mdocml.c hash.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
	$(LINT) $(LINTFLAGS) -Clibmdoc mdoc.ln macro.ln hash.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

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

private.h: mdoc.h

libmdoc.a: macro.o mdoc.o hash.o
	$(AR) rs $@ macro.o mdoc.o hash.o