Quick Search:

View

Revision:
Expand:  
Changeset: MAIN:ragge:20060928111242

Diff

Diff from 1.7 to:

Annotations

Annotate by Age | Author | Mixed | None
/fisheye/browse/pcc/pcc/cc/cpp/Makefile.in

Annotated File View

ragge
1.7
1 #       $Id: Makefile.in,v 1.7 2006/09/28 11:12:42 ragge Exp $
ragge
1.1
2 #
3 # Makefile.in for cpp
4 #
5 XFL=-DCPP_DEBUG -DOLD -Wall -Wmissing-prototypes -Wstrict-prototypes -Werror
6
7 prefix = @prefix@
8 exec_prefix = @exec_prefix@
9 bindir = @bindir@
10 libexecdir = @libexecdir@
11 strip = @strip@
12 CC = @CC@
13 CFLAGS = @CFLAGS@ $(XFL)
14 CPPFLAGS = @CPPFLAGS@
15 LIBS = @LIBS@
16 LDFLAGS = @LDFLAGS@
17 LEX = @LEX@
18 YACC = @YACC@
19 INSTALL = @INSTALL@
20 INSTALL_PROGRAM = @INSTALL_PROGRAM@
21
ragge
1.7
22 OBJS=cpp.o cpy.o scanner.o
ragge
1.1
23 HEADERS=cpp.h
24 DEST=cpp
25
26 all: ${DEST}
27
28 ${DEST}: $(OBJS) $(HEADERS)
29         $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@
30
31 .c.o:
32         $(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) -c $<
33
pj
1.5
34 .l.o:
ragge
1.1
35         $(LEX) $(LFLAGS) $<
pj
1.5
36         $(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) -c -o $@ lex.yy.c
ragge
1.1
37
pj
1.5
38 .y.o:
ragge
1.7
39         $(YACC) -d $(YFLAGS) $<
pj
1.5
40         $(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) -c -o $@ y.tab.c
ragge
1.1
41
42 $(OBJS): $(HEADERS)
43
ragge
1.4
44 test:
ragge
1.3
45         ./cpp < tests/test1 > tests/run1
46         cmp tests/run1 tests/res1
47         ./cpp < tests/test2 > tests/run2
48         cmp tests/run2 tests/res2
49         ./cpp < tests/test3 > tests/run3
50         cmp tests/run3 tests/res3
51         ./cpp < tests/test4 > tests/run4
52         cmp tests/run4 tests/res4
ragge
1.7
53         ./cpp < tests/test5 > tests/run5
54         cmp tests/run5 tests/res5
55         ./cpp < tests/test6 > tests/run6
56         cmp tests/run6 tests/res6
57         ./cpp < tests/test7 > tests/run7
58         cmp tests/run7 tests/res7
59         ./cpp < tests/test8 > tests/run8
60         cmp tests/run8 tests/res8
ragge
1.2
61
62
ragge
1.1
63 install:
64         ${INSTALL_PROGRAM} ${DEST} ${libexecdir}
65         @if [ ${strip} = yes ]; then            \
66                 strip ${libexecdir}/${DEST} ;   \
67                 echo strip ${libexecdir}/${DEST} ;      \
68         fi
69
70 clean:
ragge
1.7
71         /bin/rm -f $(OBJS) cpp lex.yy.c y.tab.[ch] tests/run*
ragge
1.1
72
73 distclean: clean
74         /bin/rm -f Makefile
FishEye: Open Source License registered to PCC.
Your maintenance has expired. You can renew your license at http://www.atlassian.com/fisheye/renew
Atlassian FishEye, CVS analysis. (Version:1.6.3 Build:build-336 2008-11-04) - Administration - Page generated 2014-10-31 10:53 +0100