annotate dynodump/Makefile.in.in @ 61:dd3566f69ebd

Added tag r19-16-pre5 for changeset 2e6f5e180fb8
author cvs
date Mon, 13 Aug 2007 08:59:00 +0200
parents 9ee227acff29
children 131b0175ea99
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 /* Hey Emacs, this is a -*- Makefile -*- */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3 /* Makefile for dynodump subdirectory in XEmacs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 Copyright (C) 1995 Board of Trustees, University of Illinois
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 This file is part of XEmacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 XEmacs is free software; you can redistribute it and/or modify it
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 under the terms of the GNU General Public License as published by the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 Free Software Foundation; either version 2, or (at your option) any
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 later version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 XEmacs is distributed in the hope that it will be useful, but WITHOUT
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 for more details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 You should have received a copy of the GNU General Public License
12
bcdc7deadc19 Import from CVS: tag r19-15b7
cvs
parents: 10
diff changeset
19 along with XEmacs; see the file COPYING. If not, write to
bcdc7deadc19 Import from CVS: tag r19-15b7
cvs
parents: 10
diff changeset
20 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
bcdc7deadc19 Import from CVS: tag r19-15b7
cvs
parents: 10
diff changeset
21 Boston, MA 02111-1307, USA. */
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 /* Avoid trouble on systems where the "SHELL" variable might be
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 inherited from the environment. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 SHELL = /bin/sh
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 /* Some people use these in paths they define. We do not want their paths
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 getting changed on them. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 #undef sparc
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 #undef sun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 #undef unix
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 #undef i386
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 #undef ppc
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 #undef sgi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 /* ==================== Things "configure" will edit ==================== */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 CC=@CC@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 CFLAGS=@CFLAGS@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 ARCH=@dynodump_arch@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 /* Where to find the source code. This is set by the configure
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 "--srcdir" option. However, the value of ${srcdir} in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 this makefile is not identical to what was specified with --srcdir,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 since the variable here has "/dynodump" added at the end. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 srcdir=@srcdir@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 /* ========================= start of cpp stuff ========================= */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 #define NO_SHORTNAMES
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 #define THIS_IS_YMAKEFILE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 #define NOT_C_CODE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 #include "../src/config.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 /* With the traditional VPATH setting, it is not possible to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 simultaneously compile in-place and in another directory. The
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57 mistaken definition is that *all* dependencies are searched for in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 the VPATH directory, rather than just the dependencies that are not
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 themselves targets. Thus, if there is an up-to-date .o file in the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 in-place location, it will not get recompiled in the not-in-place
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 location.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63 The GNU Make "vpath" directive continues this tradition, but at
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 least lets you to restrict the classes of files that it applies to.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 This allows us to kludge around the problem. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 #ifdef USE_GNU_MAKE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 vpath %.c @srcdir@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 vpath %.h @srcdir@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 /* now list files that should NOT be searched in the srcdir.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 This includes any .c or .h that is built from something else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 (e.g. a .in file). */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 /* none here */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 VPATH=@srcdir@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 #ifdef USE_GCC
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 # define PIC_ARG -fpic
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 # define PIC_ARG -K pic
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83 INCLUDES = -I${srcdir} -I${srcdir}/$(ARCH)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 ALL_CFLAGS = ${CFLAGS} PIC_ARG ${INCLUDES}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85 OBJS = _relocate.o dynodump.o syms.o uninit.o
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 .c.o:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 $(CC) -c $(ALL_CFLAGS) $<
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 /* If we do not need dynodump, then do nothing. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91 #ifdef DYNODUMP
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92 all:: dynodump.so
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94 all::
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97 dynodump.so: ${srcdir}/_dynodump.h $(OBJS)
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 12
diff changeset
98 PATH=/usr/ccs/bin:/bin:$$PATH ld -o dynodump.so -G $(OBJS) -lelf -lmapmalloc
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100 _relocate.o: ${srcdir}/$(ARCH)/_relocate.c
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101 $(CC) -c $(ALL_CFLAGS) ${srcdir}/$(ARCH)/_relocate.c
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103 uninit.o: ${srcdir}/$(ARCH)/uninit.c
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104 $(CC) -c $(ALL_CFLAGS) ${srcdir}/$(ARCH)/uninit.c
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
105
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
106 mostlyclean:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107 -rm -f *.o \#*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109 clean: mostlyclean
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
110 -rm -f *.so *.so.1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
111
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
112 distclean: clean
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
113 -rm -f Makefile Makefile.in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
114
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
115 realclean: distclean
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
116 rm -f TAGS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
117
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118 versionclean:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119 true
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121 extraclean: realclean
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
122 -rm -f *~ \#*