#*************************************************************************
# Copyright (c) 2002 The University of Chicago, as Operator of Argonne
#     National Laboratory.
# Copyright (c) 2002 The Regents of the University of California, as
#     Operator of Los Alamos National Laboratory.
# EPICS BASE Versions 3.13.7
# and higher are distributed subject to a Software License Agreement found
# in file LICENSE that is included with this distribution. 
#*************************************************************************
#	Makefile.Host for base/src/util
#

TOP = ../../..
include $(TOP)/config/CONFIG_BASE

#	default Unix needs lib m, every system needs libs ca & Com:
SYS_PROD_LIBS_DEFAULT := m
SYS_PROD_LIBS_WIN32   := -nil-
PROD_LIBS         := ca Com
#
# Added winmm user32 for the non-dll build
#
SYS_PROD_LIBS_WIN32 := ws2_32 advapi32 user32
PROD_DEFAULT := ca_test iocLogServer startCArepeater
PROD_WIN32   := ca_test iocLogServer

ca_test_SRCS=ca_test.c
iocLogServer_SRCS=iocLogServer.c
startCArepeater_SRCS=startCArepeater.c

ifeq ($(T_A),solaris)
SCRIPTS := S99logServer S99caRepeater 
endif

include $(TOP)/config/RULES.Host
 
S99%: ../rc2.%
	@/usr/bin/sed -e s%:EPICS:%`chdir $(TOP); /usr/bin/pwd`% \
		-e s%:INSTALL_BIN:%`chdir $(INSTALL_BIN); /usr/bin/pwd`% \
		$< >$@

#	EOF Makefile.Host for base/src/util
