Quick Search:

View

Revision:
Expand:  
Changeset: MAIN:ragge:20070920120233

Diff

Diff from 1.13 to:

Annotations

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

Annotated File View

ragge
1.13
1 #       $Id: Makefile.in,v 1.13 2007/09/20 12:02:50 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)
ragge
1.13
14 CPPFLAGS = @CPPFLAGS@ -I${MDIR}
ragge
1.1
15 LIBS = @LIBS@
16 LDFLAGS = @LDFLAGS@
17 LEX = @LEX@
18 YACC = @YACC@
19 INSTALL = @INSTALL@
20 INSTALL_PROGRAM = @INSTALL_PROGRAM@
ragge
1.13
21 TARGMACH = @targmach@
ragge
1.1
22
ragge
1.13
23 OBJS=cpp.o cpy.o scanner.o compat.o
ragge
1.1
24 HEADERS=cpp.h
25 DEST=cpp
26
ragge
1.13
27 MIPDIR=../../mip
28 MDIR=../../arch/$(TARGMACH)
29
ragge
1.1
30 all: ${DEST}
31
32 ${DEST}: $(OBJS) $(HEADERS)
33         $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@
34
35 .c.o:
36         $(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) -c $<
37
pj
1.5
38 .l.o:
ragge
1.1
39         $(LEX) $(LFLAGS) $<
pj
1.5
40         $(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) -c -o $@ lex.yy.c
ragge
1.1
41
pj
1.5
42 .y.o:
ragge
1.7
43         $(YACC) -d $(YFLAGS) $<
pj
1.5
44         $(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) -c -o $@ y.tab.c
ragge
1.1
45
ragge
1.13
46 compat.o: $(MIPDIR)/compat.c
47         $(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) -c -o $@ $(MIPDIR)/compat.c
48
ragge
1.1
49 $(OBJS): $(HEADERS)
50
ragge
1.8
51 cpp.o: cpy.o
52
ragge
1.4
53 test:
ragge
1.3
54         ./cpp < tests/test1 > tests/run1
55         cmp tests/run1 tests/res1
56         ./cpp < tests/test2 > tests/run2
57         cmp tests/run2 tests/res2
58         ./cpp < tests/test3 > tests/run3
59         cmp tests/run3 tests/res3
60         ./cpp < tests/test4 > tests/run4
61         cmp tests/run4 tests/res4
ragge
1.7
62         ./cpp < tests/test5 > tests/run5
63         cmp tests/run5 tests/res5
64         ./cpp < tests/test6 > tests/run6
65         cmp tests/run6 tests/res6
66         ./cpp < tests/test7 > tests/run7
67         cmp tests/run7 tests/res7
68         ./cpp < tests/test8 > tests/run8
69         cmp tests/run8 tests/res8
ragge
1.10
70         ./cpp < tests/test9 > tests/run9
71         cmp tests/run9 tests/res9
ragge
1.2
72
73
ragge
1.1
74 install:
ragge
1.12
75         test -z "${DESTDIR}$(libexecdir)" || mkdir -p "${DESTDIR}$(libexecdir)"
76         ${INSTALL_PROGRAM} ${DEST} ${DESTDIR}${libexecdir}
ragge
1.1
77         @if [ ${strip} = yes ]; then            \
ragge
1.12
78                 strip ${DESTDIR}${libexecdir}/${DEST} ; \
79                 echo strip ${DESTDIR}${libexecdir}/${DEST} ;    \
ragge
1.1
80         fi
81
82 clean:
ragge
1.7
83         /bin/rm -f $(OBJS) cpp lex.yy.c y.tab.[ch] tests/run*
ragge
1.1
84
85 distclean: clean
86         /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 09:28 +0100