annotate dynodump/Makefile.in.in @ 10:49a24b4fd526 r19-15b6

Import from CVS: tag r19-15b6
author cvs
date Mon, 13 Aug 2007 08:47:52 +0200
parents 376386a54a3c
children bcdc7deadc19
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
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 along with XEmacs; see the file COPYING. If not, write to the Free
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 /* Avoid trouble on systems where the "SHELL" variable might be
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 inherited from the environment. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 SHELL = /bin/sh
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 /* 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
27 getting changed on them. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 #undef sparc
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 #undef sun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 #undef unix
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 #undef i386
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 #undef ppc
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 #undef sgi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 /* ==================== Things "configure" will edit ==================== */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 CC=@CC@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 CFLAGS=@CFLAGS@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 ARCH=@dynodump_arch@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 /* Where to find the source code. This is set by the configure
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 "--srcdir" option. However, the value of ${srcdir} in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 this makefile is not identical to what was specified with --srcdir,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 since the variable here has "/dynodump" added at the end. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 srcdir=@srcdir@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 /* ========================= start of cpp stuff ========================= */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 #define NO_SHORTNAMES
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 #define THIS_IS_YMAKEFILE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 #define NOT_C_CODE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 #include "../src/config.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 /* With the traditional VPATH setting, it is not possible to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 simultaneously compile in-place and in another directory. The
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 mistaken definition is that *all* dependencies are searched for in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57 the VPATH directory, rather than just the dependencies that are not
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 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
59 in-place location, it will not get recompiled in the not-in-place
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 location.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 The GNU Make "vpath" directive continues this tradition, but at
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63 least lets you to restrict the classes of files that it applies to.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 This allows us to kludge around the problem. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 #ifdef USE_GNU_MAKE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 vpath %.c @srcdir@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 vpath %.h @srcdir@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 /* now list files that should NOT be searched in the srcdir.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 This includes any .c or .h that is built from something else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 (e.g. a .in file). */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 /* none here */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 VPATH=@srcdir@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 #ifdef USE_GCC
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 # define PIC_ARG -fpic
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 # define PIC_ARG -K pic
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 INCLUDES = -I${srcdir} -I${srcdir}/$(ARCH)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83 ALL_CFLAGS = ${CFLAGS} PIC_ARG ${INCLUDES}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 OBJS = _relocate.o dynodump.o syms.o uninit.o
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 .c.o:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 $(CC) -c $(ALL_CFLAGS) $<
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89 /* If we do not need dynodump, then do nothing. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 #ifdef DYNODUMP
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91 all:: dynodump.so
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93 all::
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96 dynodump.so: ${srcdir}/_dynodump.h $(OBJS)
10
49a24b4fd526 Import from CVS: tag r19-15b6
cvs
parents: 0
diff changeset
97 PATH=/usr/ccs/bin:$PATH ld -o dynodump.so -G $(OBJS) -lelf -lmapmalloc
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99 _relocate.o: ${srcdir}/$(ARCH)/_relocate.c
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100 $(CC) -c $(ALL_CFLAGS) ${srcdir}/$(ARCH)/_relocate.c
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102 uninit.o: ${srcdir}/$(ARCH)/uninit.c
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103 $(CC) -c $(ALL_CFLAGS) ${srcdir}/$(ARCH)/uninit.c
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
105 mostlyclean:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
106 -rm -f *.o \#*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108 clean: mostlyclean
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109 -rm -f *.so *.so.1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
110
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
111 distclean: clean
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
112 -rm -f Makefile Makefile.in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
113
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
114 realclean: distclean
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
115 rm -f TAGS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
116
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
117 versionclean:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118 true
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120 extraclean: realclean
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121 -rm -f *~ \#*