Blame IbAccess/Makefile

Packit 5ea288
# BEGIN_ICS_COPYRIGHT8 ****************************************
Packit 5ea288
# 
Packit 5ea288
# Copyright (c) 2015-2017, Intel Corporation
Packit 5ea288
# 
Packit 5ea288
# Redistribution and use in source and binary forms, with or without
Packit 5ea288
# modification, are permitted provided that the following conditions are met:
Packit 5ea288
# 
Packit 5ea288
#     * Redistributions of source code must retain the above copyright notice,
Packit 5ea288
#       this list of conditions and the following disclaimer.
Packit 5ea288
#     * Redistributions in binary form must reproduce the above copyright
Packit 5ea288
#       notice, this list of conditions and the following disclaimer in the
Packit 5ea288
#       documentation and/or other materials provided with the distribution.
Packit 5ea288
#     * Neither the name of Intel Corporation nor the names of its contributors
Packit 5ea288
#       may be used to endorse or promote products derived from this software
Packit 5ea288
#       without specific prior written permission.
Packit 5ea288
# 
Packit 5ea288
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
Packit 5ea288
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
Packit 5ea288
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
Packit 5ea288
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
Packit 5ea288
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
Packit 5ea288
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
Packit 5ea288
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
Packit 5ea288
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
Packit 5ea288
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
Packit 5ea288
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Packit 5ea288
# 
Packit 5ea288
# END_ICS_COPYRIGHT8   ****************************************
Packit 5ea288
# Makefile for IbAccess Module
Packit 5ea288
Packit 5ea288
# Include Make Control Settings
Packit 5ea288
include $(TL_DIR)/$(PROJ_FILE_DIR)/Makesettings.project
Packit 5ea288
Packit 5ea288
#=============================================================================#
Packit 5ea288
# Definitions:
Packit 5ea288
#-----------------------------------------------------------------------------#
Packit 5ea288
Packit 5ea288
# Name of SubProjects
Packit 5ea288
DS_SUBPROJECTS	= 
Packit 5ea288
# name of executable or downloadable image
Packit 5ea288
EXECUTABLE		= # IbAccess$(EXE_SUFFIX)
Packit 5ea288
ifeq "$(IB_STACK)" "IBACCESS"
Packit 5ea288
# list of sub directories to build
Packit 5ea288
ifeq "$(BUILD_TARGET_OS)" "VXWORKS"
Packit 5ea288
DIRS			= Vxworks
Packit 5ea288
else
Packit 5ea288
DIRS=
Packit 5ea288
endif
Packit 5ea288
endif
Packit 5ea288
ifeq "$(IB_STACK)" "OPENIB"
Packit 5ea288
ifeq "$(BUILD_TARGET_OS)" "LINUX"
Packit 5ea288
DIRS			= UserLinux
Packit 5ea288
endif
Packit 5ea288
endif
Packit 5ea288
# C files (.c)
Packit 5ea288
CFILES			= \
Packit 5ea288
				# Add more c files here
Packit 5ea288
# C++ files (.cpp)
Packit 5ea288
CCFILES			= \
Packit 5ea288
				# Add more cpp files here
Packit 5ea288
# lex files (.lex)
Packit 5ea288
LFILES			= \
Packit 5ea288
				# Add more lex files here
Packit 5ea288
# archive library files (basename, $ARFILES will add MOD_LIB_DIR/prefix and suffix)
Packit 5ea288
ifeq "$(BUILD_TARGET_OS)" "VXWORKS"
Packit 5ea288
LIBFILES = Gsa Sma Vca Public TtsInit Umadt Sdi Tools
Packit 5ea288
ifeq "$(INCLUDE_STLEEP)" "yes"
Packit 5ea288
LIBFILES += Stleep
Packit 5ea288
endif
Packit 5ea288
ifeq "$(BUILD_CM)" "yes"
Packit 5ea288
LIBFILES += Cm
Packit 5ea288
endif
Packit 5ea288
ifeq "$(BUILD_BMA)" "yes"
Packit 5ea288
LIBFILES += Bma
Packit 5ea288
endif
Packit 5ea288
ifeq "$(BUILD_DMC)" "yes"
Packit 5ea288
LIBFILES += Dmc
Packit 5ea288
endif
Packit 5ea288
else
Packit 5ea288
LIBFILES=
Packit 5ea288
endif
Packit 5ea288
# Windows Resource Files (.rc)
Packit 5ea288
RSCFILES		=
Packit 5ea288
# Windows IDL File (.idl)
Packit 5ea288
IDLFILE			=
Packit 5ea288
# Windows Linker Module Definitions (.def) file for dll's
Packit 5ea288
DEFFILE			=
Packit 5ea288
# targets to build during INCLUDES phase (add public includes here)
Packit 5ea288
INCLUDE_TARGETS	= \
Packit 5ea288
				# Add more h hpp files here
Packit 5ea288
# Non-compiled files
Packit 5ea288
MISC_FILES		= 
Packit 5ea288
# all source files
Packit 5ea288
SOURCES			= $(CFILES) $(CCFILES) $(LFILES) $(RSCFILES) $(IDLFILE)
Packit 5ea288
# Source files to include in DSP File
Packit 5ea288
DSP_SOURCES		= $(INCLUDE_TARGETS) $(SOURCES) $(MISC_FILES) \
Packit 5ea288
				  $(RSCFILES) $(DEFFILE) $(MAKEFILE) Makerules.module 
Packit 5ea288
# all object files
Packit 5ea288
OBJECTS			= $(CFILES:.c=$(OBJ_SUFFIX)) $(CCFILES:.cpp=$(OBJ_SUFFIX)) \
Packit 5ea288
				  $(LFILES:.lex=$(OBJ_SUFFIX))
