|
Packit |
857059 |
# BEGIN_ICS_COPYRIGHT8 ****************************************
|
|
Packit |
857059 |
#
|
|
Packit |
857059 |
# Copyright (c) 2015-2017, Intel Corporation
|
|
Packit |
857059 |
#
|
|
Packit |
857059 |
# Redistribution and use in source and binary forms, with or without
|
|
Packit |
857059 |
# modification, are permitted provided that the following conditions are met:
|
|
Packit |
857059 |
#
|
|
Packit |
857059 |
# * Redistributions of source code must retain the above copyright notice,
|
|
Packit |
857059 |
# this list of conditions and the following disclaimer.
|
|
Packit |
857059 |
# * Redistributions in binary form must reproduce the above copyright
|
|
Packit |
857059 |
# notice, this list of conditions and the following disclaimer in the
|
|
Packit |
857059 |
# documentation and/or other materials provided with the distribution.
|
|
Packit |
857059 |
# * Neither the name of Intel Corporation nor the names of its contributors
|
|
Packit |
857059 |
# may be used to endorse or promote products derived from this software
|
|
Packit |
857059 |
# without specific prior written permission.
|
|
Packit |
857059 |
#
|
|
Packit |
857059 |
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
Packit |
857059 |
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
Packit |
857059 |
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
Packit |
857059 |
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
|
Packit |
857059 |
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
Packit |
857059 |
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
Packit |
857059 |
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
Packit |
857059 |
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
Packit |
857059 |
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
Packit |
857059 |
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
Packit |
857059 |
#
|
|
Packit |
857059 |
# END_ICS_COPYRIGHT8 ****************************************
|
|
Packit |
857059 |
# Makefile for OPENIB_HOST Project - tests portion
|
|
Packit |
857059 |
|
|
Packit |
857059 |
# Include Make Control Settings
|
|
Packit |
857059 |
include $(TL_DIR)/$(PROJ_FILE_DIR)/Makesettings.project
|
|
Packit |
857059 |
|
|
Packit |
857059 |
# default target for project level makefile is stage
|
|
Packit |
857059 |
stage::
|
|
Packit |
857059 |
#prepfiles:: prepfiles_global
|
|
Packit |
857059 |
clobber:: clobber_global clobber_tools
|
|
Packit |
857059 |
ALL:: tools
|
|
Packit |
857059 |
|
|
Packit |
857059 |
BSP_SPECIFIC_DIRS=
|
|
Packit |
857059 |
|
|
Packit |
857059 |
#=============================================================================#
|
|
Packit |
857059 |
# Definitions:
|
|
Packit |
857059 |
#-----------------------------------------------------------------------------#
|
|
Packit |
857059 |
|
|
Packit |
857059 |
# Name of SubProjects
|
|
Packit |
857059 |
DS_SUBPROJECTS =
|
|
Packit |
857059 |
# name of executable or downloadable image
|
|
Packit |
857059 |
EXECUTABLE = # OPENIB_FF_TESTS$(EXE_SUFFIX)
|
|
Packit |
857059 |
# list of sub directories to build
|
|
Packit |
857059 |
DIRS = \
|
|
Packit |
857059 |
$(TL_DIR)/Makerules \
|
|
Packit |
857059 |
$(TL_DIR)/IbAccess \
|
|
Packit |
857059 |
$(TL_DIR)/opamgt \
|
|
Packit |
857059 |
$(TL_DIR)/Xml \
|
|
Packit |
857059 |
$(TL_DIR)/Topology \
|
|
Packit |
857059 |
$(TL_DIR)/SrpTools \
|
|
Packit |
857059 |
$(TL_DIR)/InicTools \
|
|
Packit |
857059 |
$(TL_DIR)/Tests \
|
|
Packit |
857059 |
$(TL_DIR)/IbaTests \
|
|
Packit |
857059 |
$(TL_DIR)/MpiApps
|
|
Packit |
857059 |
|
|
Packit |
857059 |
# DISABLED - MWHEINZ
|
|
Packit |
857059 |
#$(TL_DIR)/L8sim
|
|
Packit |
857059 |
|
|
Packit |
857059 |
|
|
Packit |
857059 |
# C files (.c)
|
|
Packit |
857059 |
CFILES = \
|
|
Packit |
857059 |
# Add more c files here
|
|
Packit |
857059 |
# C++ files (.cpp)
|
|
Packit |
857059 |
CCFILES = \
|
|
Packit |
857059 |
# Add more cpp files here
|
|
Packit |
857059 |
# lex files (.lex)
|
|
Packit |
857059 |
LFILES = \
|
|
Packit |
857059 |
# Add more lex files here
|
|
Packit |
857059 |
# archive library files (basename, $ARFILES will add MOD_LIB_DIR/prefix and suffix)
|
|
Packit |
857059 |
LIBFILES =
|
|
Packit |
857059 |
# Windows Resource Files (.rc)
|
|
Packit |
857059 |
RSCFILES =
|
|
Packit |
857059 |
# Windows IDL File (.idl)
|
|
Packit |
857059 |
IDLFILE =
|
|
Packit |
857059 |
# Windows Linker Module Definitions (.def) file for dll's
|
|
Packit |
857059 |
DEFFILE =
|
|
Packit |
857059 |
# targets to build during INCLUDES phase (add public includes here)
|
|
Packit |
857059 |
INCLUDE_TARGETS = \
|
|
Packit |
857059 |
# Add more h hpp files here
|
|
Packit |
857059 |
# Non-compiled files
|
|
Packit |
857059 |
MISC_FILES =
|
|
Packit |
857059 |
# all source files
|
|
Packit |
857059 |
SOURCES = $(CFILES) $(CCFILES) $(LFILES) $(RSCFILES) $(IDLFILE)
|
|
Packit |
857059 |
# Source files to include in DSP File
|
|
Packit |
857059 |
DSP_SOURCES = $(INCLUDE_TARGETS) $(SOURCES) $(MISC_FILES) \
|
|
Packit |
857059 |
$(RSCFILES) $(DEFFILE) $(MAKEFILE) Makerules.project
|
|
Packit |
857059 |
# all object files
|
|
Packit |
857059 |
OBJECTS = $(CFILES:.c=$(OBJ_SUFFIX)) $(CCFILES:.cpp=$(OBJ_SUFFIX)) \
|
|
Packit |
857059 |
$(LFILES:.lex=$(OBJ_SUFFIX))
|
|
Packit |
857059 |
RSCOBJECTS = $(RSCFILES:.rc=$(RES_SUFFIX))
|
|
Packit |
857059 |
# targets to build during LIBS phase
|
|
Packit |
857059 |
LIB_TARGETS_IMPLIB =
|
|
Packit |
857059 |
LIB_TARGETS_ARLIB =
|
|
Packit |
857059 |
LIB_TARGETS_EXP = $(LIB_TARGETS_IMPLIB:$(ARLIB_SUFFIX)=$(EXP_SUFFIX))
|
|
Packit |
857059 |
LIB_TARGETS_MISC =
|
|
Packit |
857059 |
# targets to build during CMDS phase
|
|
Packit |
857059 |
CMD_TARGETS_SHLIB =
|
|
Packit |
857059 |
CMD_TARGETS_EXE = $(EXECUTABLE)
|
|
Packit |
857059 |
CMD_TARGETS_MISC =
|
|
Packit |
857059 |
# files to remove during clean phase
|
|
Packit |
857059 |
CLEAN_TARGETS_MISC =
|
|
Packit |
857059 |
CLEAN_TARGETS = $(OBJECTS) $(RSCOBJECTS) $(IDL_TARGETS) $(CLEAN_TARGETS_MISC)
|
|
Packit |
857059 |
# other files to remove during clobber phase
|
|
Packit |
857059 |
CLOBBER_TARGETS_MISC=
|
|
Packit |
857059 |
# sub-directory to install to within bin
|
|
Packit |
857059 |
BIN_SUBDIR =
|
|
Packit |
857059 |
# sub-directory to install to within include
|
|
Packit |
857059 |
INCLUDE_SUBDIR =
|
|
Packit |
857059 |
|
|
Packit |
857059 |
# Additional Settings
|
|
Packit |
857059 |
#CLOCALDEBUG = User defined C debugging compilation flags [Empty]
|
|
Packit |
857059 |
#CCLOCALDEBUG = User defined C++ debugging compilation flags [Empty]
|
|
Packit |
857059 |
#CLOCAL = User defined C flags for compiling [Empty]
|
|
Packit |
857059 |
#CCLOCAL = User defined C++ flags for compiling [Empty]
|
|
Packit |
857059 |
#BSCLOCAL = User flags for Browse File Builder [Empty]
|
|
Packit |
857059 |
#DEPENDLOCAL = user defined makedepend flags [Empty]
|
|
Packit |
857059 |
#LINTLOCAL = User defined lint flags [Empty]
|
|
Packit |
857059 |
#LOCAL_INCLUDE_DIRS = User include directories to search for C/C++ headers [Empty]
|
|
Packit |
857059 |
#LDLOCAL = User defined C flags for linking [Empty]
|
|
Packit |
857059 |
#IMPLIBLOCAL = User flags for Object Lirary Manager [Empty]
|
|
Packit |
857059 |
#MIDLLOCAL = User flags for IDL compiler [Empty]
|
|
Packit |
857059 |
#RSCLOCAL = User flags for resource compiler [Empty]
|
|
Packit |
857059 |
#LOCALDEPLIBS = User libraries to include in dependencies [Empty]
|
|
Packit |
857059 |
#LOCALLIBS = User libraries to use when linking [Empty]
|
|
Packit |
857059 |
# (in addition to LOCALDEPLIBS)
|
|
Packit |
857059 |
#LOCAL_LIB_DIRS = User library directories for libpaths [Empty]
|
|
Packit |
857059 |
|
|
Packit |
857059 |
LOCALDEPLIBS =
|
|
Packit |
857059 |
|
|
Packit |
857059 |
# Include Make Rules definitions and rules
|
|
Packit |
857059 |
include $(TL_DIR)/Makerules.project
|
|
Packit |
857059 |
|
|
Packit |
857059 |
#=============================================================================#
|
|
Packit |
857059 |
# Overrides:
|
|
Packit |
857059 |
#-----------------------------------------------------------------------------#
|
|
Packit |
857059 |
#CCOPT = # C++ optimization flags, default lets build config decide
|
|
Packit |
857059 |
#COPT = # C optimization flags, default lets build config decide
|
|
Packit |
857059 |
#SUBSYSTEM = Subsystem to build for (none, console or windows) [none]
|
|
Packit |
857059 |
# (Windows Only)
|
|
Packit |
857059 |
#USEMFC = How Windows MFC should be used (none, static, shared, no_mfc) [none]
|
|
Packit |
857059 |
# (Windows Only)
|
|
Packit |
857059 |
#=============================================================================#
|
|
Packit |
857059 |
|
|
Packit |
857059 |
#=============================================================================#
|
|
Packit |
857059 |
# Rules:
|
|
Packit |
857059 |
#-----------------------------------------------------------------------------#
|
|
Packit |
857059 |
# process Sub-directories
|
|
Packit |
857059 |
include $(TL_DIR)/Makerules/Maketargets.toplevel
|
|
Packit |
857059 |
|
|
Packit |
857059 |
# build cmds and libs
|
|
Packit |
857059 |
include $(TL_DIR)/Makerules/Maketargets.build
|
|
Packit |
857059 |
|
|
Packit |
857059 |
# install for includes, libs and cmds phases
|
|
Packit |
857059 |
include $(TL_DIR)/Makerules/Maketargets.install
|
|
Packit |
857059 |
|
|
Packit |
857059 |
# install for stage phase
|
|
Packit |
857059 |
include $(TL_DIR)/Makerules/Maketargets.stage
|
|
Packit |
857059 |
STAGE::
|
|
Packit |
857059 |
ifeq "$(RELEASE_TAG)" ""
|
|
Packit |
857059 |
$(CONVERT_RELEASETAG) $(MODULEVERSION) > $(PROJ_STAGE_DIR)/version
|
|
Packit |
857059 |
else
|
|
Packit |
857059 |
$(CONVERT_RELEASETAG) $(RELEASE_TAG) > $(PROJ_STAGE_DIR)/version
|
|
Packit |
857059 |
endif
|
|
Packit |
857059 |
echo $(BUILD_TARGET) > $(PROJ_STAGE_DIR)/arch
|
|
Packit |
857059 |
echo $(BUILD_TARGET_OS_VENDOR) > $(PROJ_STAGE_DIR)/distro
|
|
Packit |
857059 |
echo $(BUILD_TARGET_OS_VENDOR_VERSION) > $(PROJ_STAGE_DIR)/distro_version
|
|
Packit |
857059 |
echo $(BUILD_TARGET_OS_ID) > $(PROJ_STAGE_DIR)/os_id
|
|
Packit |
857059 |
|
|
Packit |
857059 |
# put version number into a file to facilitate rpm construction
|
|
Packit |
857059 |
# presently only INSTALL allows dynamic version patch
|
|
Packit |
857059 |
prepfiles:: check_env
|
|
Packit |
857059 |
ifeq "$(RELEASE_TAG)" ""
|
|
Packit |
857059 |
$(CONVERT_RELEASETAG) $(MODULEVERSION) > $(PROJ_STAGE_DIR)/version
|
|
Packit |
857059 |
else
|
|
Packit |
857059 |
$(CONVERT_RELEASETAG) $(RELEASE_TAG) > $(PROJ_STAGE_DIR)/version
|
|
Packit |
857059 |
endif
|
|
Packit |
857059 |
cd $(PROJ_STAGE_DIR) && find . -print| $(PREP)
|
|
Packit |
857059 |
cd $(PROJ_STAGE_DIR) && $(PATCH_VERSION) -m % -n `$(CONVERT_RELEASETAG) $(RELEASE_TAG)` $(RELEASE_TAG) INSTALL
|
|
Packit |
857059 |
cd $(PROJ_STAGE_DIR) && [ ! -e fastfabric/opafastfabric ] || $(PATCH_VERSION) -m % -n `$(CONVERT_RELEASETAG) $(RELEASE_TAG)` $(RELEASE_TAG) fastfabric/opahostadmin fastfabric/opachassisadmin fastfabric/opaswitchadmin fastfabric/opafastfabric
|
|
Packit |
857059 |
cd $(PROJ_STAGE_DIR) && $(PATCH_BRAND) -m % "$(BUILD_BRAND)" INSTALL
|
|
Packit |
857059 |
cd $(PROJ_STAGE_DIR) && [ ! -e fastfabric/opafastfabric ] || $(PATCH_BRAND) -m % "$(BUILD_BRAND)" fastfabric/opafastfabric
|
|
Packit |
857059 |
|
|
Packit |
857059 |
# OS specific packaging step
|
|
Packit |
857059 |
# package builds standard package
|
|
Packit |
857059 |
package:
|
|
Packit |
857059 |
cd $(BUILD_TARGET_OS) && $(MAKE) $(MFLAGS) $@
|
|
Packit |
857059 |
.PHONY: package
|
|
Packit |
857059 |
|
|
Packit |
857059 |
vars_include: vars_include_global
|
|
Packit |
857059 |
|
|
Packit |
857059 |
# Unit test execution
|
|
Packit |
857059 |
#include $(TL_DIR)/Makerules/Maketargets.runtest
|
|
Packit |
857059 |
|
|
Packit |
857059 |
tools:
|
|
Packit |
857059 |
mkdir -p $(COMN_LIB_DIRS) $(GLOBAL_SHLIB_DIR)
|
|
Packit |
857059 |
cd $(TL_DIR)/MakeTools && $(MAKE) $(MFLAGS)
|
|
Packit |
857059 |
clobber_tools:
|
|
Packit |
857059 |
cd $(TL_DIR)/MakeTools && $(MAKE) $(MFLAGS) clobber
|
|
Packit |
857059 |
CLOBBER::
|
|
Packit |
857059 |
rm -f packaged_files dist_files
|
|
Packit |
857059 |
|
|
Packit |
857059 |
#=============================================================================#
|
|
Packit |
857059 |
|
|
Packit |
857059 |
#=============================================================================#
|
|
Packit |
857059 |
# DO NOT DELETE THIS LINE -- make depend depends on it.
|
|
Packit |
857059 |
#=============================================================================#
|