2 # Master/test-library.make
4 # Master Makefile rules for dejagnu/GNUstep based testing
6 # Copyright (C) 1997 Free Software Foundation, Inc.
8 # Author: Scott Christley <scottc@net-community.com>
9 # Author: Ovidiu Predescu <ovidiu@net-community.com>
11 # This file is part of the GNUstep Makefile Package.
13 # This library is free software; you can redistribute it and/or
14 # modify it under the terms of the GNU General Public License
15 # as published by the Free Software Foundation; either version 2
16 # of the License, or (at your option) any later version.
18 # You should have received a copy of the GNU General Public
19 # License along with this library; see the file COPYING.LIB.
20 # If not, write to the Free Software Foundation,
21 # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24 TEST_LIBRARY_NAME := $(strip $(TEST_LIBRARY_NAME))
26 ifeq ($(RULES_MAKE_LOADED),)
27 include $(GNUSTEP_MAKEFILES)/rules.make
30 internal-all:: $(TEST_LIBRARY_NAME:=.all.test-lib.variables)
32 internal-install:: $(TEST_LIBRARY_NAME:=.install.test-lib.variables)
34 internal-uninstall:: $(TEST_LIBRARY_NAME:=.uninstall.test-lib.variables)
36 _PSWRAP_C_FILES = $(foreach lib,$(TEST_LIBRARY_NAME),$($(lib)_PSWRAP_FILES:.psw=.c))
37 _PSWRAP_H_FILES = $(foreach lib,$(TEST_LIBRARY_NAME),$($(lib)_PSWRAP_FILES:.psw=.h))
40 (cd $(GNUSTEP_BUILD_DIR); \
41 rm -rf $(GNUSTEP_OBJ_DIR_NAME) $(_PSWRAP_C_FILES) $(_PSWRAP_H_FILES))
44 (cd $(GNUSTEP_BUILD_DIR); \
45 rm -rf shared_obj static_obj shared_debug_obj shared_profile_obj \
46 static_debug_obj static_profile_obj shared_profile_debug_obj \
47 static_profile_debug_obj)
49 TEST_LIBRARIES_WITH_SUBPROJECTS = $(strip $(foreach test-library,$(TEST_LIBRARY_NAME),$(patsubst %,$(test-library),$($(test-library)_SUBPROJECTS))))
50 ifneq ($(TEST_LIBRARIES_WITH_SUBPROJECTS),)
51 internal-clean:: $(TEST_LIBRARIES_WITH_SUBPROJECTS:=.clean.test-library.subprojects)
52 internal-distclean:: $(TEST_LIBRARIES_WITH_SUBPROJECTS:=.distclean.test-library.subprojects)
55 internal-check:: $(TEST_LIBRARY_NAME:=.check.test-lib.variables)
57 internal-strings:: $(TEST_LIBRARY_NAME:=.strings.test-lib.variables)
59 $(TEST_LIBRARY_NAME)::
60 @$(MAKE) -f $(MAKEFILE_NAME) --no-print-directory \
61 $@.all.test-lib.variables