From xemacs-m  Tue Jul  1 10:19:00 1997
Received: from alk.physik.uni-erlangen.de (theorie3.physik.uni-erlangen.de [131.188.166.210])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id KAA07480
	for <xemacs-beta@xemacs.org>; Tue, 1 Jul 1997 10:19:00 -0500 (CDT)
Received: from cognac.physik.uni-erlangen.de (aoppelt@cognac.physik.uni-erlangen.de [131.188.166.201])
          by alk.physik.uni-erlangen.de (8.8.5/8.8.4) with ESMTP
	  id RAA03407 for <xemacs-beta@xemacs.org>; Tue, 1 Jul 1997 17:18:31 +0200
Received: (from aoppelt@localhost)
	by cognac.physik.uni-erlangen.de (8.8.5/8.8.5) id RAA07657;
	Tue, 1 Jul 1997 17:18:30 +0200
To: XEmacs Developers <xemacs-beta@xemacs.org>
Subject: Patches for compilation in different directory
Mime-Version: 1.0 (generated by tm-edit 7.108)
Content-Type: text/plain; charset=US-ASCII
From: Achim Oppelt <aoppelt@theorie3.physik.uni-erlangen.de>
Date: 01 Jul 1997 17:18:30 +0200
Message-ID: <ubg1tyg5rt.fsf@cognac.physik.uni-erlangen.de>
Lines: 62
X-Mailer: Gnus v5.4.60/XEmacs 20.3(beta10) - "Athens"

I usually compile XEmacs in a different directory (xemacs-20.3-b10/linux)
so I can use the same source tree to build for HP at the same time. With
Athens, I had some problems compiling xoobr (it would build in the source
tree and then not find xoobr during make install). Also, make gzip-el never 
worked. Here are some fixes:

--- Makefile.in.orig	Mon Jun 30 01:11:46 1997
+++ Makefile.in	Tue Jul  1 11:04:31 1997
@@ -422,7 +422,7 @@
 	@echo "${lispdir}"
 
 gzip-el:
-	lib-src/gzip-el.sh ${lispdir}
+	${srcdir}/lib-src/gzip-el.sh ${lispdir}
 
 MAKEPATH=./lib-src/make-path
 ## Build all the directories we're going to install XEmacs in.	Since
--- pkg-src/tree-x/Makefile.in.in.orig	Tue Jul  1 09:56:18 1997
+++ pkg-src/tree-x/Makefile.in.in	Tue Jul  1 10:42:29 1997
@@ -31,7 +31,8 @@
 ld_switch_all=@ld_switch_all@
 ld_libs_all=@ld_libs_all@
 
-build_top=../..
+srcdir=@srcdir@
+build_top=@srcdir@/../..
 
 #ifdef USE_GNU_MAKE
 vpath %.c @srcdir@
@@ -52,7 +53,7 @@
 xoobr: $(objs)
 	$(CC) $(objs) $(ldflags) -o $@
 
-cflags  = $(CFLAGS) -DHAVE_CONFIG_H -I${build_top}/src $(CPPFLAGS) $(c_switch_all)
+cflags  = $(CFLAGS) -DHAVE_CONFIG_H -I${build_top}/src -I../../src $(CPPFLAGS) $(c_switch_all)
 ldflags = $(LDFLAGS) $(ld_switch_all) -lXaw $(ld_libs_all)
 
 .c.o :
@@ -71,9 +72,9 @@
 	wc *.c *.h
 
 ## Dependencies
-dbl.o: 		dbl.h 
-dissolve.o:	dissolve.h
-draw.o: 	defs.h tree.h dbl.h intf.h
-input.o: 	defs.h tree.h input.h
-intf.o: 	defs.h tree.h dbl.h intf.h rsrc.h input.h help.h
-tree.o: 	defs.h tree.h intf.h
+dbl.o: 		${srcdir}/dbl.h 
+dissolve.o:	${srcdir}/dissolve.h
+draw.o: 	${srcdir}/defs.h ${srcdir}/tree.h ${srcdir}/dbl.h ${srcdir}/intf.h
+input.o: 	${srcdir}/defs.h ${srcdir}/tree.h ${srcdir}/input.h
+intf.o: 	${srcdir}/defs.h ${srcdir}/tree.h ${srcdir}/dbl.h ${srcdir}/intf.h ${srcdir}/rsrc.h ${srcdir}/input.h ${srcdir}/help.h
+tree.o: 	${srcdir}/defs.h ${srcdir}/tree.h ${srcdir}/intf.h


Achim

-- 
Achim Oppelt, Schwedenstr. 25, D-91080 Spardorf, Germany
aoppelt@theorie3.physik.uni-erlangen.de
Tel: +49 9131 85-8816	Tel (private): +49 9131 503693	Fax: +49 9131 503690

