File: Makefile.in

package info (click to toggle)
cvsgraph 1.6.0-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 576 kB
  • ctags: 610
  • sloc: ansic: 5,210; yacc: 440; lex: 209; makefile: 79; php: 42; sh: 41
file content (57 lines) | stat: -rw-r--r-- 1,106 bytes parent folder | download | duplicates (2)
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
# 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