Blame Esm/ib/Makerules.module

Packit 857059
# BEGIN_ICS_COPYRIGHT8 ****************************************
Packit 857059
# 
Packit 857059
# Copyright (c) 2015, 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
## Rules for SM module
Packit 857059
#=============================================================================#
Packit 857059
## Module Make Rules File
Packit 857059
## -----------------------
Packit 857059
##
Packit 857059
#=============================================================================#
Packit 857059
##
Packit 857059
#=============================================================================#
Packit 857059
# The following list is the standard list of definitions which will be defined
Packit 857059
# for all platforms.  It consists of general and machine specific sections that
Packit 857059
# contain many system parameters which may be used in a makefile.  Please keep
Packit 857059
# the list(s) in strictly aphabetical order to facilitate simple searches.
Packit 857059
#
Packit 857059
# See Makerules.global for the meaning of these flags
Packit 857059
#-----------------------------------------------------------------------------#
Packit 857059
# Common platform definitions:
Packit 857059
#-----------------------------------------------------------------------------#
Packit 857059
MOD_DIR=$(PROJ_SM_DIR)
Packit 857059
MOD_INCLUDE_DIR=$(PROJ_INCLUDE_DIR)
Packit 857059
MOD_LIB_DIR=$(MOD_DIR)/builtlibs$(BUILT_SUFFIX)
Packit 857059
MOD_BIN_DIR=$(PROJ_BIN_DIR)
Packit 857059
MOD_SHLIB_DIR=$(PROJ_SHLIB_DIR)
Packit 857059
MOD_SBR_DIR=$(PROJ_SBR_DIR)
Packit 857059
Packit 857059
MOD_STAGE_DIR=$(PROJ_STAGE_DIR)
Packit 857059
MOD_STAGE_INCLUDE_DIR=$(PROJ_STAGE_INCLUDE_DIR)
Packit 857059
MOD_STAGE_LIB_DIR=$(MOD_DIR)/builtlibs$(BUILT_SUFFIX)
Packit 857059
MOD_STAGE_BIN_DIR=$(PROJ_STAGE_BIN_DIR)
Packit 857059
MOD_STAGE_SHLIB_DIR=$(PROJ_STAGE_SHLIB_DIR)
Packit 857059
MOD_STAGE_SBR_DIR=$(PROJ_STAGE_SBR_DIR)
Packit 857059
MOD_STAGE_DRIVER_BIN_DIR=$(PROJ_STAGE_DRIVER_BIN_DIR)
Packit 857059
Packit 857059
MOD_BIN_SUBDIR	=
Packit 857059
MOD_DRIVER_BIN_SUBDIR	=
Packit 857059
Packit 857059
MOD_INCLUDE_SUBDIR = 
Packit 857059
#MOD_INCLUDE_DIRS	= . $(GLOBAL_INCLUDE_DIR)/$(MOD_INCLUDE_SUBDIR)
Packit 857059
MOD_INCLUDE_DIRS	= . $(MOD_DIR)/include $(IBACCESS_USER_INCLUDE_DIRS) $(TL_DIR)/BSP/bspcommon/wrs/h
Packit 857059
MOD_LIB_DIRS		= $(MOD_LIB_DIR) $(OPENIB_USER_LIB_DIRS)
Packit 857059
MODDEPLIBS		=
Packit 857059
MODLIBS		= 
Packit 857059
Packit 857059
BSCMOD			=
Packit 857059
Packit 857059
CMOD = -D_THREAD_SAFE -D_REENTRANT
Packit 857059
ifeq "$(BUILD_CONFIG)" "debug"
Packit 857059
CMOD += -DDEBUG -DVIEO_DEBUG -O0
Packit 857059
endif
Packit 857059
CCMOD  	= $(CMOD)
Packit 857059
DEPENDMOD		=
Packit 857059
LDMOD			= 
Packit 857059
LINTMOD		=
Packit 857059
MIDLMOD		=
Packit 857059
RSCMOD			=
Packit 857059
Packit 857059
#-----------------------------------------------------------------------------#
Packit 857059
# Platform specific definitions:
Packit 857059
#-----------------------------------------------------------------------------#
Packit 857059
ifeq "$(BUILD_TARGET_OS)" "VXWORKS"
Packit 857059
MOD_INCLUDE_DIRS += \
Packit 857059
	$(TL_DIR)/BSP/bspcommon/wrs/config \
