# Makefile - makefile for target/src/demo/smp/phil
#
# Copyright (c) 2006, 2008 Wind River Systems, Inc.
#
# The right to copy, distribute, modify or otherwise make use
# of this software may be licensed only pursuant to the terms
# of an applicable Wind River license agreement.

# modification history
# --------------------
# 01g,05aug09,h_l  make phil be part of smpDemo
# 01f,20may09,mze  putting objs in test directory
# 01e,27aug08,mze  change TOOL to TOOL_SPECIFIC_DIR
# 01d,07jul08,jpb  Changed SMP conditional.
# 01c,18mar08,p_r  disable archive build
# 01b,14feb08,kk   updated OBJ listing, disable SDA since phil.o will be loaded
# 01a,29nov06,lei  created 
#
# DESCRIPTION
# This file contains the makefile rules for generating the philosopher demo. 
#
#*/

TGT_DIR=$(WIND_BASE)/target

#LIBDIRNAME = test/obj$(CPU)$(TOOL_SPECIFIC_DIR)test
#LIB_BASE_NAME = $(CPU)$(TOOL_SPECIFIC_DIR)test
LIB_BASE_NAME = smpdemo

# Including defs.library to see if _WRS_CONFIG_SMP is defined.
# It must be after LIB_BASE_NAME
include $(TGT_DIR)/h/make/defs.library


DOC_FILES = phil.c   


# the LIBXXX macros are needed to force the phil.o to build.

ifdef _WRS_CONFIG_SMP
OBJS = phil.o
else
OBJS =
endif

SDA_DISABLE = TRUE
EXTRA_DEFINE = 


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

# 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
