summaryrefslogtreecommitdiff
path: root/mach
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-07-14 15:37:33 +0000
committerUlrich Drepper <drepper@redhat.com>1998-07-14 15:37:33 +0000
commit19cc96bfe5d37c40995d6d60d902258852c38909 (patch)
tree509b3ea51b0e102491979935841d71a9e244204b /mach
parent5c3a278023b11728d7258ebcb6658c33b39b492c (diff)
downloadglibc-19cc96bfe5d37c40995d6d60d902258852c38909.tar.gz
Update.
1998-07-14 Mark Kettenis <kettenis@phys.uva.nl> * mach/Makefile: Create target directory before generating mach-syscalls.mk. * mach/Machrules: Invoke awk using AWK variable. Create target directory before generating server stubs.
Diffstat (limited to 'mach')
-rw-r--r--mach/Machrules3
-rw-r--r--mach/Makefile3
2 files changed, 4 insertions, 2 deletions
diff --git a/mach/Machrules b/mach/Machrules
index 89ac567b39..b5a6622691 100644
--- a/mach/Machrules
+++ b/mach/Machrules
@@ -83,7 +83,7 @@ endif
# intermediate in order to make %.ir and then removed before re-exec, when
# %.uh is built all over again to build %.h.
$(objpfx)%.ir: $(objpfx)%.uh $(objpfx)%.h
- (awk "NF == 4 && (\$$2 == \"Routine\" || \$$2 == \"SimpleRoutine\")\
+ ($(AWK) "NF == 4 && (\$$2 == \"Routine\" || \$$2 == \"SimpleRoutine\")\
{ printf \"$*-calls += %s\\n\", \$$3 }" $< ;\
echo '$$($*-calls:%=$$(objpfx)R\%C_%.c): $$(objpfx)$*.ustamp ;';\
) > $@-new
@@ -136,6 +136,7 @@ vpath %_server.c $(addprefix $(objpfx),$(sort $(dir $(server-interfaces))))
# Build the server stubs in $(objdir).
$(objpfx)%_server.c $(objpfx)%_server.h:
+ $(make-target-directory)
$(include-%.defs) | \
$(MIG) - /dev/null -prefix _S_ \
$(MIGFLAGS) $(server-MIGFLAGS) $(MIGFLAGS-$*) \
diff --git a/mach/Makefile b/mach/Makefile
index 20812662df..2901fa2aa8 100644
--- a/mach/Makefile
+++ b/mach/Makefile
@@ -1,4 +1,4 @@
-# Copyright (C) 1991, 92, 93, 94, 95, 96, 97 Free Software Foundation, Inc.
+# Copyright (C) 1991, 92, 93, 94, 95, 96, 97, 98 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
@@ -70,6 +70,7 @@ endif
endif
$(objpfx)mach-syscalls.mk: syscalls.awk Makefile
# Go kludges!!!
+ $(make-target-directory)
echo '#include <mach/syscall_sw.h>' | \
DEPENDENCIES_OUTPUT='$@-dep $@' \
$(CC) $(CPPFLAGS) -E -x c-header - \