3 # C Cross Referencing & Documentation tool. Version 1.5g.
7 # Written by Andrew M. Bishop
9 # This file Copyright 1995,96,99,2000,01,02,04 Andrew M. Bishop
10 # It may be distributed under the GNU Public License, version 2, or
11 # any higher version. See section COPYING of the GNU Public license
12 # for conditions under which this file may be redistributed.
20 # The installation locations
23 exec_prefix=@
exec_prefix@
24 bindir=$(DESTDIR
)@
bindir@
25 mandir=$(DESTDIR
)@
mandir@
26 datadir=$(DESTDIR
)@
datadir@
/cxref
28 # The installation program.
32 # The C compiler and linker
51 programs
: @CXREF_CPP@
55 OBJ_FILES
=cccp.o cexp.o version.o
59 cxref-cpp
: $(OBJ_FILES
) cxref-cpp.defines
60 $(LD
) $(LDFLAGS
) $(OBJ_FILES
) -o
$@
$(LIBRARY
)
66 [ ! -f cxref-cpp
] ||
$(INSTALL
) -m
755 cxref-cpp
$(bindir)
67 [ ! -f cxref-cpp
] ||
$(INSTALL
) -m
644 cxref-cpp.man
$(mandir)/man1
/cxref-cpp
.1
68 [ ! -f cxref-cpp
] ||
$(INSTALL
) -m
755 cxref-cpp-configure
$(bindir)
69 [ ! -f cxref-cpp
] ||
$(INSTALL
) -m
644 cxref-cpp-configure.man
$(mandir)/man1
/cxref-cpp-configure
.1
70 [ ! -f cxref-cpp
] ||
[ -d
$(datadir) ] ||
$(INSTALL
) -d
$(datadir)
71 [ ! -f cxref-cpp
] ||
$(INSTALL
) -m
644 cxref-cpp.defines
$(datadir)
73 install-win32
: programs
74 [ ! -f cxref-cpp.exe
] ||
$(INSTALL
) -m
755 cxref-cpp.exe
$(bindir)
75 [ ! -f cxref-cpp.exe
] ||
$(INSTALL
) -m
755 cxref-cpp-configure
$(bindir)
76 [ ! -f cxref-cpp.exe
] ||
[ -d
$(datadir) ] ||
$(INSTALL
) -d
$(datadir)
77 [ ! -f cxref-cpp.exe
] ||
$(INSTALL
) -m
644 cxref-cpp.defines
$(datadir)
82 -rm -f cxref-cpp core
*.o
*~ y.tab.c
87 -rm -f Makefile cxref-cpp-configure autoconfig.h \
88 config.log config.status config.cache conftest.gcc
93 $(YACC
) $(srcdir)/cexp.y
99 cccp.o
: cccp.c config.h tm.h pcp.h autoconfig.h
100 $(CC
) -c
-w
$(CFLAGS
) $(srcdir)/cccp.c
-o
$@
$(INCLUDE
) \
101 '-DLOCAL_INCLUDE_DIR="INCLUDE_DIR1"' \
102 '-DTOOL_INCLUDE_DIR="INCLUDE_DIR2"' \
103 '-DGCC_INCLUDE_DIR="INCLUDE_DIR3"' \
104 '-DGPLUSPLUS_INCLUDE_DIR="."' \
105 '-DCXREF_CPP_DEFINES="$(datadir)/cxref-cpp.defines"'
114 $(CC
) -c
-w
$(CFLAGS
) $< -o
$@
$(INCLUDE
)
117 version.o
: version.c
118 cexp.o
: cexp.c config.h tm.h autoconfig.h
122 cxref-cpp.defines
: cxref-cpp-configure
123 .
/cxref-cpp-configure
$(CC
) -o
$@