#
# Makefile for fwdl
#
# Copyright 1997 Kenneth W. Preslan <kpreslan@lcse.umn.edu>
#           1998-1999 Grant M. Erickson <gerickson@brocade.com>
#
# University of Minnesota
# Department of Electrical and Computer Engineering
#
# Brocade Communications Systems, Inc.
#
#    This program is free software; you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation; either version 2 of the License, or
#    (at your option) any later version.
#  
#    This program 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 General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with this program; if not, write to the Free Software
#    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
#
#

APP		= fwdl

OPTIMIZER	= -O2

# Tweak these as necessary for your local environment

COMPILE_LINUX	= g++ $(OPTIMIZER)
COMPILE_SGI	= CC -n32 -mips3 $(OPTIMIZER)
COMPILE_SUN	= g++ $(OPTIMIZER)

EXTRA_DEFINES	= -DDEBUG

RM		= rm -f


linux:	fwdl.C fwdl-linux.c
	$(COMPILE_LINUX) -o $(APP) -Dlinux $(EXTRA_DEFINES) fwdl.C fwdl-linux.c

prisa:  fwdl.C fwdl-prisa.C
	$(COMPILE_SGI) -o $(APP) -Dsgi $(EXTRA_DEFINES) fwdl.C fwdl-prisa.C \
	-lfcp

sun:	fwdl.C fwdl-sun.C
	$(COMPILE_SUN) -o $(APP) -Dsun $(EXTRA_DEFINES) fwdl.C fwdl-sun.C

clean::
	$(RM) $(APP)
	$(RM) *.o core ,* *~ *.a .emacs_* tags TAGS make.log MakeOut "#"*
