Quick Search:

View

Revision:
Expand:  
Changeset: MAIN:gmcgarry:20080605042540

Diff

Diff from 1.19 to:

Annotations

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

Annotated File View

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