Quick Search:

View

Revision:
Expand:  
Changeset: MAIN:ragge:20140516130202

Diff

Diff from 1.49 to:

Annotations

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

Annotated File View

ragge
1.49
1 #       $Id: Makefile.in,v 1.49 2014/05/16 13:02:02 ragge 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@
ragge
1.1
10 prefix = @prefix@
11 exec_prefix = @exec_prefix@
12 bindir = @bindir@
13 libexecdir = @libexecdir@
ragge
1.14
14 datarootdir = @datarootdir@
15 mandir = @mandir@
ragge
1.1
16 CC = @CC@
gmcgarry
1.24
17 EXEEXT = @EXEEXT@
gmcgarry
1.21
18 CFLAGS = @CFLAGS@ @ADD_CFLAGS@
plunky
1.39
19 CPPFLAGS = @CPPFLAGS@ @ADD_CPPFLAGS@ \
20         -I$(srcdir) -I$(top_builddir) -I$(builddir) -I$(MIPDIR) -I$(MDIR)
ragge
1.1
21 LIBS = @LIBS@
22 LDFLAGS = @LDFLAGS@
23 YACC = @YACC@
plunky
1.33
24 YFLAGS = @YFLAGS@
ragge
1.1
25 INSTALL = @INSTALL@
26 INSTALL_PROGRAM = @INSTALL_PROGRAM@
plunky
1.40
27 INSTALL_DATA = @INSTALL_DATA@
ragge
1.13
28 TARGMACH = @targmach@
ragge
1.1
29
ragge
1.17
30 MIPDIR=$(top_srcdir)/mip
31 MDIR=$(top_srcdir)/arch/$(TARGMACH)
ragge
1.13
32
plunky
1.43
33 DEST=@BINPREFIX@cpp$(EXEEXT)
34
plunky
1.42
35 all: $(DEST)
ragge
1.1
36
ragge
1.49
37 OBJS=   compat.o cpp.o cpy.o token.o unicode.o
plunky
1.43
38 HDRS=   cpp.h
ragge
1.1
39
plunky
1.43
40 $(OBJS): $(HDRS) cpy.c
ragge
1.1
41
ragge
1.13
42 compat.o: $(MIPDIR)/compat.c
plunky
1.38
43         $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $(MIPDIR)/compat.c
ragge
1.13
44
ragge
1.49
45 unicode.o: $(MIPDIR)/unicode.c
46         $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $(MIPDIR)/unicode.c
47
plunky
1.43
48 cpp.o: $(srcdir)/cpp.c
49         $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $(srcdir)/cpp.c
ragge
1.1
50
plunky
1.43
51 cpy.c: $(srcdir)/cpy.y
52         $(YACC) $(YFLAGS) -d $(srcdir)/cpy.y
53         mv -f y.tab.c cpy.c
54         mv -f y.tab.h cpy.h
55
56 cpy.o: cpy.c
57         $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ cpy.c
58
59 token.o: $(srcdir)/token.c
60         $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $(srcdir)/token.c
61
62 $(DEST): $(OBJS)
63         $(CC) $(LDFLAGS) $(OBJS) -o $@ $(LIBS)
ragge
1.8
64
plunky
1.48
65 test: $(DEST)
66         @for n in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 ; do                \
67                 echo -n "test$${n} " ;                                          \
68                 ./$(DEST) < tests/test$${n} > tests/run$${n} &&                 \
69                 cmp tests/run$${n} tests/res$${n} && echo ;                     \
70                 if test -f tests/res$${n}C ; then                               \
71                         echo -n "test$${n}C " ;                                 \
72                         ./$(DEST) -C < tests/test$${n} > tests/run$${n}C &&     \
73                         cmp tests/run$${n}C tests/res$${n}C && echo ;           \
74                 fi ;                                                            \
75         done
ragge
1.2
76
ragge
1.1
77 install:
plunky
1.42
78         test -z "$(DESTDIR)$(libexecdir)" || mkdir -p "$(DESTDIR)$(libexecdir)"
79         $(INSTALL_PROGRAM) $(DEST) $(DESTDIR)$(libexecdir)
80         test -z "$(DESTDIR)$(mandir)/man1" || mkdir -p "$(DESTDIR)$(mandir)/man1"
81         $(INSTALL_DATA) $(srcdir)/cpp.1 $(DESTDIR)$(mandir)/man1/$(DEST).1
ragge
1.1
82
83 clean:
plunky
1.43
84         rm -f $(OBJS) $(DEST) cpy.[ch] y.tab.[ch] tests/run*
ragge
1.1
85
86 distclean: clean
plunky
1.37
87         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-28 18:15 +0100