##
##	Ohio Trollius
##	Copyright 1995 The Ohio State University
##
##	Function:	- tkill
##			- single node termination and cleanup utility
##

DEPTH   = ../..

##
## global configuration
##
include $(DEPTH)/Config/config

##
## local configuration
##
VPATH	= ../../tools/tkill:$(DEPTH)/share/mpi
INCLUDE	= -I$(IDIR)
DEFS	= -D$(RPI) -D$(SHM) -DRM='"$(RM)"'
LCFLAGS = $(INCLUDE) $(DEFS)
LDFLAGS = $(LIBBIND)

##
## modules and libraries
##
LIB	= -L$(OLDIR) -lmpi -ltstdio -largs -ltrillium -lt -lmpi $(SYSLIBS)
BIN	= tkill
SRC	= tkill.c rpi.mop.c
OBJ	= tkill.o rpi.mop.o


all: $(BIN)

$(BIN): $(OBJ) $(OLDIR)/libargs.a $(OLDIR)/libt.a $(OLDIR)/libmpi.a
	$(CC) $(LDFLAGS) -o $(BIN) $(OBJ) $(LIB)

install: $(OBDIR)/$(BIN)

$(OBDIR)/$(BIN): $(BIN)
	$(INSTALL) $(BIN) $(OBDIR)/$(BIN)

clean:
	$(RM) $(OBJ) $(BIN)

##
## depend:
##
include	$(DEPTH)/Config/depend

##
## automatic dependencies and rules
##
include Depends
