2002-02-20 15:36:06 +00:00
|
|
|
#
|
|
|
|
# Instance/clibrary.make
|
|
|
|
#
|
|
|
|
# Instance Makefile rules to build C libraries.
|
|
|
|
#
|
2002-02-20 17:02:27 +00:00
|
|
|
# Copyright (C) 2002 Free Software Foundation, Inc.
|
2002-02-20 15:36:06 +00:00
|
|
|
#
|
2002-02-20 17:02:27 +00:00
|
|
|
# Author: Nicola Pero <nicola@brainstorm.co.uk>
|
2002-02-20 15:36:06 +00:00
|
|
|
#
|
|
|
|
# This file is part of the GNUstep Makefile Package.
|
|
|
|
#
|
|
|
|
# This library is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU General Public License
|
|
|
|
# as published by the Free Software Foundation; either version 2
|
|
|
|
# of the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public
|
|
|
|
# License along with this library; see the file COPYING.LIB.
|
|
|
|
# If not, write to the Free Software Foundation,
|
2005-05-22 03:20:14 +00:00
|
|
|
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2002-02-20 15:36:06 +00:00
|
|
|
|
2002-02-20 17:02:27 +00:00
|
|
|
# Warning/TODO - this makefile is not really finished, because it
|
|
|
|
# still uses the LIB_LINK_CMD used for normal ObjC libraries. The
|
|
|
|
# main difference from library.make, currently, is that it installs
|
|
|
|
# outside the library_combo dir. (because this is the status of this
|
|
|
|
# makefile, we currently simply inherit from library.make. Once we
|
|
|
|
# actually implement C libraries, we might want to make this makefile
|
|
|
|
# partially independent from library.make)
|
2002-02-20 15:36:06 +00:00
|
|
|
|
|
|
|
#
|
2002-02-20 17:02:27 +00:00
|
|
|
# It all works as for library.make but we install outside library-combo
|
2002-02-20 15:36:06 +00:00
|
|
|
#
|
2002-10-10 15:43:43 +00:00
|
|
|
# Other differences are:
|
|
|
|
#
|
|
|
|
# The name of the library is in the CLIBRARY_NAME variable, rather
|
|
|
|
# than in the LIBRARY_NAME variable as it happens for libraries.
|
|
|
|
#
|
|
|
|
# Similarly, the install dir is controlled by CLIBRARY_INSTALL_DIR
|
|
|
|
# rather than LIBRARY_INSTALL_DIR.
|
|
|
|
#
|
2002-02-20 15:36:06 +00:00
|
|
|
|
2002-03-19 13:06:56 +00:00
|
|
|
.PHONY: internal-clibrary-all_ \
|
|
|
|
internal-clibrary-install_ \
|
|
|
|
internal-clibrary-uninstall_
|
2002-02-20 15:36:06 +00:00
|
|
|
|
|
|
|
# This is the directory where the lib get installed.
|
2004-01-16 17:04:48 +00:00
|
|
|
ifneq ($($(GNUSTEP_INSTANCE)_INSTALL_DIR),)
|
|
|
|
CLIBRARY_INSTALL_DIR = $($(GNUSTEP_INSTANCE)_INSTALL_DIR)
|
|
|
|
endif
|
|
|
|
|
2002-02-20 15:36:06 +00:00
|
|
|
ifeq ($(CLIBRARY_INSTALL_DIR),)
|
|
|
|
CLIBRARY_INSTALL_DIR = $(GNUSTEP_LIBRARIES)
|
|
|
|
endif
|
|
|
|
|
|
|
|
# And this is used internally - it is the final directory where we put
|
|
|
|
# the library - it includes target arch, os dir but not the
|
|
|
|
# library_combo - this variable is PRIVATE to gnustep-make
|
|
|
|
FINAL_LIBRARY_INSTALL_DIR = $(CLIBRARY_INSTALL_DIR)/$(GNUSTEP_TARGET_DIR)
|
|
|
|
|
2002-02-20 17:02:27 +00:00
|
|
|
# Drag in library.make rules
|
|
|
|
include $(GNUSTEP_MAKEFILES)/Instance/library.make
|
2002-02-20 15:36:06 +00:00
|
|
|
|
2002-02-20 17:02:27 +00:00
|
|
|
# Now call them from our own rules
|
2002-03-19 13:06:56 +00:00
|
|
|
internal-clibrary-all_:: internal-library-all_
|
2002-02-20 15:36:06 +00:00
|
|
|
|
2002-03-19 13:06:56 +00:00
|
|
|
internal-clibrary-install_:: internal-library-install_
|
2002-02-20 15:36:06 +00:00
|
|
|
|
2002-03-19 13:06:56 +00:00
|
|
|
internal-clibrary-uninstall_:: internal-library-uninstall_
|
2002-02-20 15:36:06 +00:00
|
|
|
|
2002-02-20 17:02:27 +00:00
|
|
|
internal-clibrary-check:: internal-library-check
|
2002-02-20 15:36:06 +00:00
|
|
|
|