aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/Makefile
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1996-01-18 10:00:52 +0000
committerRoland McGrath <roland@gnu.org>1996-01-18 10:00:52 +0000
commitaeb72b162283156ff33f5d4d86533fadb758126b (patch)
tree19cf5dd72ebb72beda243e565af9f5117750a1a9 /sysdeps/unix/Makefile
parent285a3eee46e60a9dde6275bc1714546150492da4 (diff)
downloadglibc-aeb72b162283156ff33f5d4d86533fadb758126b.zip
glibc-aeb72b162283156ff33f5d4d86533fadb758126b.tar.gz
glibc-aeb72b162283156ff33f5d4d86533fadb758126b.tar.bz2
Thu Jan 18 00:32:43 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>cvs/libc-960118
* Makerules (COMPILE.s): New variable. * sysdeps/unix/Makefile (sysd-syscalls): New target; generate with make-syscalls.sh and include it. [$(subdir)=misc] (sysdep_routines): Append extra syscalls from sysd-syscalls. * sysdeps/unix/make-syscalls.sh: New file. * Makerules (COMPILE.S): New variable.
Diffstat (limited to 'sysdeps/unix/Makefile')
-rw-r--r--sysdeps/unix/Makefile33
1 files changed, 30 insertions, 3 deletions
diff --git a/sysdeps/unix/Makefile b/sysdeps/unix/Makefile
index 9ffb344..a09ea4f 100644
--- a/sysdeps/unix/Makefile
+++ b/sysdeps/unix/Makefile
@@ -1,4 +1,4 @@
-# Copyright (C) 1991, 1992, 1993, 1994, 1995 Free Software Foundation, Inc.
+# Copyright (C) 1991, 92, 93, 94, 95, 96 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
@@ -85,7 +85,7 @@ ifndef no_deps
include $(common-objpfx)param.h.dep
endif
-# Don't preempt our own headers.
+# Don't preempt our own headers.
sys/param.h-includes := \
$(filter-out $(patsubst $(..)%,%,\
$(wildcard $(addprefix $(..),\
@@ -130,7 +130,7 @@ ifeq (,$(filter-out $(sysdep_dir)/stub/ $(common-objpfx),\
# These need to exist before any compiling is done,
# so cpp doesn't instead find the stub versions.
-before-compile := $(before-compile) $(common-objpfx)errnos.h
+before-compile := $(before-compile) $(common-objpfx)errnos.h
$(common-objpfx)errnos.h: $(common-objpfx)make-errnos
$(dir $<)$(notdir $<) > $@-tmp
@@ -266,3 +266,30 @@ common-generated := $(common-generated) syscall.h
endif
endif
+
+ifndef inhibit-unix-syscalls
+
+# Sysdep dirs unix/... can contain a file syscalls.list,
+# which specifies objects to be compiled as simple Unix system calls.
+
+-include $(objpfx)sysd-syscalls
+omit-deps += $(unix-syscalls)
+
+ifeq (misc,$(subdir))
+sysdep_routines += $(unix-extra-syscalls)
+endif
+
+export sysdirs
+export asm_CPP := $(COMPILE.S) -E -x assembler-with-cpp
+
+$(objpfx)sysd-syscalls: $(..)sysdeps/unix/make-syscalls.sh \
+ $(wildcard $(+sysdep_dirs:%=%/syscalls.list))
+ for dir in $$sysdirs; do \
+ test -f $(..)sysdeps/$$dir/syscalls.list && \
+ { $(SHELL) $(dir $<)$(notdir $<) \
+ $(..)sysdeps $$dir $(object-suffixes) || exit 1; }; \
+ test $$dir = unix && break; \
+ done > $@T
+ mv -f $@T $@
+
+endif