##
##	Ohio Trollius
##	Copyright 1995 The Ohio State University
##
##	Function:	- mpimsg
##			- MPI buffer status command
##

DEPTH   = ../..

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

##
## local configuration
##
VPATH	= $(DEPTH)/otb/mpimsg:$(DEPTH)/share/etc
INCLUDE	= -I$(IDIR)
DEFS	=
LCFLAGS = $(INCLUDE) $(DEFS)
LDFLAGS =

##
## modules and libraries
##
LIB	= -L$(OLDIR) -lmpi -ltrillium -largs -lt $(SYSLIBS)
BIN	= mpimsg
SRC	= mpimsg.c mpiformout.c mpitr_com.c mpitr_dtype.c \
	  mpitr_dtprint.c mpitr_data.c
OBJ	= $(SRC:.c=.o)

all: $(BIN)

$(BIN): $(OBJ) $(OLDIR)/libmpi.a $(OLDIR)/libargs.a $(OLDIR)/libtrillium.a $(OLDIR)/libt.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
