4 # Master Makefile rules to build ObjC-based (but not GNUstep) programs.
6 # Copyright (C) 1997, 2001 Free Software Foundation, Inc.
8 # Author: Scott Christley <scottc@net-community.com>
9 # Author: Nicola Pero <nicola@brainstorm.co.uk>
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 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23 OBJC_PROGRAM_NAME := $(strip $(OBJC_PROGRAM_NAME))
25 ifeq ($(RULES_MAKE_LOADED),)
26 include $(GNUSTEP_MAKEFILES)/rules.make
29 internal-all:: $(OBJC_PROGRAM_NAME:=.all.objc-program.variables)
31 internal-install:: $(OBJC_PROGRAM_NAME:=.install.objc-program.variables)
33 internal-uninstall:: $(OBJC_PROGRAM_NAME:=.uninstall.objc-program.variables)
36 rm -rf $(GNUSTEP_OBJ_DIR)
39 (cd $(GNUSTEP_BUILD_DIR); \
40 rm -rf shared_obj static_obj shared_debug_obj shared_profile_obj \
41 static_debug_obj static_profile_obj shared_profile_debug_obj \
42 static_profile_debug_obj)
44 OBJC_PROGRAMS_WITH_SUBPROJECTS = $(strip $(foreach objc_program,$(OBJC_PROGRAM_NAME),$(patsubst %,$(objc_program),$($(objc_program)_SUBPROJECTS))))
45 ifneq ($(OBJC_PROGRAMS_WITH_SUBPROJECTS),)
46 internal-clean:: $(OBJC_PROGRAMS_WITH_SUBPROJECTS:=.clean.objc-program.subprojects)
47 internal-distclean:: $(OBJC_PROGRAMS_WITH_SUBPROJECTS:=.distclean.objc-program.subprojects)
50 internal-strings:: $(OBJC_PROGRAM_NAME:=.strings.objc-program.variables)
53 @$(MAKE) -f $(MAKEFILE_NAME) --no-print-directory \
54 $@.all.objc-program.variables