428
|
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.
|
3062
|
4 ## Copyright (C) 2005 Ben Wing.
|
428
|
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 ## Synched up with: Not synched with FSF.
|
|
24
|
|
25 ## For performance and consistency, no built-in rules.
|
|
26 .SUFFIXES:
|
|
27 .SUFFIXES: .c .o .i .h
|
|
28
|
|
29 @SET_MAKE@
|
|
30 SHELL = /bin/sh
|
|
31 RM = rm -f
|
|
32
|
|
33 ## ==================== Things "configure" will edit ====================
|
|
34
|
|
35 CC=@CC@
|
|
36 CFLAGS=@CFLAGS@
|
|
37 ARCH=@dynodump_arch@
|
|
38
|
|
39 srcdir=@srcdir@
|
|
40
|
|
41 ## ========================= start of cpp stuff =========================
|
|
42
|
|
43 #define NO_SHORTNAMES
|
|
44 #define NOT_C_CODE
|
|
45 #include "../src/config.h"
|
|
46
|
|
47 #ifdef USE_GNU_MAKE
|
|
48 vpath %.c @srcdir@
|
|
49 vpath %.h @srcdir@
|
|
50 #else
|
|
51 VPATH=@srcdir@
|
|
52 #endif
|
|
53
|
|
54 #ifdef USE_GCC
|
|
55 pic_arg = -fpic
|
|
56 #else
|
|
57 pic_arg = -K pic
|
|
58 #endif
|
|
59
|
|
60 INCLUDES = -I${srcdir} -I${srcdir}/$(ARCH)
|
|
61 ALL_CFLAGS = ${CFLAGS} ${pic_arg} ${INCLUDES}
|
|
62 OBJS = _relocate.o dynodump.o syms.o uninit.o
|
|
63
|
|
64 %.o : %.c
|
|
65 $(CC) -c $(ALL_CFLAGS) $<
|
|
66
|
|
67 all:: dynodump.so
|
|
68
|
|
69 dynodump.so: ${srcdir}/_dynodump.h $(OBJS)
|
|
70 PATH=/usr/ccs/bin:/bin:$$PATH ld -o dynodump.so -G $(OBJS) -lelf -lmapmalloc
|
|
71
|
|
72 _relocate.o: ${srcdir}/$(ARCH)/_relocate.c
|
|
73 $(CC) -c $(ALL_CFLAGS) ${srcdir}/$(ARCH)/_relocate.c
|
|
74
|
|
75 uninit.o: ${srcdir}/$(ARCH)/uninit.c
|
|
76 $(CC) -c $(ALL_CFLAGS) ${srcdir}/$(ARCH)/uninit.c
|
|
77
|
|
78 .PHONY: mostlyclean clean distclean realclean extraclean
|
3062
|
79 .PHONY: distclean-noconfig realclean-noconfig extraclean-noconfig
|
428
|
80 mostlyclean:
|
3083
|
81 -$(RM) *.o *.i core
|
428
|
82 clean: mostlyclean
|
3083
|
83 -$(RM) *.so *.so.1
|
3062
|
84 distclean-noconfig: clean
|
3083
|
85 -$(RM) TAGS
|
3062
|
86 ## This is used in making a distribution.
|
|
87 ## Do not use it on development directories!
|
|
88 distclean: distclean-noconfig
|
3083
|
89 -$(RM) GNUmakefile Makefile Makefile.in
|
3062
|
90 realclean-noconfig: distclean-noconfig
|
428
|
91 realclean: distclean
|
3062
|
92 extraclean-noconfig: realclean-noconfig
|
3083
|
93 -$(RM) *~ \#*
|
428
|
94 extraclean: realclean
|
3083
|
95 -$(RM) *~ \#*
|