# Directories prefix = @prefix@ ETCDIR = @sysconfdir@ # Set to your utilities CC = @CC@ LEX = @LEX@ YACC = @YACC@ RM = rm -f LIBS = @LIBS@ CFLAGS = @CFLAGS@ -DETCDIR=\"$(ETCDIR)\" -DINTTYPE="@INTTYPE@" YACCFLAGS= -t LEXFLAGS= @LEXFLAGS@ -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