diff options
author | Roland McGrath <roland@gnu.org> | 2003-02-15 22:59:19 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2003-02-15 22:59:19 +0000 |
commit | c06b8d60f4dcd911dbae2e4b36ed7af30e9b645e (patch) | |
tree | 9a323f2cc775d49d12b08ce750eb4345b5c7e33e /sysdeps/mach/Makefile | |
parent | 3a8e69f22b6de7721a632616b7738468bb14245c (diff) | |
download | glibc-c06b8d60f4dcd911dbae2e4b36ed7af30e9b645e.tar.gz glibc-c06b8d60f4dcd911dbae2e4b36ed7af30e9b645e.tar.xz glibc-c06b8d60f4dcd911dbae2e4b36ed7af30e9b645e.zip |
2003-02-15 Roland McGrath <roland@frob.com>
* sysdeps/mach/Makefile (mach-before-compile rule): Pass generating=t, use target mach-before-compile instead of generated. (mach-before-compile): New target. * Makerules: Disable use of tls.make if $(generating) is set. * mach/Makefile: Include mach-syscalls.mk even if no_deps=t. * sysdeps/mach/hurd/Makefile: Make generated hurd headers depend on mach-shortcuts.h so mach/ generation happens before hurd/.
Diffstat (limited to 'sysdeps/mach/Makefile')
-rw-r--r-- | sysdeps/mach/Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sysdeps/mach/Makefile b/sysdeps/mach/Makefile index 4d4e4c01e2..af2c273e45 100644 --- a/sysdeps/mach/Makefile +++ b/sysdeps/mach/Makefile @@ -1,4 +1,4 @@ -# Copyright (C) 1993,94,96,97,2002 Free Software Foundation, Inc. +# Copyright (C) 1993,1994,1996,1997,2002,2003 Free Software Foundation, Inc. # This file is part of the GNU C Library. # The GNU C Library is free software; you can redistribute it and/or @@ -27,6 +27,9 @@ ifneq (mach,$(subdir)) # So make sure we get a chance to run in mach/ to make them before all else. mach-objpfx = $(common-objpfx)mach/ +else +mach-objpfx = $(objpfx) +endif # These are all the generated files that <mach.h> includes. # Actually, it's only some of them. We omit mach_interface.h @@ -37,10 +40,11 @@ mach-before-compile := $(mach-objpfx)mach-shortcuts.h \ $(patsubst %,$(mach-objpfx)mach/mach_%.h,\ port host) +ifneq (mach,$(subdir)) # This patsubst generates patterns like `m%h-shortcuts.h', which are damn # likely to match just the corresponding particular file we want. $(patsubst mach%,m\%h%,$(mach-before-compile)): # Run only if doesn't exist. - $(MAKE) -C $(..)mach generated no_deps=t + $(MAKE) -C $(..)mach mach-before-compile no_deps=t generating=t before-compile += $(mach-before-compile) endif |