|
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 opasadb/route_tools
|
|
Packit |
857059 |
|
|
Packit |
857059 |
# Include Make Control Settings
|
|
Packit |
857059 |
include $(TL_DIR)/$(PROJ_FILE_DIR)/Makesettings.project
|
|
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 = $(BUILDDIR)/opa_osd_exercise$(EXE_SUFFIX)
|
|
Packit |
857059 |
# list of sub directories to build
|
|
Packit |
857059 |
DIRS =
|
|
Packit |
857059 |
# C files (.c)
|
|
Packit |
857059 |
CFILES = \
|
|
Packit |
857059 |
mydumppath.c \
|
|
Packit |
857059 |
opa_osd_exercise.c \
|
|
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)
|
|
Packit |
857059 |
# all object files
|
|
Packit |
857059 |
OBJECTS = $(CFILES:.c=$(OBJ_SUFFIX)) $(CCFILES:.cpp=$(OBJ_SUFFIX)) \
|
|
Packit |
857059 |
$(LFILES:.lex=$(OBJ_SUFFIX)) \
|
|
Packit |
857059 |
# Add more object files here
|
|
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 |
SHLIB_VERSION =
|
|
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 |
# User defined C flags for compiling
|
|
Packit |
857059 |
# User defined C++ flags for compiling
|
|
Packit |
857059 |
#CCLOCAL =
|
|
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 |
# User include directories to search for C/C++ headers
|
|
Packit |
857059 |
LOCAL_INCLUDE_DIRS = ..
|
|
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 |
# User libraries to include in dependencies
|
|
Packit |
857059 |
LOCALDEPLIBS = IbPrint $(IBACCESS_USER_LIBS) opamgt-priv
|
|
Packit |
857059 |
# User libraries to use when linking (in addition to LOCALDEPLIBS)
|
|
Packit |
857059 |
# opasadb is a shared library, not needed in LOCALDEPLIBS
|
|
Packit |
857059 |
LOCALLIBS = $(OPENIB_USER_LIBS) opasadb rt
|
|
Packit |
857059 |
# User library directories for libpaths
|
|
Packit |
857059 |
LOCAL_LIB_DIRS = $(OPENIB_USER_LIB_DIRS) $(IBACCESS_USER_LIB_DIRS)
|
|
Packit |
857059 |
|
|
Packit |
857059 |
CLOCAL = $(CPIE)
|
|
Packit |
857059 |
|
|
Packit |
857059 |
# Include Make Rules definitions and rules
|
|
Packit |
857059 |
include $(TL_DIR)/IbaTools/Makerules.module
|
|
Packit |
857059 |
|
|
Packit |
857059 |
#=============================================================================#
|
|
Packit |
857059 |
# Overrides:
|
|
Packit |
857059 |
#-----------------------------------------------------------------------------#
|
|
Packit |
857059 |
# C++ optimization flags, default lets build config decide
|
|
Packit |
857059 |
#CCOPT =
|
|
Packit |
857059 |
# C optimization flags, default lets build config decide
|
|
Packit Service |
d78461 |
COPT ?= -g -D_GNU_SOURCE -Wall -fPIE
|
|
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 |
$(VS)$(STAGE_INSTALL) $(STAGE_INSTALL_DIR_OPT) $(PROJ_STAGE_OPA_SA_DB_DIR) $(EXECUTABLE) opa_osd_exercise_test.pl
|
|
Packit |
857059 |
|
|
Packit |
857059 |
# Unit test execution
|
|
Packit |
857059 |
#include $(TL_DIR)/Makerules/Maketargets.runtest
|
|
Packit |
857059 |
|
|
Packit |
857059 |
#=============================================================================#
|
|
Packit |
857059 |
|
|
Packit |
857059 |
#=============================================================================#
|
|
Packit |
857059 |
# DO NOT DELETE THIS LINE -- make depend depends on it.
|
|
Packit |
857059 |
#=============================================================================#
|