# Makefile - makefile for un/comp
#
# Copyright (c) 2003-2007 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
# --------------------
# 01k,21aug07,ebh  Remove extraneous define of _KERNEL (WIND00102055)
# 01j,24aug06,kch  Exclude netstat_uncomp.c from compilation for now.
# 01i,11oct04,p_r  removed coreip reference from comment (SPR#102446)
# 01h,26aug04,ann  added changes to select this directory only for 6.0 and
#                  beyond
# 01g,02jun04,ann  merged from /main/vdt/base6_itn5-int/2.
# 01f,24may04,ann  merged from /main/vdt/base6_itn5-int/1.
# 01e,30apr04,rp   check for sh endianness no longer required
# 01d,17feb04,pch  remove PPC32 hack, no longer needed
# 01c,05dec03,xli  add EXTRA_DEFINE
# 01b,02dec03,bwa  changed the make rules
# 01a,09oct03,bwa  written
#
# DESCRIPTION
# This file contains the makefile rules for building the AF_LOCAL/COMP library
#

TGT_DIR         = $(WIND_BASE)/target
LIB_BASE_NAME   = dsi


override EXTRA_DEFINE+=-DZ_PREFIX -D_WRS_VXWORKS_5_5 -DINCLUDE_WVNETD $(ARCH_FLAGS)

# Choose what we build for VxWorks 5.x

IS_BASE6 := $(wildcard $(TGT_DIR)/share/h/syscallApi.def)

ifneq ($(IS_BASE6),)
OBJS            = unCompLib.o uncomp_usrreq.o uncompShow.o
else
OBJS            = 
endif

DOC_FILES       = 

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