###############################################################################
#
#    Makefile for directory global
#    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:36:17
# 1.8
# Exp
# plogstie
#
# Authors: Stefan Lamberts
#
# Description: Makefile for directory global
#
###############################################################################
#
# rcs_id: "Makefile,v 1.8 1994/04/28 13:36:17 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 =\
	global_admin.o\
	global_calls.o

LIBOBJ =\
	$(LIB)(global_admin.o)\
	$(LIB)(global_calls.o)

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

all: $(OBJ)

lib: $(LIBOBJ)

lint: $(LNOBJ)

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

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


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



realclean: clean
	$(RM) *~

