# Makefile - makefile for TIPC Inventory Simulation
#
# Copyright (c) 2007 Wind River Systems, Inc.
# All rights reserved.
# 
# Redistribution and use in source and binary forms, with or without 
# modification, are permitted provided that the following conditions are met:
# 
# Redistributions of source code must retain the above copyright notice, 
# this list of conditions and the following disclaimer. 
# Redistributions in binary form must reproduce the above copyright notice, 
# this list of conditions and the following disclaimer in the documentation 
# and/or other materials provided with the distribution. 
# Neither the names of the copyright holders nor the names of its contributors 
# may be used to endorse or promote products derived from this software 
# without specific prior written permission.
# 
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 
# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#  
#
# modification history
# --------------------
# 01a,25jul07,mze  written
#
# DESCRIPTION
# This file contains the makefile rules for building the TIPC IS.
#

# specify name and location of TIPC inventory simulation library

TGT_DIR = $(WIND_BASE)/target
LIB_BASE_NAME = tipcIS

# 'make' must search this directory to find the public TIPC .h files

EXTRA_INCLUDE += -I. -I$(WIND_BASE)/target/h/tipc  

OBJS =  tipcInventorySim_VxWorks.o  



# specify list of files from which man pages are generated

DOC_FILES =   

# use standard rules for building a library (except as noted below)

include $(TGT_DIR)/h/make/rules.library

# override some variable definitions
# - force maximum optimization to ensure inlining occurs
# - suppress compiler warnings associated with TIPC core files
#   if they aren't really problems
#   GNU:
#   - no warning suppression performed at this time
#   DIAB:
#   - allow void pointer arithmetic
#     [ie. (void *) - (void *) treated same as (char *) - (char *)]
#   - suppress warning when compiler can't do requested inlining

ifeq ($(TOOL_FAMILY),gnu)
	CC_OPTIM = -O3
else 
        CC_OPTIM = -O -XO
endif

# The normal end when using makeLibrary is to create a lib, but here, we
# don't need lib creation. The following settings prevent lib creation.

AR=echo
RANLIB=echo
