# Makefile for tunnel transport module.  This is the module that the survivor
# host executes to talk to the remote daemon (sr) on the monitored hosts
# over arbitrary transports.

# Version: $Revision: 0.7 $
# Date: $Date: 2006/10/15 15:26:04 $
#
# Copyright (c) 2002 - 2006
# The Trustees of Columbia University in the City of New York
# Academic Information Systems
# 
# License restrictions apply, see doc/license.html for details.

# Get common definitions
include ../../../Makefile.inc

# Set the paths to the source
srcdir=@srcdir@
VPATH=@srcdir@

# Where to find install
INSTALL=@INSTALL@

CCFLAGS += ${CMCCFLAGS}
LDFLAGS = ${CMLDFLAGS} ${NETLDFLAGS} ${CORELDFLAGS} ${THREADLDFLAGS}

OBJS=main.o

all: tunnel

tunnel: ${OBJS} ../../../libsrv/libsrv.a
	${CCC} -o tunnel ${OBJS} ${LDFLAGS}

install-remote:

install:
	${INSTALL} -o @INST_USER@ -g @INST_GROUP@ -m 555 tunnel \
	${DESTDIR}@prefix@/mod/transport/tunnel

clean:
	rm -f tunnel ${OBJS}

veryclean:
	rm -f *.o *~
