annotate dynodump/Makefile.in @ 74:54cc21c15cbb r20-0b32

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