# Makefile - makefile for target/src/hwif/resource
#
# Copyright (c) 2010, 2016 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
# --------------------
# 01c,17jun16,l_z  include defs.drivers to correct document directory. (VXW6-5624)
# 01b,18mar10,wap  Fix double built of htbl.o
# 01a,10mar10,wap  written
#
# DESCRIPTION
# This file contains the makefile rules for building the Freescale
# P4080 soft parser assembler library.
#

TGT_DIR=$(WIND_BASE)/target

LIB_BASE_NAME=fsl_spa

EXTRA_INCLUDE=-I$(TGT_DIR)/h/

OBJS_PPC32=	fm_sp_assembler.tab.o fm_sp.o
OBJS_PPC32+=	fm_sp_private.o lex._fmsp_assembler_yy.o
OBJS_PPC32+=	dll.o htbl.o
OBJS_PPC32+=	strtoll.o strtoull.o
OBJS_PPC32+=	vxbQorIQSpAssembler.o

OBJS        = $(OBJS_COMMON) $(OBJS_$(CPU))

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

# The strtoll() and strtoull() routines are part of the C99
# spec, but we build VxWorks in a C89/C90 environment. Until
# this changes, we want to avoid poisoning the symbol name
# space with C99 stdlib function names.

CFLAGS+= -Dstrtoll=_spa_strtoll -Dstrtoull=_spa_strtoull

CC_OPTIM=$(CC_OPTIM_NORMAL)
