File: Makefile.in

package info (click to toggle)
cvsgraph 1.1.2-4
  • links: PTS
  • area: main
  • in suites: woody
  • size: 264 kB
  • ctags: 325
  • sloc: ansic: 1,616; yacc: 596; lex: 338; makefile: 84; php: 42
file content (62 lines) | stat: -rw-r--r-- 1,165 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Directories
prefix	= @prefix@
ETCDIR	= @sysconfdir@

# Set to your utilities
CC	= @CC@
LEX	= @LEX@
YACC	= @YACC@
RM	= rm -f

LIBS	= @LIBS@
CFLAGS	= @CFLAGS@ -DETCDIR=\"$(ETCDIR)\"
YACCFLAGS= -t
LEXFLAGS= @LEXFLAGS@ -d #-b

# Everything below here should be alright
TARGET	= cvsgraph

CSRCS	=\
	cvsgraph.c\
	utils.c

GENSRCS	=\
	y.tab.c\
	lex.yy.c\
	rcs.tab.c\
	lex.rcs.c

COBJS	= $(CSRCS:.c=.o)
GENOBJS	= $(GENSRCS:.c=.o)

.c.o:
	$(CC) $(CFLAGS) -c -o $*.o $<

$(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

y.tab.o: y.tab.c cvsgraph.h utils.h readconf.h
lex.yy.o: lex.yy.c y.tab.h readconf.h utils.h
rcsy.tab.o: rcsy.tab.c utils.h rcs.h

y.tab.c y.tab.h: confy.y
	$(YACC) $(YACCFLAGS) -d confy.y

lex.yy.c: confl.l
	$(LEX) $(LEXFLAGS) confl.l

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) y.tab.h rcs.tab.h

distclean: clean
	$(RM) config.cache config.status config.log Makefile config.h