###############################################################################
#
#  Copyright (C) 1994 A. Bode, J. Pruyne and G. Stellner
#
#  This file is part of CoCheck
#
#  CoCheck 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.
#
#  CoChecl 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: {bode,stellner}@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
#
###############################################################################
#
# Makefile,v
# 1995/11/07 13:51:50
# 1.3
# Exp
# stellner
#
# Authors: G. Stellner
#
# Description:
#
# Makefile.aimk for lib
#
###############################################################################
#
# rcs_id: "Makefile,v 1.3 1995/11/07 13:51:50 stellner Exp"
#

###############################################################################
# DO NOT MODIFY THIS FILE
###############################################################################

# Imports:
#  PVM_ARCH   = the official pvm-name of your processor
#  ARCHCFLAGS = special cc flags
#  HASRANLIB  = 't' or 'f'
#
# Compatibility defines (usually in conf/*.def):
#  FDSETPATCH      if system includes don't have fd_set stuff
#  HASSTDLIB       if system has stdlib.h
#  NOGETDTBLSIZ    if system doesn't have getdtablesize()
#  NOREXEC         if system doesn't have rexec()
#  NOSOCKOPT       if system doesn't have setsockopt() or it doesn't work
#  NOSTRCASE       if system doesn't have strcasecmp, strncasecmp
#  NOTMPNAM        if system doesn't have tmpnam() or it's hosed
#  NOUNIXDOM       to disable use of Unix domain sockets
#  NOWAIT3         if system doesn't have wait3()
#  NOWAITPID       if system doesn't have waitpid() either
#  RSHCOMMAND=     for rsh command other than "/usr/ucb/rsh"
#  SHAREDTMP       if /tmp is shared between machines (yecch)
#  SOCKADHASLEN    if struct sockaddr has an sa_len field
#  SYSVBFUNC       if system uses memcpy() instead of bcopy(), etc.
#  SYSVSIGNAL      if system has sysV signal handling
#  SYSVSTR         if system uses strchr() instead of index()
#  UDPMAXLEN=      for alternate max udp packet size
#
# Options defines:
#  DEBUGMALLOC     to enable instrumented malloc functions (for debugging)

include      $(TOP)/config/COMMON.config
include      $(TOP)/config/$(PVM_ARCH).config

CFLAGS       = \
		$(OPTIONS) \
		-I$(INCDIR) \
		-DIMA_$(PVM_ARCH) \
		$(ARCHCFLAGS) \
		$(ARCHCPPFLAGS)
FIRSTBINARIES= \
		$(BINDIR)/rensym
BINARIES     =

$(PVM_ARCH)/%.o: %.c
	$(CC) $(CFLAGS) -c -o $@ $<

$(PVM_ARCH)/%: %.c
	$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(LDLIBS)

$(PVM_ARCH)/%: $(PVM_ARCH)/%.o
	$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(LDLIBS)

$(BINDIR)/%: $(PVM_ARCH)/%
	cp $< $@

first: $(PVM_ARCH) $(FIRSTBINARIES)

all: $(PVM_ARCH) $(BINARIES)

$(PVM_ARCH):
	- mkdir $(PVM_ARCH)

realclean:
	- rm -rf $(PVM_ARCH)

