# Makefile - makefile for target/src/flashsim
#
# Copyright (c) 2012, 2013 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
# --------------------
# 01b,19nov13,ywu  WIND00444456 remove APIs wrongly published.
# 01a,12apr12,jxu  written
#
# DESCRIPTION
# This file contains the makefile rules for building flash simulator library
#
#*/

TGT_DIR=$(WIND_BASE)/target

LIB_BASE_NAME	= fsim

OBJS=	fsimLib.o fsimChip.o fsimMtd.o fsimTffs.o

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

# work around SPARC diab compiler bug -md

ifeq ($(TOOL), diab)
 ifeq ($(CPU), SIMSPARCSOLARIS)
  ADDED_CFLAGS = -Xkill-reorder=0x8
 endif
endif
