163
|
1 ## Makefile for dynodump subdirectory in XEmacs
|
|
2 ## Copyright (C) 1995 Board of Trustees, University of Illinois
|
|
3 ## Copyright (C) 1996, 1997 Sun Microsystems, Inc.
|
153
|
4
|
163
|
5 ## This file is part of XEmacs.
|
153
|
6
|
163
|
7 ## XEmacs is free software; you can redistribute it and/or modify it
|
|
8 ## under the terms of the GNU General Public License as published by the
|
|
9 ## Free Software Foundation; either version 2, or (at your option) any
|
|
10 ## later version.
|
153
|
11
|
163
|
12 ## XEmacs is distributed in the hope that it will be useful, but WITHOUT
|
|
13 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
14 ## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
15 ## for more details.
|
153
|
16
|
163
|
17 ## You should have received a copy of the GNU General Public License
|
|
18 ## along with XEmacs; see the file COPYING. If not, write to
|
|
19 ## the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
20 ## Boston, MA 02111-1307, USA.
|
153
|
21
|
163
|
22 ## Synched up with: Not synched with FSF.
|
|
23
|
153
|
24 SHELL = /bin/sh
|
|
25
|
163
|
26 ## ==================== Things "configure" will edit ====================
|
153
|
27
|
|
28 CC=@CC@
|
|
29 CFLAGS=@CFLAGS@
|
|
30 ARCH=@dynodump_arch@
|
|
31
|
|
32 srcdir=@srcdir@
|
|
33
|
163
|
34 ## ========================= start of cpp stuff =========================
|
153
|
35
|
|
36 #define NO_SHORTNAMES
|
|
37 #define NOT_C_CODE
|
|
38 #include "../src/config.h"
|
|
39
|
|
40 #ifdef USE_GNU_MAKE
|
|
41 vpath %.c @srcdir@
|
|
42 vpath %.h @srcdir@
|
|
43 #else
|
|
44 VPATH=@srcdir@
|
|
45 #endif
|
|
46
|
|
47 #ifdef USE_GCC
|
157
|
48 pic_arg = -fpic
|
153
|
49 #else
|
157
|
50 pic_arg = -K pic
|
153
|
51 #endif
|
|
52
|
|
53 INCLUDES = -I${srcdir} -I${srcdir}/$(ARCH)
|
157
|
54 ALL_CFLAGS = ${CFLAGS} ${pic_arg} ${INCLUDES}
|
153
|
55 OBJS = _relocate.o dynodump.o syms.o uninit.o
|
|
56
|
|
57 .c.o:
|
|
58 $(CC) -c $(ALL_CFLAGS) $<
|
|
59
|
|
60 all:: dynodump.so
|
|
61
|
|
62 dynodump.so: ${srcdir}/_dynodump.h $(OBJS)
|
|
63 PATH=/usr/ccs/bin:/bin:$$PATH ld -o dynodump.so -G $(OBJS) -lelf -lmapmalloc
|
|
64
|
|
65 _relocate.o: ${srcdir}/$(ARCH)/_relocate.c
|
|
66 $(CC) -c $(ALL_CFLAGS) ${srcdir}/$(ARCH)/_relocate.c
|
|
67
|
|
68 uninit.o: ${srcdir}/$(ARCH)/uninit.c
|
|
69 $(CC) -c $(ALL_CFLAGS) ${srcdir}/$(ARCH)/uninit.c
|
|
70
|
|
71 mostlyclean:
|
|
72 -rm -f *.o \#*
|
|
73
|
|
74 clean: mostlyclean
|
|
75 -rm -f *.so *.so.1
|
|
76
|
|
77 distclean: clean
|
|
78 -rm -f Makefile Makefile.in
|
|
79
|
|
80 realclean: distclean
|
|
81 rm -f TAGS
|
|
82
|
|
83 versionclean:
|
|
84 true
|
|
85
|
|
86 extraclean: realclean
|
|
87 -rm -f *~ \#*
|