#
# COPYRIGHT NOTICE
# Copyright (c) Alteon Networks, Inc. 1996
# All rights reserved
#
# HISTORY
# $Log: Makefile,v $
# Revision 1.5.5.17  1998/09/29  21:57:27  ted
# 	add NM so new utility building works correctly
# 	[1998/09/29  21:36:31  ted]
#
# Revision 1.5.5.16  1998/06/02  22:17:08  ted
# 	Change LIBFLAGS to LIBDIRS for new build stuff
# 	[1998/06/02  22:13:34  ted]
# 
# Revision 1.5.5.15  1997/12/02  03:25:56  hayes
# 	remove altphy
# 	[1997/12/02  03:25:45  hayes]
# 
# Revision 1.5.5.14  1997/12/02  02:04:10  tibor
# 	updated Phy test
# 	[1997/12/02  01:54:38  tibor]
# 
# Revision 1.5.5.13  1997/11/19  19:24:05  ted
# 	Support Tigon and Tigon2 in the same driver
# 	[1997/11/19  19:21:25  ted]
# 
# Revision 1.5.5.12  1997/10/21  00:13:38  ted
# 	Bring up to release 2.0 functionality
# 	[1997/10/20  23:01:48  ted]
# 
# Revision 1.5.14.1  1997/10/16  17:32:23  ted
# 	Generification, initial ODI driver, some bug fixes, preparation for use of MEM WRITE INVALIDATE
# 	[1997/10/16  17:28:58  ted]
# 
# Revision 1.5.5.11  1997/07/25  23:00:10  ted
# 	Merge fixes from ge_0_22 and add link negotiation support
# 	[1997/07/25  22:34:04  ted]
# 
# Revision 1.5.5.10  1997/07/17  23:25:47  tibor
# 	changed TG_REV to TIGON_REV
# 	[1997/07/17  23:20:06  tibor]
# 
# Revision 1.5.5.9  1997/05/21  17:24:28  suresh
# 	fix build-depend problems on AIX
# 	[1997/05/21  17:23:39  suresh]
# 
# Revision 1.5.5.8  1997/04/20  23:34:28  suresh
# 	ttcp for AIX
# 	[1997/04/20  23:34:02  suresh]
# 
# Revision 1.5.5.7  1997/04/04  22:38:41  ted
# 	new function to test ttp page ioctls
# 	[1997/04/04  22:18:19  ted]
# 
# Revision 1.5.5.6  1997/03/19  04:57:30  suresh
# 	AIX - adjust contexts and change from gcc to xlc compiler
# 	[1997/03/19  04:38:09  suresh]
# 
# Revision 1.5.5.5  1997/03/02  18:37:04  ted
# 	redundancy support and a few bug fixes
# 	[1997/03/02  18:26:13  ted]
# 
# Revision 1.5.5.4  1997/02/09  00:19:43  ted
# 	add make depend stuff
# 	[1997/02/09  00:19:35  ted]
# 
# Revision 1.5.5.3  1997/02/09  00:07:13  ted
# 	testing make depend stuff
# 	[1997/02/09  00:06:50  ted]
# 
# Revision 1.5.5.2  1997/02/07  23:23:20  ted
# 	Get AIX to compile
# 	[1997/02/07  23:22:23  ted]
# 
# Revision 1.5.5.1  1997/02/07  21:58:46  ted
# 	Updates for AIX/NT/new Solaris options (fast DMA)
# 	[1997/02/07  21:50:39  ted]
# 
# Revision 1.5.2.3  1996/11/24  04:02:44  ted
# 	Update makedepend to fix problems left from pre-bsubmit file structure
# 	[1996/11/24  04:02:21  ted]
# 
# Revision 1.5.2.2  1996/11/20  20:04:53  ted
# 	Change INCFLAGS for new tg.h (makedepend too)
# 	[1996/11/20  19:58:50  ted]
# 
# Revision 1.5.2.1  1996/11/01  18:25:54  ted
# 	buildify Makefile
# 	[1996/10/30  23:07:23  ted]
# 
# $EndLog$
#

.if (${context} == "sparc_solaris") || (${context} == "i386_solaris")
APPS=	altopen altclose alttb altdb altstat altfw altioc alttune altredund altpage
TESTS=	tsock ttcp blast mcast
.elif (${context} == "rios_aix")
APPS=   altopen altclose alttb altdb altstat altioc alttune altredund
TESTS = ttcp tsock
.endif

PROGRAMS= ${APPS} ${TESTS}

.if (${context} == "sparc_solaris") || (${context} == "i386_solaris")
ANSI_CC= /usr/local/bin/gcc
ANSI_LD= /usr/local/bin/gcc
NM= /usr/local/bin/nm
OPT_LEVEL=-O3 -g
CFLAGS=	-Wall -DALT_STREAM -DALT_SYSV -DTIGON_REV=3
LIBDIRS=-L/usr/lib
LIBS            = -lsocket -lnsl
.if defined(.CURDIR)
INCFLAGS= -I${.CURDIR} -I${.CURDIR}/../../../common \
	-I${.CURDIR}/../../streams/common \
	-I${.CURDIR}/../../../../../common -I${.CURDIR}/../../../../common \
	-I${.CURDIR}/../../streams/SunOS
.else
INCFLAGS= -I. -I../../../common -I../../streams/common \
	-I../../../../../common -I../../../../common -I../../streams/SunOS
.endif
.elif (${context} == "rios_aix")
ANSI_CC= /usr/bin/xlc
CFLAGS=	-DALT_BSD -g  -DPOSIX_SOURCE -DTIGON_REV=3
.if defined(.CURDIR)
INCFLAGS= -I${.CURDIR} -I${.CURDIR}/../../../common \
	-I${.CURDIR}/../../bsd/common \
	-I${.CURDIR}/../../../../../common -I${.CURDIR}/../../../../common \
	-I${.CURDIR}/../../bsd/AIX
.else
INCFLAGS= -I. -I../../../common -I../../bsd/common \
	-I../../../../../common -I../../../../common -I../../bsd/AIX
.endif
.endif 

CFILES=	altopen.c altclose.c alttb.c altdb.c altstat.c altfw.c altioc.c \
	alttune.c tsock.c ttcp.c blast.c altredund.c altpage.c mcast.c

.include <${RULES_MK}>

.include <alt.depend.mk>
