Mercurial > hg > xemacs-beta
comparison dynodump/Makefile.in.in @ 153:25f70ba0133c r20-3b3
Import from CVS: tag r20-3b3
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:38:25 +0200 |
parents | |
children | 6b37e6ddd302 |
comparison
equal
deleted
inserted
replaced
152:4c132ee2d62b | 153:25f70ba0133c |
---|---|
1 /* Hey Emacs, this is a -*- Makefile -*- */ | |
2 | |
3 /* Makefile for dynodump subdirectory in XEmacs | |
4 Copyright (C) 1995 Board of Trustees, University of Illinois | |
5 | |
6 This file is part of XEmacs. | |
7 | |
8 XEmacs is free software; you can redistribute it and/or modify it | |
9 under the terms of the GNU General Public License as published by the | |
10 Free Software Foundation; either version 2, or (at your option) any | |
11 later version. | |
12 | |
13 XEmacs is distributed in the hope that it will be useful, but WITHOUT | |
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
16 for more details. | |
17 | |
18 You should have received a copy of the GNU General Public License | |
19 along with XEmacs; see the file COPYING. If not, write to | |
20 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
21 Boston, MA 02111-1307, 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=@CC@ | |
39 CFLAGS=@CFLAGS@ | |
40 ARCH=@dynodump_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=@srcdir@ | |
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 @srcdir@ | |
68 vpath %.h @srcdir@ | |
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=@srcdir@ | |
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 PATH=/usr/ccs/bin:/bin:$$PATH ld -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 *~ \#* |