genlibrary.make

来自「This is a resource based on j2me embedde」· MAKE 代码 · 共 393 行 · 第 1/2 页

MAKE
393
字号
##   ## Copyright  1990-2007 Sun Microsystems, Inc. All Rights Reserved.# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER# # This program is free software; you can redistribute it and/or# modify it under the terms of the GNU General Public License version# 2 only, as published by the Free Software Foundation.# # This program is distributed in the hope that it will be useful, but# WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU# General Public License version 2 for more details (a copy is# included at /legal/license.txt).# # You should have received a copy of the GNU General Public License# version 2 along with this work; if not, write to the Free Software# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA# 02110-1301 USA# # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa# Clara, CA 95054 or visit www.sun.com if you need additional# information or have any questions.######################################################################### This makefile generates the main makefile library.make.## Following variables should have been set before including this file:#  LIBRARY   - name of a library to generate makefile for#  LIB_IMPL  - name of the implementation selected for the library#######################################################################.PHONY: all clean# Make sure all is the default targetall:include $(JWC_WORK_SPACE)/build/share/libdefs.gmk## Include library descriptor and implementation descriptor. #include $(JWC_WORK_SPACE)/src/$(LIBRARY)/libexport.gmkinclude $(JWC_WORK_SPACE)/src/$(LIBRARY)/$(LIB_IMPL)/libinfo.gmkLIB_BLD_PATH=$(JWC_BUILD_SPACE)/$(LIBRARY)LIB_SRC_PATH=$(JWC_WORK_SPACE)/src/$(LIBRARY)LIB_MAKEFILE=$(LIB_BLD_PATH)/library.make## List of library.make makefiles for libraries which this library depends on#DEPENDENCY_MAKEFILES= \   $(addprefix $(JWC_BUILD_SPACE)/, $(addsuffix /library.make, $(LIB_DEPENDENCIES)))## List of <library>_all targets for libraries which this library depends on#DEPENDENCIES_ALL=$(addsuffix _all, $(LIB_DEPENDENCIES))## List of <library>_clean targets for libraries which this library depends on#DEPENDENCIES_CLEAN=$(addsuffix _clean, $(LIB_DEPENDENCIES))## Library name with slashed replaced with undescores, used to name the native library#LIB_NAME=$(subst /,_,$(LIBRARY))######################################################################## Java compilation definitions#######################################################################LIB_CLASS_DIR=$(LIB_BLD_PATH)/impl_classesLIB_CLASSES_ZIP=$(LIB_BLD_PATH)/impl_classes.zipLIB_CLASS_LIST=$(LIB_BLD_PATH)/impl_classlistLIB_TEMP_CLASS_LIST=$(LIB_BLD_PATH)/impl_classlist.tmp## Full paths to Java implementation files for the selected implementation#LIB_JAVA_PATHS=$(addprefix $(LIB_SRC_PATH)/$(LIB_IMPL)/classes/,$(LIB_JAVA_FILES))LIB_EXPORT_CLASS_DIR=$(LIB_BLD_PATH)/export_classesLIB_EXPORT_CLASSES_ZIP=$(LIB_BLD_PATH)/export_classes.zipLIB_EXPORT_CLASS_LIST=$(LIB_BLD_PATH)/export_classlistLIB_TEMP_EXPORT_CLASS_LIST=$(LIB_BLD_PATH)/export_classlist.tmp## Full paths to Java interface files for this library#LIB_EXPORT_JAVA_PATHS=$(addprefix $(LIB_SRC_PATH)/classes/,$(LIB_EXPORT_JAVA_FILES))LIB_I3TEST_CLASS_DIR=$(LIB_BLD_PATH)/i3test_classesLIB_I3TEST_CLASSES_ZIP=$(LIB_BLD_PATH)/i3test_classes.zipLIB_I3TEST_CLASS_LIST=$(LIB_BLD_PATH)/i3test_classlistLIB_TEMP_I3TEST_CLASS_LIST=$(LIB_BLD_PATH)/i3test_classlist.tmp## Full paths to Java I3 test files for this implementation#LIB_I3TEST_JAVA_PATHS=$(addprefix $(LIB_SRC_PATH)/$(LIB_IMPL)/i3test/,$(LIB_I3TEST_FILES))## Way to specify an space as an argument  for subst#EMPTY=ONESPACE=$(EMPTY) $(EMPTY)## Convert a space-separated list of libraries to a pathsep-separated list # of interface classes zip files for those libraries#LIB_JAVAC_CLASSPATH= \    $(subst $(ONESPACE),\$$(JVM_PATHSEP), $(strip \            $(addsuffix /export_classes.zip, \                $(addprefix $(JWC_BUILD_SPACE)/,$(LIB_DEPENDENCIES)))))## Temporary file used to keep the signature of the interface classes# to test compatibility between exported interface and selected # implementation for this library#LIB_SIGNATURE_FILE=$(LIB_BLD_PATH)/export_classes.sgn## IMPL_NOTE: revome when decoupling is complete# For now we append all the classes from the old build to the classpath#ifeq ($(LIB_USES_LEGACY_CLASSES),true)LIB_JAVAC_FULL_CLASSPATH = $(LIB_JAVAC_CLASSPATH)\$$(JVM_PATHSEP)$(MIDP_CLASSES_ZIP)else LIB_JAVAC_FULL_CLASSPATH = $(LIB_JAVAC_CLASSPATH)endif######################################################################## Native compilation definitions#######################################################################LIB_OBJ_DIR=$(LIB_BLD_PATH)/obj$(DEBUG_SUFFIX)## Full path of the native library target for this library#LIB_LIBRARY=$(LIB_BLD_PATH)/\$$(JVM_LIB_PREFIX)$(LIB_NAME)\$$(JVM_BUILD_EXT)\$$(JVM_LIB_SUFFIX)LIB_OBJ_FILES = \    $(addprefix $(LIB_OBJ_DIR)/, \        $(patsubst %.cpp,%\$$(JVM_OBJ_SUFFIX), \            $(filter %.cpp,$(LIB_NATIVE_FILES))))LIB_OBJ_FILES += \    $(addprefix $(LIB_OBJ_DIR)/, \        $(patsubst %.c,%\$$(JVM_OBJ_SUFFIX), \            $(filter %.c,$(LIB_NATIVE_FILES))))## Convert list of space-separated list of libraries to include list#LIB_INCLUDE_PATH += \    $(addsuffix /include, \        $(addprefix -I$(JWC_BUILD_SPACE)/,$(LIB_DEPENDENCIES)))## Append the native exported interface of this library to the include list#LIB_INCLUDE_PATH += -I$(LIB_SRC_PATH)/include## IMPL_NOTE: revome when decoupling is complete# For now we append legacy include path#ifeq ($(LIB_USES_LEGACY_HEADERS),true)include $(JWC_WORK_SPACE)/build/common/makefiles/SubsystemDefs.gmkLIB_INCLUDE_PATH += $(EXTRA_INCLUDES)endif######################################################################## Native header installation definitions#

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?