This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Glibc/Hurd: Makefile fix


Hi,

I have a makefile problem when compiling for the Hurd.  The problem is
that make throws away some implicit rules because at the moment that
the makefile is read, the directories mentioned in those rules do not
yet exist.  The following hack solves this problem, but maybe someone
else knows a better solution.

Mark


1998-08-06  Mark Kettenis  <kettenis@phys.uva.nl>

	* mach/Machrules: Create target directory and force re-evaluation
	of Makefile to prevent `make' from optimizing away most of the
	implicit rules and `vpath' directives.


Index: mach/Machrules
--- 0.1/mach/Machrules Thu, 06 Aug 1998 21:58:02 +0200 kettenis (libc/0_Machrules 1.1 666)
+++ Local.1/mach/Machrules Thu, 06 Aug 1998 22:07:40 +0200 kettenis (libc/0_Machrules 1.2 666)
@@ -44,6 +44,15 @@
 
 include ../Makeconfig
 
+# This makefile contains a lot of implicit rules that get optimized
+# away if the target directory does not exist.
+ifndef no_deps
+-include $(objpfx)dummy.mk
+endif
+$(objpfx)dummy.mk:
+	$(make-target-directory)
+	echo '# Empty' > $@
+
 MIGFLAGS = -DMACH_IPC_COMPAT=0 -DSTANDALONE -DTypeCheck=0 \
 	   $(+includes) $(migdefines) -subrprefix __
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]