Quick Search:

View

Revision:
Expand:  
Changeset: MAIN:ragge:20070915145004

Diff

Diff from 1.12 to:

Annotations

Annotate by Age | Author | Mixed | None
ragge (75) pj (4)
/fisheye/browse/pcc/pcc/cc/cpp/Makefile.in

Annotated File View

ragge
1.12
1 #       $Id: Makefile.in,v 1.12 2007/09/15 14:50:07 ragge Exp $
ragge
1.1
2 #
3 # Makefile.in for cpp
4 #
ragge
1.9
5 XFL=-DCPP_DEBUG -Wall -Wmissing-prototypes -Wstrict-prototypes -Werror
ragge
1.1
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.8
44 cpp.o: cpy.o
45
ragge
1.4
46 test:
ragge
1.3
47         ./cpp < tests/test1 > tests/run1
48         cmp tests/run1 tests/res1
49         ./cpp < tests/test2 > tests/run2
50         cmp tests/run2 tests/res2
51         ./cpp < tests/test3 > tests/run3
52         cmp tests/run3 tests/res3
53         ./cpp < tests/test4 > tests/run4
54         cmp tests/run4 tests/res4
ragge
1.7
55         ./cpp < tests/test5 > tests/run5
56         cmp tests/run5 tests/res5
57         ./cpp < tests/test6 > tests/run6
58         cmp tests/run6 tests/res6
59         ./cpp < tests/test7 > tests/run7
60         cmp tests/run7 tests/res7
61         ./cpp < tests/test8 > tests/run8
62         cmp tests/run8 tests/res8
ragge
1.10
63         ./cpp < tests/test9 > tests/run9
64         cmp tests/run9 tests/res9
ragge
1.2
65
66
ragge
1.1
67 install:
ragge
1.12
68         test -z "${DESTDIR}$(libexecdir)" || mkdir -p "${DESTDIR}$(libexecdir)"
69         ${INSTALL_PROGRAM} ${DEST} ${DESTDIR}${libexecdir}
ragge
1.1
70         @if [ ${strip} = yes ]; then            \
ragge
1.12
71                 strip ${DESTDIR}${libexecdir}/${DEST} ; \
72                 echo strip ${DESTDIR}${libexecdir}/${DEST} ;    \
ragge
1.1
73         fi
74
75 clean:
ragge
1.7
76         /bin/rm -f $(OBJS) cpp lex.yy.c y.tab.[ch] tests/run*
ragge
1.1
77
78 distclean: clean
79         /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-26 15:19 +0100