Quick Search:

View

Revision:
Expand:  
Changeset: MAIN:ragge:20060730093330

Diff

Diff from 1.6 to:

Annotations

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

Annotated File View

ragge
1.6
1 #       $Id: Makefile.in,v 1.6 2006/07/30 09:33:30 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
22 OBJS=cpp.o cpy.o token.o
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.1
39         $(YACC) $(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.2
53
54
ragge
1.1
55 install:
56         ${INSTALL_PROGRAM} ${DEST} ${libexecdir}
57         @if [ ${strip} = yes ]; then            \
58                 strip ${libexecdir}/${DEST} ;   \
59                 echo strip ${libexecdir}/${DEST} ;      \
60         fi
61
62 clean:
ragge
1.6
63         /bin/rm -f $(OBJS) cpp lex.yy.c y.tab.c tests/run*
ragge
1.1
64
65 distclean: clean
66         /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-11-01 15:09 +0100