From 8f82a3f7a00b7929d9065d4fd9d28bd08dfc80a3 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 20 Nov 2003 14:40:50 +0000 Subject: Make certain that the arch specific stuff is always compiled last --- libc/sysdeps/linux/Makefile | 11 +++++++---- 1 file 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 -- cgit v1.2.3