/[CvsGraph]/cvsgraph/Makefile.in
ViewVC logotype

Annotate of /cvsgraph/Makefile.in

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations)
Fri Feb 23 00:11:30 2001 UTC (16 years, 8 months ago) by bertho
Branch: MAIN
Start to use autoconf. This makes detecting old/new libgd easier.
Also a bit more portable.
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
14 # Everything below here should be alright
15 TARGET = cvsgraph
16
17 CSRCS =\
18 cvsgraph.c\
19 utils.c
20
21 GENSRCS =\
22 y.tab.c\
23 lex.yy.c
24
25 COBJS = $(CSRCS:.c=.o)
26 GENOBJS = $(GENSRCS:.c=.o)
27
28 .c.o:
29 $(CC) $(CFLAGS) -c -o $*.o $<
30
31 $(TARGET): $(COBJS) $(GENOBJS)
32 $(CC) $(CFLAGS) -o $(TARGET) $(COBJS) $(GENOBJS) $(LIBS)
33
34 cvsgraph.o: cvsgraph.c cvsgraph.h utils.h readconf.h
35 utils.o: utils.c utils.h readconf.h
36
37 y.tab.o: y.tab.c cvsgraph.h utils.h readconf.h
38 lex.yy.o: lex.yy.c readconf.h utils.h
39
40 y.tab.c y.tab.h: confy.y
41 $(YACC) -d confy.y
42
43 lex.yy.c: confl.l
44 $(LEX) -8 confl.l
45
46 clean::
47 $(RM) *.o $(TARGET) $(GENSRCS) y.tab.h

  ViewVC Help
Powered by ViewVC 1.1.0 with CvsGraph 1.7.0