#
# COPYRIGHT NOTICE
# Copyright (c) Alteon Networks, Inc. 1996 
# All rights reserved
# 
# HISTORY
# $Log: Makefile,v $
# Revision 1.1.4.14  1998/11/04  19:37:32  ted
# 	Split altdrv.c into altcfg.c, altcinit.c, and altintr.c
# 	[1998/11/04  19:36:51  ted]
#
# Revision 1.1.4.13  1998/09/02  00:03:33  hayes
# 	common Makefile for both NT and unix
# 	[1998/09/02  00:03:25  hayes]
# 
# Revision 1.1.4.12  1998/04/02  06:03:00  ted
# 	Add checksum debugging support
# 	[1998/04/02  05:55:28  ted]
# 
# Revision 1.1.4.11  1997/11/19  19:23:41  ted
# 	Support Tigon and Tigon2 in the same driver
# 	[1997/11/19  19:20:24  ted]
# 
# Revision 1.1.4.10  1997/07/25  22:59:20  ted
# 	Merge fixes from ge_0_22 and add link negotiation support
# 	[1997/07/25  22:32:36  ted]
# 
# Revision 1.1.4.9  1997/07/17  23:25:04  tibor
# 	changed TG_REV to TIGON_REV
# 	[1997/07/17  23:19:50  tibor]
# 
# Revision 1.1.4.8  1997/04/12  00:16:19  ted
# 	Fix CFILES list
# 	[1997/04/12  00:16:06  ted]
# 
# Revision 1.1.4.7  1997/04/12  00:11:11  ted
# 	Merged Sbus code, some performance enhancements
# 	[1997/04/12  00:07:14  ted]
# 
# Revision 1.1.4.6  1997/04/05  20:06:34  ted
# 	Put optimization level back to 2
# 	[1997/04/05  20:06:25  ted]
# 
# Revision 1.1.4.5  1997/04/04  22:38:16  ted
# 	Fix problems with statics following altdrv.c split
# 	[1997/04/04  22:01:09  ted]
# 
# Revision 1.1.4.4  1997/03/02  18:36:43  ted
# 	redundancy support and a few bug fixes
# 	[1997/03/02  18:25:30  ted]
# 
# Revision 1.1.4.3  1997/02/09  00:16:25  ted
# 	Add make depend stuff
# 	[1997/02/09  00:16:08  ted]
# 
# Revision 1.1.4.2  1997/02/07  23:23:04  ted
# 	Get AIX to compile
# 	[1997/02/07  23:21:30  ted]
# 
# Revision 1.1.4.1  1997/02/07  21:57:54  ted
# 	Updates for AIX/NT/new Solaris options (fast DMA)
# 	[1997/02/07  21:47:30  ted]
# 
# Revision 1.1.2.1  1996/11/21  18:01:26  ted
# 	Moved from ../unix/common and merged in winnt changes
# 	[1996/11/21  17:40:42  ted]
# 
# Revision 1.1.2.3  1996/11/20  20:04:38  ted
# 	Change INCFLAGS for new tg.h (makedepend too)
# 	[1996/11/20  19:54:18  ted]
# 
# Revision 1.1.2.2  1996/11/03  23:13:04  ted
# 	Move -O2 from CFLAGS line to the OPT_LEVEL line
# 	Move INCFLAGS into ${context} section to pick proper header files
# 	  (streams vs. bsd)
# 	[1996/11/03  23:11:03  ted]
# 
# Revision 1.1.2.1  1996/11/01  18:25:26  ted
# 	buildify Makefile
# 	[1996/10/30  22:57:45  ted]
# 
# $EndLog$
#

!IFDEF NTMAKEENV
!INCLUDE $(NTMAKEENV)\makefile.def
!ELSE

LIBRARIES	= libaltcommon.a

OPT_LEVEL= -O2

.if (${context} == "sparc_solaris")
ANSI_CC=/opt/SUNWspro/bin/cc
CFLAGS=	-D_KERNEL -v -Xa -DALT_STREAM -DALT_SYSV -DSBUS=0 -DSBUS_32=0 \
	-DTIGON_REV=3
.if defined(.CURDIR)
INCFLAGS	= -I${.CURDIR} -I${.CURDIR}/../unix/streams/common \
		-I${.CURDIR}/../../../common \
		 -I${.CURDIR}/../unix/streams/SunOS \
		-I${.CURDIR}/../../common 
.else
INCFLAGS	= -I. -I../unix/streams/common -I../../../common \
		 -I../unix/streams/SunOS -I../../common 
.endif
.elif (${context} == "i386_solaris")
ANSI_CC=/opt/SUNWspro/bin/cc
CFLAGS=	-D_KERNEL -v -Xa -DALT_STREAM -DALT_SYSV -DSBUS=0 -DSBUS_32=0 \
	-DTIGON_REV=3
.if defined(.CURDIR)
INCFLAGS	= -I${.CURDIR} -I${.CURDIR}/../unix/streams/common \
		-I${.CURDIR}/../../../common \
		 -I${.CURDIR}/../unix/streams/SunOS \
		-I${.CURDIR}/../../common 
.else
INCFLAGS	= -I. -I../unix/streams/common -I../../../common \
		 -I../unix/streams/SunOS -I../../common 
.endif
.elif (${context} == "netapp_fasware") 
ANSI_CC=gcc
CFLAGS=	-DALT_BSD -Wall -D_KERNEL -D__ntap -U__sparc -U__sun -DTIGON_REV=3
.if defined(.CURDIR)
INCFLAGS	= -I${.CURDIR} -I${.CURDIR}/../unix/bsd/common \
		-I${.CURDIR}/../../../common -I${.CURDIR}/../../common \
		-I${.CURDIR}/../unix/bsd/NAC
.else
INCFLAGS	= -I. -I../unix/bsd/common -I../../../common -I../../common \
		-I../unix/bsd/NAC
.endif
.elif (${context} == "rios_aix")
ANSI_CC=/usr/bin/xlc
CFLAGS= -DALT_BSD -g -D_KERNEL -D_ALL_SOURCE -D_POSIX_SOURCE -DTIGON_REV=3
.if defined(.CURDIR)
INCFLAGS	= -I${.CURDIR} -I${.CURDIR}/../unix/bsd/common \
		-I${.CURDIR}/../../../common -I${.CURDIR}/../../common \
		-I${.CURDIR}/../unix/bsd/AIX
.else
INCFLAGS	= -I. -I../unix/bsd/common -I../../../common -I../../common \
		-I../unix/bsd/AIX
.endif
.endif


OFILES		= alt_data.o altcfg.o altcinit.o altintr.o altftns.o \
		altred.o altrdwr.o cksum.o
CFILES		= alt_data.c altcfg.c altcinit.c altintr.c altftns.c \
		altred.c altrdwr.c cksum.c

.include <${RULES_MK}>

.include <alt.depend.mk>

!ENDIF
