summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-03-01 22:28:19 +0000
committerEric Andersen <andersen@codepoet.org>2002-03-01 22:28:19 +0000
commit54a833f900559bc0a274179c19bfaeabc81b314b (patch)
tree7716f2271229731eafb7168bbdc3171cc69c9bf9 /Makefile
parentef9074c17eab44ad0970ac949e7d5672f5b7ef76 (diff)
Move syscall.h generation to the top level Makefile
-Erik
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index e20a6825a..c622d7aa3 100644
--- a/Makefile
+++ b/Makefile
@@ -63,7 +63,7 @@ finished: shared
@echo Finally finished compiling...
@echo
-headers1: dummy
+headers: dummy
@- find include -type l -exec rm -f {} \;
@if [ $(TARGET_ARCH) = "powerpc" ];then \
ln -fs $(KERNEL_SOURCE)/include/asm-ppc include/asm; \
@@ -125,8 +125,10 @@ headers1: dummy
ln -fs $$i .; \
done; \
fi
-
-headers: headers1
+ @cd $(TOPDIR); \
+ set -x -e; \
+ rm -f include/bits/syscall.h; \
+ TOPDIR=$(TOPDIR) CC=$(CC) /bin/sh $(TOPDIR)/extra/scripts/gen_bits_syscall_h.sh > include/bits/syscall.h
$(MAKE) -C libc/sysdeps/linux/$(TARGET_ARCH) headers
uClibc_config: Makefile Config