1 |
bertho |
1.1 |
# Directories
|
2 |
|
|
prefix = @prefix@
|
3 |
|
|
ETCDIR = $(prefix)/etc
|
4 |
|
|
|
5 |
|
|
# Set to your utilities
|
6 |
|
|
CC = @CC@
|
7 |
|
|
LEX = @LEX@
|
8 |
|
|
YACC = @YACC@
|
9 |
|
|
RM = rm -f
|
10 |
|
|
|
11 |
|
|
LIBS = @LDFLAGS@
|
12 |
|
|
CFLAGS = @CFLAGS@ -DETCDIR=\"$(ETCDIR)\"
|
13 |
bertho |
1.3 |
YACCFLAGS= -t
|
14 |
|
|
LEXFLAGS= @LEXFLAGS@ -d #-b
|
15 |
bertho |
1.1 |
|
16 |
|
|
# Everything below here should be alright
|
17 |
|
|
TARGET = cvsgraph
|
18 |
|
|
|
19 |
|
|
CSRCS =\
|
20 |
|
|
cvsgraph.c\
|
21 |
|
|
utils.c
|
22 |
|
|
|
23 |
|
|
GENSRCS =\
|
24 |
|
|
y.tab.c\
|
25 |
bertho |
1.3 |
lex.yy.c\
|
26 |
|
|
rcs.tab.c\
|
27 |
|
|
lex.rcs.c
|
28 |
bertho |
1.1 |
|
29 |
|
|
COBJS = $(CSRCS:.c=.o)
|
30 |
|
|
GENOBJS = $(GENSRCS:.c=.o)
|
31 |
|
|
|
32 |
|
|
.c.o:
|
33 |
|
|
$(CC) $(CFLAGS) -c -o $*.o $<
|
34 |
|
|
|
35 |
|
|
$(TARGET): $(COBJS) $(GENOBJS)
|
36 |
|
|
$(CC) $(CFLAGS) -o $(TARGET) $(COBJS) $(GENOBJS) $(LIBS)
|
37 |
|
|
|
38 |
bertho |
1.3 |
cvsgraph.o: cvsgraph.c config.h cvsgraph.h utils.h readconf.h rcs.h
|
39 |
bertho |
1.1 |
utils.o: utils.c utils.h readconf.h
|
40 |
|
|
|
41 |
|
|
y.tab.o: y.tab.c cvsgraph.h utils.h readconf.h
|
42 |
bertho |
1.2 |
lex.yy.o: lex.yy.c y.tab.h readconf.h utils.h
|
43 |
bertho |
1.3 |
rcsy.tab.o: rcsy.tab.c utils.h rcs.h
|
44 |
bertho |
1.1 |
|
45 |
|
|
y.tab.c y.tab.h: confy.y
|
46 |
bertho |
1.3 |
$(YACC) $(YACCFLAGS) -d confy.y
|
47 |
bertho |
1.1 |
|
48 |
|
|
lex.yy.c: confl.l
|
49 |
bertho |
1.3 |
$(LEX) $(LEXFLAGS) confl.l
|
50 |
|
|
|
51 |
|
|
rcs.tab.c rcs.tab.h: rcsy.y
|
52 |
|
|
$(YACC) $(YACCFLAGS) -d -brcs -prcs rcsy.y
|
53 |
|
|
|
54 |
|
|
lex.rcs.c: rcsl.l
|
55 |
|
|
$(LEX) $(LEXFLAGS) -Prcs rcsl.l
|
56 |
bertho |
1.1 |
|
57 |
|
|
clean::
|
58 |
bertho |
1.3 |
$(RM) *.o $(TARGET) $(GENSRCS) y.tab.h rcs.tab.h
|
59 |
bertho |
1.2 |
|
60 |
|
|
distclean: clean
|
61 |
|
|
$(RM) config.cache config.status config.log Makefile config.h
|
62 |
|
|
|