#
# $Id: Makefile.in,v 2.0 1998/10/14 23:08:59 hender Exp $
#
#
#       Makefile for the PBS "mom" routine
#
# This program is confidential and proprietary to MRJ Technology Solutions
# and may not be reproduced, published or disclosed to others without
# written authorization from MRJ.
# 
# Copyright (c) 1998 MRJ Technology Solutions, Inc. All Rights Reserved.
# 
# This program is derived from prior work some of which was originally
# written as a joint project between the Numerical Aerospace Simulation
# (NAS) Systems Division of NASA Ames Research Center and the National
# Energy Research Supercomputer Center (NERSC) of Lawrence Livermore
# National Laboratory.
@MAKE_POSIX_TARGET@

#
# MOM Makefile.in
#

srcdir = @srcdir@
top_srcdir = @top_srcdir@
MK_VPATH = @srcdir@
INSTALL = @INSTALL@

@mk_head@
@mk_dirs@


INCS = -I@top_builddir@/src/include -I$(top_srcdir)/src/include -I.
CFLAGS = @CFLAGS@ $(INCS) @DEFS@

TARGET = pbs_rcp

OBJS = rcp.o replace.o util.o

#
# build special version of rcp for mom
#
all: autodepend
	@MAKE_POSIX_PLUS@@$(MAKE) build

build: $(TARGET)

install: $(TARGET)
	$(INSTALL) -d $(sbindir)
	$(INSTALL) -m 4755 $(TARGET) $(sbindir)

$(TARGET): $(OBJS)
	$(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS)


# needed for make depend

@mk_cleanup@
@mk_tail@

