Quick Search:

View

Revision:
Expand:  
Changeset: MAIN:ragge:20061007091725

Diff

Diff from 1.8 to:

Annotations

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

Annotated File View

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