##
##	Ohio Trollius
##	Copyright 1995 The Ohio State University
##
##	Function:	- lamclean
##			- application cleanup command
##

DEPTH   = ../..

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

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

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


all: $(BIN)

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

install: $(OBDIR)/$(BIN) $(OBDIR)/$(SBIN)

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

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

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

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