Browse Source

preparing build system to handle ports - step 1

Rich Felker 14 years ago
parent
commit
1355fdca7c

+ 6 - 0
Makefile

@@ -51,6 +51,12 @@ clean:
 	rm -f $(ALL_LIBS) lib/*
 	rm -f $(ALL_TOOLS)
 	rm -f $(GENH) 
+	rm -f include/bits
+
+include/bits:
+	ln -sf ../arch/$(ARCH)/bits $@
+
+include/bits/alltypes.h.sh: include/bits
 
 include/bits/alltypes.h: include/bits/alltypes.h.sh
 	sh $< > $@

+ 0 - 0
include/bits/alltypes.h.sh → arch/i386/bits/alltypes.h.sh


+ 0 - 0
include/bits/endian.h → arch/i386/bits/endian.h


+ 0 - 0
include/bits/errno.h → arch/i386/bits/errno.h


+ 0 - 0
include/bits/fcntl.h → arch/i386/bits/fcntl.h


+ 0 - 0
include/bits/fenv.h → arch/i386/bits/fenv.h


+ 0 - 0
include/bits/float.h → arch/i386/bits/float.h


+ 0 - 0
include/bits/in.h → arch/i386/bits/in.h


+ 0 - 0
include/bits/ioctl.h → arch/i386/bits/ioctl.h


+ 0 - 0
include/bits/ipc.h → arch/i386/bits/ipc.h


+ 0 - 0
include/bits/limits.h → arch/i386/bits/limits.h


+ 0 - 0
include/bits/mman.h → arch/i386/bits/mman.h


+ 0 - 0
include/bits/posix.h → arch/i386/bits/posix.h


+ 0 - 0
include/bits/pthread.h → arch/i386/bits/pthread.h


+ 0 - 0
include/bits/reg.h → arch/i386/bits/reg.h


+ 0 - 0
include/bits/setjmp.h → arch/i386/bits/setjmp.h


+ 0 - 0
include/bits/shm.h → arch/i386/bits/shm.h


+ 0 - 0
include/bits/signal.h → arch/i386/bits/signal.h


+ 0 - 0
include/bits/socket.h → arch/i386/bits/socket.h


+ 0 - 0
include/bits/stat.h → arch/i386/bits/stat.h


+ 0 - 0
include/bits/statfs.h → arch/i386/bits/statfs.h


+ 0 - 0
include/bits/stdint.h → arch/i386/bits/stdint.h


+ 0 - 0
include/bits/stdio.h → arch/i386/bits/stdio.h


+ 0 - 0
include/bits/sysmacros.h → arch/i386/bits/sysmacros.h


+ 0 - 0
include/bits/tcp.h → arch/i386/bits/tcp.h


+ 0 - 0
include/bits/termios.h → arch/i386/bits/termios.h


+ 0 - 0
include/bits/user.h → arch/i386/bits/user.h


+ 0 - 0
include/bits/wait.h → arch/i386/bits/wait.h


+ 0 - 0
include/bits/wexitstatus.h → arch/i386/bits/wexitstatus.h