Packit 857059
	$(TGT_DIR)/components/ip_net2-6.9/ipcrypto/include \
Packit 857059
	$(TGT_DIR)/components/ip_net2-6.9/ipcrypto/$(OPENSSL_VER)/include
Packit 857059
# FIXME, change uses of __VXWORKS__ to VXWORKS
Packit 857059
CMOD  	+= -DCAL_IBACCESS -D__VXWORKS__ 
Packit 857059
ifeq "$(BUILD_TARGET)" "ATOM"
Packit 857059
# FIXME: seems like -DINET6 should be set in Makerules.project
Packit 857059
CMOD  	+= -DINET6
Packit 857059
else
Packit 857059
CMOD += -I$(TL_DIR)/tmsTarget/src/ssecure/sshield/include
Packit 857059
endif
Packit 857059
ifneq "$(BUILD_CONFIG)" "debug"
Packit 857059
CMOD += -DVIEO_TRACE_DISABLED
Packit 857059
endif
Packit 857059
endif
Packit 857059
ifeq "$(BUILD_TARGET_OS)" "LINUX"
Packit 857059
# only for linux, unfortunately vxWorks headers have too many violations of this
Packit 857059
CMOD += -Wstrict-prototypes
Packit 857059
endif # LINUX
Packit 857059
ifeq "$(BUILD_TARGET_OS)" "WIN32"
Packit 857059
endif # WIN32
Packit 857059
#=============================================================================#
Packit 857059
# Include Global makerules definitions and rules
Packit 857059
include $(TL_DIR)/$(PROJ_FILE_DIR)/Makerules.project
Packit 857059
#=============================================================================#
Packit 857059
Packit 857059
#=============================================================================#
Packit 857059
## The project makerules file also contains the following basic make target
Packit 857059
## rules for simplifying application build processes:
Packit 857059
##
Packit 857059
#=============================================================================#
Packit 857059
# The following section contains a list of standard targets which will be used
Packit 857059
# by all of the makefiles.  The targets are listed in alphabetical order and
Packit 857059
# depend on the above definitions section as well as externally defined items
Packit 857059
# from the user specific makefile.
Packit 857059
#=============================================================================#
Packit 857059
# General Rules:
Packit 857059
#-----------------------------------------------------------------------------#
Packit 857059
#=============================================================================#
Packit 857059
ifeq "$(BUILD_TARGET_OS)" "VXWORKS"
Packit 857059
endif
Packit 857059
#=============================================================================#
Packit 857059
# This section contains a set of targets which override the standard ones
Packit 857059
# provided for by GNU make.
Packit 857059
#=============================================================================#
Packit 857059
# Standard Makefile Rules Overrides:
Packit 857059
#-----------------------------------------------------------------------------#
Packit 857059
#=============================================================================#
Packit 857059
Packit 857059
#=============================================================================#
Packit 857059
# Targets to make sure the initial environment is properly configured
Packit 857059
#=============================================================================#
Packit 857059
#ifndef ENVIRONMENT
Packit 857059
#check_env:
Packit 857059
#	@echo "The ENVIRONMENT environment variable must be set to be valid"
Packit 857059
#	@exit 1
Packit 857059
#else #ENVIRONMENT
Packit 857059
#check_env:
Packit 857059
#endif #ENVIRONMENT
Packit 857059
#.PHONY: check_env
Packit 857059
#=============================================================================#