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