From e53f70e1e1fc250c060d3432844fb222e32754b1 Mon Sep 17 00:00:00 2001 From: Manuel Novoa III Date: Thu, 28 Jun 2001 01:59:07 +0000 Subject: Added a script to create bits/syscall.h for each arch. NOTE!!! This is run by "make -C libc/sysdeps/linux/$(TARGET_ARCH) headers" in the main Makefile, but I only changed libc/sysdeps/linux/i386/Makefile as I had no way of testing it for the other archs. Various arch maintainers, please check and update the corresponding Makefile... or report bugs ;-)... appropriately. You'll also want to "cvs del" syscall.h and add it to a .cvsignore in $(ARCH)/bits. Also added a define to uClibc_config.h, __UCLIBC_USE_UNIFIED_SYSCALL__, and moved i386 unified syscall stuff out of common and into i386/bits/syscalls.h. --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index c081116f3..0e6f07731 100644 --- a/Makefile +++ b/Makefile @@ -149,6 +149,11 @@ uClibc_config.h: Makefile Config else \ echo "#undef __UCLIBC_HAS_RPC__" >> uClibc_config.h ; \ fi + @if [ "$(UNIFIED_SYSCALL)" = "true" ] ; then \ + echo "#define __UCLIBC_USE_UNIFIED_SYSCALL__ 1" >> uClibc_config.h ; \ + else \ + echo "#undef __UCLIBC_USE_UNIFIED_SYSCALL__" >> uClibc_config.h ; \ + fi subdirs: $(patsubst %, _dir_%, $(DIRS)) @@ -213,7 +218,6 @@ clean: - find include -type l -exec rm -f {} \; - find . \( -name \*.o -o -name \*.a -o -name \*.so -o -name core \) -exec rm -f {} \; $(MAKE) -C ldso clean - $(MAKE) -C libc/sysdeps/linux/common clean $(MAKE) -C libc/unistd clean .PHONY: dummy subdirs -- cgit v1.2.3