aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-01-20 09:42:04 +0000
committerUlrich Drepper <drepper@redhat.com>1999-01-20 09:42:04 +0000
commit5d003fb2ea209009d1054cc924986f0ba46f1e8e (patch)
treed5ce0de17ee3a1a6cf11018a3fd440fa069897e5 /sysdeps/unix
parent0ed91d50eeb5abdccf46d40d42c3a35c6694bc49 (diff)
downloadglibc-5d003fb2ea209009d1054cc924986f0ba46f1e8e.tar
glibc-5d003fb2ea209009d1054cc924986f0ba46f1e8e.tar.gz
glibc-5d003fb2ea209009d1054cc924986f0ba46f1e8e.tar.bz2
glibc-5d003fb2ea209009d1054cc924986f0ba46f1e8e.zip
Update.
1999-01-18 Andreas Schwab <schwab@issan.cs.uni-dortmund.de> * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.d): Fix generation of dependency list to make it work with newer versions of gcc. 1999-01-18 Andreas Schwab <schwab@issan.cs.uni-dortmund.de> * Makerules (build-module): New macro, moved from... * elf/Makefile (build-module): ... here. * iconvdata/Makefile (build-module): ... and here.
Diffstat (limited to 'sysdeps/unix')
-rw-r--r--sysdeps/unix/sysv/linux/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/sysdeps/unix/sysv/linux/Makefile b/sysdeps/unix/sysv/linux/Makefile
index d6d3525c58..5357f8373c 100644
--- a/sysdeps/unix/sysv/linux/Makefile
+++ b/sysdeps/unix/sysv/linux/Makefile
@@ -23,7 +23,7 @@ install-others += $(inst_includedir)/bits/syscall.h
# Generate the list of SYS_* macros for the system calls (__NR_* macros).
$(objpfx)syscall-%.h $(objpfx)syscall-%.d: ../sysdeps/unix/sysv/linux/sys/syscall.h
- rm -f $(@:.h=.d)
+ rm -f $(@:.h=.d)-t
{ \
echo '/* Generated at libc build time from kernel syscall list. */';\
echo ''; \
@@ -31,12 +31,16 @@ $(objpfx)syscall-%.h $(objpfx)syscall-%.d: ../sysdeps/unix/sysv/linux/sys/syscal
echo '# error "Never use <bits/syscall.h> directly; include <sys/syscall.h> instead."'; \
echo '#endif'; \
echo ''; \
- SUNPRO_DEPENDENCIES='$(@:.h=.d) $(patsubst $(objpfx)%,$$(objpfx)%,\
- $(@:.d=.h) $(@:.h=.d))' \
+ SUNPRO_DEPENDENCIES='$(@:.h=.d)-t $@' \
$(CC) -E -x c $(sysincludes) $< -D_LIBC -dM | \
sed -n 's@^#define __NR_\([^ ]*\) .*$$@#define SYS_\1 __NR_\1@p'; \
} > $(@:.d=.h).new
mv -f $(@:.d=.h).new $(@:.d=.h)
+ sed < $(@:.h=.d)-t > $(@:.h=.d)-t2 \
+ -e 's,$(subst .,\.,$@),$(patsubst $(objpfx)%,$$(objpfx)%,\
+ $(@:.d=.h) $(@:.h=.d)),'
+ rm -f $(@:.h=.d)-t
+ mv -f $(@:.h=.d)-t2 $(@:.h=.d)
$(inst_includedir)/bits/syscall.h: $(objpfx)syscall-list.h $(+force)
$(make-target-directory)