summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-11-20 14:40:50 +0000
committerEric Andersen <andersen@codepoet.org>2003-11-20 14:40:50 +0000
commit8f82a3f7a00b7929d9065d4fd9d28bd08dfc80a3 (patch)
tree77272dad1b303a19d2437cd77354eee3379f6e8b /libc
parent89fb46fc1ada9389a3fb2f808b7c85f44536e5e6 (diff)
Make certain that the arch specific stuff is always compiled last
Diffstat (limited to 'libc')
-rw-r--r--libc/sysdeps/linux/Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/libc/sysdeps/linux/Makefile b/libc/sysdeps/linux/Makefile
index 1251543d2..7c2cbcb75 100644
--- a/libc/sysdeps/linux/Makefile
+++ b/libc/sysdeps/linux/Makefile
@@ -19,7 +19,6 @@
TOPDIR=../../../
include $(TOPDIR)Rules.mak
-DIRS = common $(TARGET_ARCH)
ALL_SUBDIRS = arm common cris h8300 i386 m68k mips powerpc sh sh64 sparc v850
all: subdirs
@@ -29,11 +28,15 @@ tags:
clean: subdirs_clean
-subdirs: $(patsubst %, _dir_%, $(DIRS))
+subdirs: common $(TARGET_ARCH)
subdirs_clean: $(patsubst %, _dirclean_%, $(ALL_SUBDIRS))
-$(patsubst %, _dir_%, $(DIRS)) : dummy
- $(MAKE) -C $(patsubst _dir_%, %, $@)
+
+common: dummy
+ $(MAKE) -C common
+
+$(TARGET_ARCH): common
+ $(MAKE) -C $(TARGET_ARCH)
$(patsubst %, _dirclean_%, $(ALL_SUBDIRS)) : dummy
$(MAKE) -C $(patsubst _dirclean_%, %, $@) clean