153
|
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 srcdir=@srcdir@
|
|
43
|
|
44 /* ========================= start of cpp stuff ========================= */
|
|
45
|
|
46 #define NO_SHORTNAMES
|
|
47 #define NOT_C_CODE
|
|
48 #include "../src/config.h"
|
|
49
|
|
50 #ifdef USE_GNU_MAKE
|
|
51 vpath %.c @srcdir@
|
|
52 vpath %.h @srcdir@
|
|
53 #else
|
|
54 VPATH=@srcdir@
|
|
55 #endif
|
|
56
|
|
57 #ifdef USE_GCC
|
157
|
58 pic_arg = -fpic
|
153
|
59 #else
|
157
|
60 pic_arg = -K pic
|
153
|
61 #endif
|
|
62
|
|
63 INCLUDES = -I${srcdir} -I${srcdir}/$(ARCH)
|
157
|
64 ALL_CFLAGS = ${CFLAGS} ${pic_arg} ${INCLUDES}
|
153
|
65 OBJS = _relocate.o dynodump.o syms.o uninit.o
|
|
66
|
|
67 .c.o:
|
|
68 $(CC) -c $(ALL_CFLAGS) $<
|
|
69
|
|
70 all:: dynodump.so
|
|
71
|
|
72 dynodump.so: ${srcdir}/_dynodump.h $(OBJS)
|
|
73 PATH=/usr/ccs/bin:/bin:$$PATH ld -o dynodump.so -G $(OBJS) -lelf -lmapmalloc
|
|
74
|
|
75 _relocate.o: ${srcdir}/$(ARCH)/_relocate.c
|
|
76 $(CC) -c $(ALL_CFLAGS) ${srcdir}/$(ARCH)/_relocate.c
|
|
77
|
|
78 uninit.o: ${srcdir}/$(ARCH)/uninit.c
|
|
79 $(CC) -c $(ALL_CFLAGS) ${srcdir}/$(ARCH)/uninit.c
|
|
80
|
|
81 mostlyclean:
|
|
82 -rm -f *.o \#*
|
|
83
|
|
84 clean: mostlyclean
|
|
85 -rm -f *.so *.so.1
|
|
86
|
|
87 distclean: clean
|
|
88 -rm -f Makefile Makefile.in
|
|
89
|
|
90 realclean: distclean
|
|
91 rm -f TAGS
|
|
92
|
|
93 versionclean:
|
|
94 true
|
|
95
|
|
96 extraclean: realclean
|
|
97 -rm -f *~ \#*
|