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.
This commit is contained in:
Ulrich Drepper 1998-07-14 15:37:33 +00:00
parent 5c3a278023
commit 19cc96bfe5
3 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,10 @@
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.
1998-07-14 Ulrich Drepper <drepper@cygnus.com> 1998-07-14 Ulrich Drepper <drepper@cygnus.com>
* wcsmbs/wcslen.c (__wcslen): Fix comment. * wcsmbs/wcslen.c (__wcslen): Fix comment.

View File

@ -83,7 +83,7 @@ endif
# intermediate in order to make %.ir and then removed before re-exec, when # intermediate in order to make %.ir and then removed before re-exec, when
# %.uh is built all over again to build %.h. # %.uh is built all over again to build %.h.
$(objpfx)%.ir: $(objpfx)%.uh $(objpfx)%.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 }" $< ;\ { printf \"$*-calls += %s\\n\", \$$3 }" $< ;\
echo '$$($*-calls:%=$$(objpfx)R\%C_%.c): $$(objpfx)$*.ustamp ;';\ echo '$$($*-calls:%=$$(objpfx)R\%C_%.c): $$(objpfx)$*.ustamp ;';\
) > $@-new ) > $@-new
@ -136,6 +136,7 @@ vpath %_server.c $(addprefix $(objpfx),$(sort $(dir $(server-interfaces))))
# Build the server stubs in $(objdir). # Build the server stubs in $(objdir).
$(objpfx)%_server.c $(objpfx)%_server.h: $(objpfx)%_server.c $(objpfx)%_server.h:
$(make-target-directory)
$(include-%.defs) | \ $(include-%.defs) | \
$(MIG) - /dev/null -prefix _S_ \ $(MIG) - /dev/null -prefix _S_ \
$(MIGFLAGS) $(server-MIGFLAGS) $(MIGFLAGS-$*) \ $(MIGFLAGS) $(server-MIGFLAGS) $(MIGFLAGS-$*) \

View File

@ -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. # This file is part of the GNU C Library.
# The GNU C Library is free software; you can redistribute it and/or # The GNU C Library is free software; you can redistribute it and/or
@ -70,6 +70,7 @@ endif
endif endif
$(objpfx)mach-syscalls.mk: syscalls.awk Makefile $(objpfx)mach-syscalls.mk: syscalls.awk Makefile
# Go kludges!!! # Go kludges!!!
$(make-target-directory)
echo '#include <mach/syscall_sw.h>' | \ echo '#include <mach/syscall_sw.h>' | \
DEPENDENCIES_OUTPUT='$@-dep $@' \ DEPENDENCIES_OUTPUT='$@-dep $@' \
$(CC) $(CPPFLAGS) -E -x c-header - \ $(CC) $(CPPFLAGS) -E -x c-header - \