diff dynodump/Makefile.in.in @ 0:376386a54a3c r19-14

Import from CVS: tag r19-14
author cvs
date Mon, 13 Aug 2007 08:45:50 +0200
parents
children 49a24b4fd526
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dynodump/Makefile.in.in	Mon Aug 13 08:45:50 2007 +0200
@@ -0,0 +1,121 @@
+/* Hey Emacs, this is a -*- Makefile -*- */
+
+/* Makefile for dynodump subdirectory in XEmacs
+   Copyright (C) 1995 Board of Trustees, University of Illinois
+
+This file is part of XEmacs.
+
+XEmacs is free software; you can redistribute it and/or modify it
+under the terms of the GNU General Public License as published by the
+Free Software Foundation; either version 2, or (at your option) any
+later version.
+
+XEmacs is distributed in the hope that it will be useful, but WITHOUT
+ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+for more details.
+
+You should have received a copy of the GNU General Public License
+along with XEmacs; see the file COPYING.  If not, write to the Free
+Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
+
+/* Avoid trouble on systems where the "SHELL" variable might be
+   inherited from the environment. */
+SHELL = /bin/sh
+
+/* Some people use these in paths they define.  We do not want their paths
+   getting changed on them. */
+#undef sparc
+#undef sun
+#undef unix
+#undef i386
+#undef ppc
+#undef sgi
+
+/* ==================== Things "configure" will edit ==================== */
+
+CC=@CC@
+CFLAGS=@CFLAGS@
+ARCH=@dynodump_arch@
+
+/* Where to find the source code.  This is set by the configure
+   "--srcdir" option.  However, the value of ${srcdir} in
+   this makefile is not identical to what was specified with --srcdir,
+   since the variable here has "/dynodump" added at the end. */
+srcdir=@srcdir@
+
+/* ========================= start of cpp stuff ========================= */
+
+#define NO_SHORTNAMES
+#define THIS_IS_YMAKEFILE
+#define NOT_C_CODE
+#include "../src/config.h"
+
+/* With the traditional VPATH setting, it is not possible to
+   simultaneously compile in-place and in another directory.  The
+   mistaken definition is that *all* dependencies are searched for in
+   the VPATH directory, rather than just the dependencies that are not
+   themselves targets.  Thus, if there is an up-to-date .o file in the
+   in-place location, it will not get recompiled in the not-in-place
+   location.
+
+   The GNU Make "vpath" directive continues this tradition, but at
+   least lets you to restrict the classes of files that it applies to.
+   This allows us to kludge around the problem. */
+#ifdef USE_GNU_MAKE
+vpath %.c @srcdir@
+vpath %.h @srcdir@
+/* now list files that should NOT be searched in the srcdir.
+   This includes any .c or .h that is built from something else
+   (e.g. a .in file). */
+/* none here */
+#else
+VPATH=@srcdir@
+#endif
+
+#ifdef USE_GCC
+# define PIC_ARG -fpic
+#else
+# define PIC_ARG -K pic
+#endif
+
+INCLUDES = -I${srcdir} -I${srcdir}/$(ARCH)
+ALL_CFLAGS = ${CFLAGS} PIC_ARG ${INCLUDES}
+OBJS = _relocate.o dynodump.o syms.o uninit.o
+
+.c.o:
+	$(CC) -c $(ALL_CFLAGS) $<
+
+/* If we do not need dynodump, then do nothing. */
+#ifdef DYNODUMP
+all:: dynodump.so
+#else
+all::
+#endif
+
+dynodump.so: ${srcdir}/_dynodump.h $(OBJS)
+	$(CC) -o dynodump.so -G $(OBJS) -lelf -lmapmalloc
+
+_relocate.o: ${srcdir}/$(ARCH)/_relocate.c
+	$(CC) -c $(ALL_CFLAGS) ${srcdir}/$(ARCH)/_relocate.c
+
+uninit.o: ${srcdir}/$(ARCH)/uninit.c
+	$(CC) -c $(ALL_CFLAGS) ${srcdir}/$(ARCH)/uninit.c
+
+mostlyclean:
+	-rm -f *.o \#*
+
+clean: mostlyclean
+	-rm -f *.so *.so.1
+
+distclean: clean
+	-rm -f Makefile Makefile.in
+
+realclean: distclean
+	rm -f TAGS
+
+versionclean:
+	true
+
+extraclean: realclean
+	-rm -f *~ \#*