# Directories prefix = ETCDIR = ${prefix}/etc # Set to your utilities CC = cc LEX = flex YACC = bison -y RM = rm -f LIBS = -lgd -lm CFLAGS = -fno-common -DETCDIR=\"$(ETCDIR)\" -DINTTYPE="int" YACCFLAGS= -t LEXFLAGS= -8 -Cf -d #-b # Everything below here should be alright TARGET = cvsgraph CSRCS =\ cvsgraph.c\ utils.c\ readconf.c GENSRCS =\ rcs.tab.c\ lex.rcs.c COBJS = $(CSRCS:.c=.o) GENOBJS = $(GENSRCS:.c=.o) .c.o: $(CC) $(CFLAGS) -c -o $*.o $< all: $(TARGET) $(TARGET): $(COBJS) $(GENOBJS) $(CC) $(CFLAGS) -o $(TARGET) $(COBJS) $(GENOBJS) $(LIBS) cvsgraph.o: cvsgraph.c config.h cvsgraph.h utils.h readconf.h rcs.h utils.o: utils.c utils.h readconf.h readconf.o: readconf.c readconf.h utils.h cvsgraph.h lex.rcs.o: lex.rcs.c rcs.tab.h readconf.h utils.h rcs.h rcs.tab.o: rcs.tab.c utils.h rcs.h cvsgraph.h rcs.tab.c rcs.tab.h: rcsy.y $(YACC) $(YACCFLAGS) -d -brcs -prcs rcsy.y lex.rcs.c: rcsl.l $(LEX) $(LEXFLAGS) -Prcs rcsl.l clean:: $(RM) core *.o $(TARGET) $(GENSRCS) rcs.tab.h distclean: clean $(RM) config.cache config.status config.log Makefile config.h