
# Copyright (c) 1993,1997, by Sun Microsytems, Inc.
# All rights reserved.


# Copyright (c) 1992, Sun Microsystems, Inc.  All Rights Reserved.
# Sun considers its source code as an unpublished, proprietary
# trade secret, and it is available only under strict license
# provisions.  This copyright notice is placed here only to protect
# Sun in the event the source is deemed a published work.
# Disassembly, decompilation, or other means of reducing the
# object code to human readable form is prohibited by the license
# agreement under which this code is provided to the user or
# company in possession of this copy.
# 
# RESTRICTED RIGHTS LEGEND: Use, duplication, or disclosure by the
# Government is subject to restrictions as set forth in
# subparagraph (c)(1)(ii) of the Rights in Technical Data and
# Computer Software clause at DFARS 52.227-7013 and in similar
# clauses in the FAR and NASA FAR Supplement.
# 
# These examples are provided with no warranties of any kind,
# including without limitation accuracy and usefulness, and Sun
# expressly disclaims all implied warranties of merchantability,
# fitness for a particular purpose and non-infringement. In no
# event shall Sun be liable for any damages, including without
# limitation, direct, special, indirect, or consequential damages
# arising out of, or relating to, use of these examples by customer
# or any third party. Sun is under no obligation to provide support
# to customer for this software.
#ident        "@(#)Makefile 1.8     97/04/07 SMI"
#
TOP=../..
include $(TOP)/Makefile.master

CFILES= dma.c
HEADERS= dma_io.h dma_reg.h
OBJS= dma.o

CFLAGS += -D$(INST) $(ENVCPPFLAGS1) $(ENVCPPFLAGS2) -D_KERNEL

.KEEP_STATE:

deflt:	dma

dma:	dma.o
	ld -r -o dma dma.o

dma.o:	dma.c $(HEADERS)
	cc -c -D_KERNEL -DSUNDDI $(CFLAGS) -I. -I/usr/share/src/uts/sun4 dma.c

clean:
	-@rm -f *% *.BAK $(OBJS)

lint:
	$(LINT) -D_KERNEL -x -u $(CFILES)

DDICT_FILES= ${OBJS:%.o=%.ddict}
DDICTFLAGS += -q $(K_CFLAGS) -r2.5.1

ddict: $(DDICT_FILES)
 
${DDICT_FILES}:
	@($(LHEAD) $(DDICT) $(DDICTFLAGS) $(@:%.ddict=%.c)))
