diff options
author | Manuel Novoa III <mjn3@codepoet.org> | 2001-06-28 01:59:07 +0000 |
---|---|---|
committer | Manuel Novoa III <mjn3@codepoet.org> | 2001-06-28 01:59:07 +0000 |
commit | e53f70e1e1fc250c060d3432844fb222e32754b1 (patch) | |
tree | 9e9dba365596e9ce3ebdea9245ccfa173236c76c /libc/sysdeps/linux/common/Makefile | |
parent | 2d95d9f12e8d4a711671411e9d9db6e6866cd4ac (diff) |
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.
Diffstat (limited to 'libc/sysdeps/linux/common/Makefile')
-rw-r--r-- | libc/sysdeps/linux/common/Makefile | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/libc/sysdeps/linux/common/Makefile b/libc/sysdeps/linux/common/Makefile index 1fea281c7..0b387587d 100644 --- a/libc/sysdeps/linux/common/Makefile +++ b/libc/sysdeps/linux/common/Makefile @@ -34,16 +34,7 @@ MOBJ=$(shell ./list_syscalls.sh) OBJ=$(COBJS) $(MOBJ) -UNIFIED_SYSCALL_HEADER = /dev/null -STR_SYSCALLS = -ifeq ($(UNIFIED_SYSCALL),true) - ifeq ($(TARGET_ARCH), i386) - UNIFIED_SYSCALL_HEADER = unified_syscall_i386.h - STR_SYSCALLS = str_syscalls - endif -endif - -all: $(STR_SYSCALLS) unified_syscall.h $(OBJ) $(LIBC) +all: $(STR_SYSCALLS) $(OBJ) $(LIBC) $(LIBC): ar-target @@ -58,14 +49,6 @@ $(COBJS): %.o : %.c $(CC) $(CFLAGS) -c $< -o $@ $(STRIPTOOL) -x -R .note -R .comment $*.o -str_syscalls: - /bin/sh ./str_syscalls.sh > str_syscalls.c - gcc str_syscalls.c -o str_syscalls - ./str_syscalls > str_syscalls.h - -unified_syscall.h: - cat $(UNIFIED_SYSCALL_HEADER) > unified_syscall.h - clean: - rm -f *.[oa] *~ core unified_syscall.h str_syscalls.[ch] str_syscalls + rm -f *.[oa] *~ core |