###############################################################################
#
#    Makefile for directory daemon
#    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:35:40
# 1.8
# Exp
# plogstie
#
# Authors: Stefan Lamberts
#
# Description: Makefile for directory daemon
#
###############################################################################
#
# rcs_id: "Makefile,v 1.8 1994/04/28 13:35:40 plogstie Exp"
#


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

CC = cc
CFLAGS = -g
CPPFLAGS =

LDFLAGS = -L$(LIBDIR)
LDLIBS = -lnx $(NXLDLIBS)

LINT = lint
LINTFLAGS =
# lint option to create .ln file
LINT_ln = -c

RM = rm -f

.SUFFIXES: .ln $(SUFFIXES)

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

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



OBJ =\
	nxdaemon.o

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

all: nxdaemon

nxdaemon: $(OBJ) $(LIBNX)
	$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $(OBJ) $(LDLIBS)

lint: $(LNOBJ)

nxdaemon.ln \
nxdaemon.o:\
		../include/sys/nxlib.h\
		../include/nxmalloc.h


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


realclean: clean
	$(RM) *~