Packit 5ea288
RSCOBJECTS		= $(RSCFILES:.rc=$(RES_SUFFIX))
Packit 5ea288
# targets to build during LIBS phase
Packit 5ea288
LIB_TARGETS_IMPLIB	=
Packit 5ea288
ifeq "$(BUILD_TARGET_OS)" "VXWORKS"
Packit 5ea288
LIB_TARGETS_ARLIB	= $(LIB_PREFIX)IbAccess$(ARLIB_SUFFIX)
Packit 5ea288
else
Packit 5ea288
LIB_TARGETS_ARLIB	= 
Packit 5ea288
endif
Packit 5ea288
LIB_TARGETS_EXP		= $(LIB_TARGETS_IMPLIB:$(ARLIB_SUFFIX)=$(EXP_SUFFIX))
Packit 5ea288
LIB_TARGETS_MISC	= 
Packit 5ea288
# targets to build during CMDS phase
Packit 5ea288
CMD_TARGETS_SHLIB	= 
Packit 5ea288
CMD_TARGETS_EXE		= $(EXECUTABLE)
Packit 5ea288
CMD_TARGETS_MISC	=
Packit 5ea288
# files to remove during clean phase
Packit 5ea288
CLEAN_TARGETS_MISC	=  
Packit 5ea288
CLEAN_TARGETS		= $(OBJECTS) $(RSCOBJECTS) $(IDL_TARGETS) $(CLEAN_TARGETS_MISC)
Packit 5ea288
# other files to remove during clobber phase
Packit 5ea288
CLOBBER_TARGETS_MISC=
Packit 5ea288
# sub-directory to install to within bin
Packit 5ea288
BIN_SUBDIR		= 
Packit 5ea288
# sub-directory to install to within include
Packit 5ea288
INCLUDE_SUBDIR		=
Packit 5ea288
Packit 5ea288
# Additional Settings
Packit 5ea288
#CLOCALDEBUG	= User defined C debugging compilation flags [Empty]
Packit 5ea288
#CCLOCALDEBUG	= User defined C++ debugging compilation flags [Empty]
Packit 5ea288
#CLOCAL	= User defined C flags for compiling [Empty]
Packit 5ea288
#CCLOCAL	= User defined C++ flags for compiling [Empty]
Packit 5ea288
#BSCLOCAL	= User flags for Browse File Builder [Empty]
Packit 5ea288
#DEPENDLOCAL	= user defined makedepend flags [Empty]
Packit 5ea288
#LINTLOCAL	= User defined lint flags [Empty]
Packit 5ea288
#LOCAL_INCLUDE_DIRS	= User include directories to search for C/C++ headers [Empty]
Packit 5ea288
#LDLOCAL	= User defined C flags for linking [Empty]
Packit 5ea288
#IMPLIBLOCAL	= User flags for Object Lirary Manager [Empty]
Packit 5ea288
#MIDLLOCAL	= User flags for IDL compiler [Empty]
Packit 5ea288
#RSCLOCAL	= User flags for resource compiler [Empty]
Packit 5ea288
#LOCALDEPLIBS	= User libraries to include in dependencies [Empty]
Packit 5ea288
#LOCALLIBS		= User libraries to use when linking [Empty]
Packit 5ea288
#				(in addition to LOCALDEPLIBS)
Packit 5ea288
#LOCAL_LIB_DIRS	= User library directories for libpaths [Empty]
Packit 5ea288
Packit 5ea288
LOCALDEPLIBS = 
Packit 5ea288
Packit 5ea288
# Include Make Rules definitions and rules
Packit 5ea288
include $(TL_DIR)/IbAccess/Makerules.module
Packit 5ea288
Packit 5ea288
#=============================================================================#
Packit 5ea288
# Overrides:
Packit 5ea288
#-----------------------------------------------------------------------------#
Packit 5ea288
#CCOPT			=	# C++ optimization flags, default lets build config decide
Packit 5ea288
#COPT			=	# C optimization flags, default lets build config decide
Packit 5ea288
#SUBSYSTEM = Subsystem to build for (none, console or windows) [none]
Packit 5ea288
#					 (Windows Only)
Packit 5ea288
#USEMFC	= How Windows MFC should be used (none, static, shared, no_mfc) [none]
Packit 5ea288
#				(Windows Only)
Packit 5ea288
#=============================================================================#
Packit 5ea288
Packit 5ea288
#=============================================================================#
Packit 5ea288
# Rules:
Packit 5ea288
#-----------------------------------------------------------------------------#
Packit 5ea288
# process Sub-directories
Packit 5ea288
include $(TL_DIR)/Makerules/Maketargets.toplevel
Packit 5ea288
Packit 5ea288
# build cmds and libs
Packit 5ea288
include $(TL_DIR)/Makerules/Maketargets.build
Packit 5ea288
Packit 5ea288
# install for includes, libs and cmds phases
Packit 5ea288
include $(TL_DIR)/Makerules/Maketargets.moduleinstall
Packit 5ea288
Packit 5ea288
# install for stage phase
Packit 5ea288
ifeq "$(BUILD_TARGET_OS)" "VXWORKS"
Packit 5ea288
STAGE::
Packit 5ea288
else
Packit 5ea288
include $(TL_DIR)/Makerules/Maketargets.modulestage
Packit 5ea288
endif
Packit 5ea288
Packit 5ea288
# Unit test execution
Packit 5ea288
#include $(TL_DIR)/Makerules/Maketargets.runtest
Packit 5ea288
Packit 5ea288
clobber:: clobber_module
Packit 5ea288
Packit 5ea288
#=============================================================================#
Packit 5ea288
Packit 5ea288
#=============================================================================#
Packit 5ea288
# DO NOT DELETE THIS LINE -- make depend depends on it.
Packit 5ea288
#=============================================================================#