소스 검색

Minor update

Eric Andersen 23 년 전
부모
커밋
bb632d57bb
2개의 변경된 파일15개의 추가작업 그리고 8개의 파일을 삭제
  1. 12 8
      test/Makefile
  2. 3 0
      test/Rules.mak

+ 12 - 8
test/Makefile

@@ -21,15 +21,19 @@
 # respective copyright holders.
 
 TOPDIR=../
-include $(TOPDIR)Rules.mak
+include $(TOPDIR)Config
+
+.EXPORT_ALL_VARIABLES:
+
 
 ALL_SUBDIRS = args assert ctype pwd_grp signal silly stdlib string unistd #misc
-ifeq ($(TARGET_ARCH), $(NATIVE_ARCH))
-	DIRS = $(ALL_SUBDIRS)
-else
-	DIRS =
-endif
-ifeq ($(DO_SHARED),shared)
+DIRS = $(ALL_SUBDIRS)
+#ifeq ($(TARGET_ARCH), $(NATIVE_ARCH))
+#	DIRS = $(ALL_SUBDIRS)
+#else
+#	DIRS =
+#endif
+ifeq ($(strip $(HAVE_SHARED)),true)
 	DIRS += ldso
 endif	
 
@@ -47,7 +51,7 @@ subdirs_clean: $(patsubst %, _dirclean_%, $(ALL_SUBDIRS))
 $(patsubst %, _dir_%, $(DIRS)) : dummy
 	$(MAKE) -C $(patsubst _dir_%, %, $@)
 
-$(patsubst %, _dirclean_%, $(ALL_SUBDIRS)) : dummy
+$(patsubst %, _dirclean_%, $(ALL_SUBDIRS) ldso) : dummy
 	$(MAKE) -C $(patsubst _dirclean_%, %, $@) clean
 
 .PHONY: dummy

+ 3 - 0
test/Rules.mak

@@ -6,6 +6,7 @@
 #Note: This does not read the top level Rules.mak file
 #
 
+include $(TESTDIR)../Config
 include $(TESTDIR)Config
 
 
@@ -47,7 +48,9 @@ endif
 ifneq ($(DODYNAMIC),true)
     LDFLAGS +=--static
 endif
+ifeq ($(strip $(HAVE_SHARED)),true)
 ifeq ($(strip $(BUILD_UCLIBC_LDSO)),true)
 CFLAGS+=--uclibc-use-build-dir
 LDFLAGS+=--uclibc-use-build-dir
 endif
+endif