###############################################################################
#
#    Makefile directory main
#    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
# 1995/02/09 10:53:33
# 1.8
# Exp
# lamberts
#
# Authors: Stefan Lamberts
#
# Description: Makefile directory main
#
###############################################################################
#
# rcs_id: "Makefile,v 1.8 1995/02/09 10:53:33 lamberts Exp"
#


# Enable this macro for C++ support
# CPLUSPLUS = YES

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

CC = cc
CFLAGS = -g
CPPFLAGS =
CXX = CC
CXXFLAGS = -g

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

RM = rm -f

.SUFFIXES: .ln .C $(SUFFIXES)

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

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

.C.o:
	$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $<

LIB = libnx.a

OBJ = main_lnx.o main_nx.o

C++OBJ = cxx_main_lnx.o cxx_main_nx.o

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

all: $(OBJ) C++OBJ_$(CPLUSPLUS)

# .DEFAULT will be executed if C++ is not enabled.
# This is valid for any target which is not explicitly specified
# this includes C++OBJ_* where * is != YES
.DEFAULT:
	@echo -n

C++OBJ_YES: $(C++OBJ)

lint: $(LNOBJ)

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



realclean: clean
	$(RM) *~

