# Makefile - makefile for target/src/scopetools
#
# modification history
# --------------------
# 01a,26mar06,c_c   created.
#
# DESCRIPTION
# This file contains the makefile rules for building the scopetools libraries
#
#*/

TGT_DIR=$(WIND_BASE)/target
TOOLS_SRC_ROOT = ../../..

LIB_BASE_NAME   = rtilib
EXTRA_DEFINE	+= 	-DPtrIntType=long
EXTRA_INCLUDE	=	-I$(TOOLS_SRC_ROOT)/rtilib/include/share \
		-I$(TOOLS_SRC_ROOT)/rtilib/include/vx
DOC_FILES=	

OBJS=	connect.o netio_common.o netio_new.o tcp.o dgram.o \
	netioGlobals.o  netioUtils.o

PKG_H	= hostLib.pkg.h netio_common.pkg.h netioGlobals.pkg.h \
		netioUtils.pkg.h dgram.pkg.h connect.pkg.h

HDR_PATH = ../../include/share/rtilib
HEADERS = $(HDR_PATH)/rti_ip.h $(HDR_PATH)/rti_tcp.h

include $(TOOLS_SRC_ROOT)/make/common_rules.mk

# Public header generation (needs to occur after inclusion of rules.library,
# otherwise it hides the default build rule).

$(HDR_PATH)/rti_ip.h : netio_common.c netioGlobals.c netio_new.c netioUtils.c \
			connect.c
	$(MAKEHEADER) -C $(MAKEHEADERPUBKEYS) -o $@ $^

$(HDR_PATH)/rti_tcp.h : tcp.c
	$(MAKEHEADER) -C $(MAKEHEADERPUBKEYS) -o $@ $^

# end of rtilib/utils/netio
