File: Makefile.in

package info (click to toggle)
cxref 1.6a-1.1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,124 kB
  • ctags: 1,502
  • sloc: ansic: 18,209; yacc: 2,086; sh: 917; lex: 460; perl: 452; makefile: 418; lisp: 256; cpp: 188; python: 80
file content (117 lines) | stat: -rw-r--r-- 2,991 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# $Header: /home/amb/cxref/cpp/RCS/Makefile.in 1.12 2004/11/06 17:29:54 amb Exp $
#
# C Cross Referencing & Documentation tool. Version 1.6a.
#
# CPP Makefile.
#
# Written by Andrew M. Bishop
#
# This file Copyright 1995,96,99,2000,01,02,04 Andrew M. Bishop
# It may be distributed under the GNU Public License, version 2, or
# any higher version.  See section COPYING of the GNU Public license
# for conditions under which this file may be redistributed.
#

# autoconf things

srcdir=@srcdir@
VPATH=@srcdir@

# The installation locations

prefix=@prefix@
exec_prefix=@exec_prefix@
bindir=$(DESTDIR)@bindir@
mandir=$(DESTDIR)@mandir@
datadir=$(DESTDIR)@datadir@/cxref

# The installation program.

INSTALL=@INSTALL@

# The C compiler and linker

CC=@CC@
LD=@CC@

CFLAGS=@CFLAGS@
LDFLAGS=@LDFLAGS@

# The Yacc program

YACC=@YACC@ -l

########

INCLUDE=-I. -I$(srcdir)
LIBRARY=@LIBS@

########

programs : @CXREF_CPP@

########

OBJ_FILES=cccp.o cexp.o prefix.o version.o

####

cxref-cpp : $(OBJ_FILES) cxref-cpp.defines
	$(LD) $(LDFLAGS) $(OBJ_FILES) -o $@ $(LIBRARY)
	@touch $@

########

install : programs
	[ ! -f cxref-cpp ] || [ -d $(bindir) ] || $(INSTALL) -d $(bindir)
	[ ! -f cxref-cpp ] || $(INSTALL) -m 755 cxref-cpp $(bindir)
	[ ! -f cxref-cpp ] || $(INSTALL) -m 755 cxref-cpp-configure $(bindir)
	[ ! -f cxref-cpp ] || [ -d $(mandir)/man1 ] || $(INSTALL) -d $(mandir)/man1
	[ ! -f cxref-cpp ] || $(INSTALL) -m 644 $(srcdir)/cxref-cpp.man $(mandir)/man1/cxref-cpp.1
	[ ! -f cxref-cpp ] || $(INSTALL) -m 644 $(srcdir)/cxref-cpp-configure.man $(mandir)/man1/cxref-cpp-configure.1
	[ ! -f cxref-cpp ] || [ -d $(datadir) ] || $(INSTALL) -d $(datadir)
	[ ! -f cxref-cpp ] || $(INSTALL) -m 644 cxref-cpp.defines $(datadir)

install-win32 : programs
	[ ! -f cxref-cpp.exe ] || [ -d $(bindir) ] || $(INSTALL) -d $(bindir)
	[ ! -f cxref-cpp.exe ] || $(INSTALL) -m 755 cxref-cpp.exe $(bindir)
	[ ! -f cxref-cpp.exe ] || $(INSTALL) -m 755 cxref-cpp-configure $(bindir)
	[ ! -f cxref-cpp.exe ] || [ -d $(datadir) ] || $(INSTALL) -d $(datadir)
	[ ! -f cxref-cpp.exe ] || $(INSTALL) -m 644 cxref-cpp.defines $(datadir)

########

clean :
	-rm -f cxref-cpp cxref-cpp.defines core *.o *~

####

distclean : clean
	-rm -f Makefile cxref-cpp-configure autoconfig.h \
	config.log config.status config.cache conftest.gcc

########

cccp.o   : cccp.c config.h pcp.h autoconfig.h
	$(CC) -c $(CFLAGS) $< -o $@ $(INCLUDE) -DIN_GCC \
	 '-DCXREF_CPP_DEFINES="$(datadir)/cxref-cpp.defines"'
	@touch $@

cexp.o    : cexp.c config.h autoconfig.h gansidecl.h ansidecl.h system.h libiberty.h intl.h
	$(CC) -c $(CFLAGS) $< -o $@ $(INCLUDE) -DIN_GCC
	@touch $@

prefix.o  : prefix.c config.h autoconfig.h gansidecl.h ansidecl.h system.h libiberty.h prefix.h
	$(CC) -c $(CFLAGS) $< -o $@ $(INCLUDE) -DIN_GCC -DPREFIX=\"/\"
	@touch $@

version.o : version.c
	$(CC) -c $(CFLAGS) $< -o $@ $(INCLUDE) -DIN_GCC
	@touch $@

########

cxref-cpp.defines : cxref-cpp-configure
	./cxref-cpp-configure $(CC) -o $@

########