###############################################################################
#
#    Makefile directory remote
#    Copyright (C) 1993 A. Bode, S. Lamberts, T. Ludwig, G. Stellner
#
#    This file is part of NXLIB (Paragon(TM) message passing on workstations)
#
#    NXLIB is free software; you can redistribute it and/or
#    modify it under the terms of the GNU Library General Public
#    License as published by the Free Software Foundation; either
#    version 2 of the License, or (at your option) any later version.
#
#    NXLIB is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
#    Library General Public License for more details.
#
#    You should have received a copy of the GNU Library General Public
#    License along with this library; if not, write to the Free
#    Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
#    Contact to the authors:
#
#    electronic mail: nxlib@informatik.tu-muenchen.de
#
#    paper mail:      Prof. Dr. A. Bode
#                     Lehrstuhl f"ur Rechnertechnik und Rechnerorganisation
#                     Institut f"ur Informatik
#                     Technische Universit"at M"unchen
#                     80290 M"unchen
#                     Germany
#
#    Paragon(TM) is a trademark of Intel Corporation.
#
###############################################################################
#
# Makefile,v
# 1994/04/28 13:37:24
# 1.10
# Exp
# plogstie
#
# Authors:
#
# Description:
#
###############################################################################
#
# rcs_id: "Makefile,v 1.10 1994/04/28 13:37:24 plogstie Exp"
#


# The shell which is used by the makefile
SHELL = /bin/sh

CC = cc
CFLAGS = -g
CPPFLAGS =

AR = ar
ARFLAGS = rv

LINT = lint
LINTFLAGS = -a -b -c -h -x
# lint option to create .ln file
LINT_ln = -i

RM = rm -f

.SUFFIXES: .ln $(SUFFIXES)

.c.o:
	$(CC) $(CFLAGS) $(CPPFLAGS) -c $<

.c.ln:
	$(LINT) $(LINTFLAGS) $(CPPFLAGS) $(LINT_ln) $<

.c.a:
	$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $% $<
	$(AR) $(ARFLAGS) $@ $%
	$(RM) $%


LIB = libnx.a

OBJ =\
	remote_recv.o\
	remote_send.o\
	remote_sig.o\
	remote_close.o

LIBOBJ =\
	$(LIB)(remote_recv.o)\
	$(LIB)(remote_send.o)\
	$(LIB)(remote_sig.o)\
	$(LIB)(remote_close.o)

LNOBJ =	$(OBJ:.o=.ln)

all: $(OBJ)

lib: $(LIBOBJ)
	
lint: $(LNOBJ)

remote_close.ln \
remote_close.o \
$(LIB)(remote_close.o):\
		../include/sys/nxlib.h\
		../include/sys/nxerrno.h

remote_recv.ln \
remote_recv.o \
$(LIB)(remote_recv.o):\
		../include/sys/nxlib.h\
		../include/nxmalloc.h

remote_send.ln \
remote_send.o \
$(LIB)(remote_send.o):\
		../include/sys/nxlib.h

remote_sig.ln \
remote_sig.o \
$(LIB)(remote_sig.o):\
		../include/sys/nxlib.h\
		../include/sys/nxerrno.h\
		../include/nxmalloc.h

clean:
	$(RM) *.o *.ln



realclean: clean
	$(RM) *~

