Quick Search:

View

Revision:
Expand:  
Changeset: MAIN:gmcgarry:20071130233958

Diff

Diff from 1.16 to:

Annotations

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

Annotated File View

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