1# -*-makefile-*- 2# Instance/clibrary.make 3# 4# Instance Makefile rules to build C libraries. 5# 6# Copyright (C) 2002 Free Software Foundation, Inc. 7# 8# Author: Nicola Pero <nicola.pero@meta-innovation.com> 9# 10# This file is part of the GNUstep Makefile Package. 11# 12# This library is free software; you can redistribute it and/or 13# modify it under the terms of the GNU General Public License 14# as published by the Free Software Foundation; either version 3 15# of the License, or (at your option) any later version. 16# 17# You should have received a copy of the GNU General Public 18# License along with this library; see the file COPYING. 19# If not, write to the Free Software Foundation, 20# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 21 22# Warning/TODO - this makefile is not really finished, because it 23# still uses the LIB_LINK_CMD used for normal ObjC libraries. The 24# main difference from library.make, currently, is that it installs 25# outside the library_combo dir. (because this is the status of this 26# makefile, we currently simply inherit from library.make. Once we 27# actually implement C libraries, we might want to make this makefile 28# partially independent from library.make) 29 30# 31# It all works as for library.make but we install outside library-combo 32# 33# Other differences are: 34# 35# The name of the library is in the CLIBRARY_NAME variable, rather 36# than in the LIBRARY_NAME variable as it happens for libraries. 37# 38# Similarly, the install dir is controlled by CLIBRARY_INSTALL_DIR 39# rather than LIBRARY_INSTALL_DIR. 40# 41 42.PHONY: internal-clibrary-all_ \ 43 internal-clibrary-install_ \ 44 internal-clibrary-uninstall_ 45 46# This is the directory where the lib get installed. 47ifneq ($($(GNUSTEP_INSTANCE)_INSTALL_DIR),) 48 CLIBRARY_INSTALL_DIR = $($(GNUSTEP_INSTANCE)_INSTALL_DIR) 49endif 50 51ifeq ($(CLIBRARY_INSTALL_DIR),) 52 CLIBRARY_INSTALL_DIR = $(GNUSTEP_LIBRARIES) 53endif 54 55# And this is used internally - it is the final directory where we put 56# the library - it includes target arch, os dir but not the 57# library_combo - this variable is PRIVATE to gnustep-make 58FINAL_LIBRARY_INSTALL_DIR = $(CLIBRARY_INSTALL_DIR)/$(GNUSTEP_TARGET_DIR) 59 60# Drag in library.make rules 61include $(GNUSTEP_MAKEFILES)/Instance/library.make 62 63# Now call them from our own rules 64internal-clibrary-all_:: internal-library-all_ 65 66internal-clibrary-install_:: internal-library-install_ 67 68internal-clibrary-uninstall_:: internal-library-uninstall_ 69 70internal-clibrary-check:: internal-library-check 71 72