# BuildSystemHeader added automatically
# $Header: [Makefile,v 1.1 91/05/03 09:22:49 afuller Exp ]$
CC   	= $$N_TOOL_COMPILER
IFLAGS	= -I$$N_INCLUDE -I$$N_TINCLUDE
DEBUG	= 
MODE 	= -D$$N_MODE
CFLAGS	= $$N_TOOL_COMPILER_FLAGS ${MODE} ${DEBUG} ${IFLAGS}
MK_LIB	= $$N_TAR
LIB  	= dma.${SUFX}.a
INST	= $$N_TINSTALL
SUFX    = kmax
.SUFFIXES:
.SUFFIXES: .${SUFX} .asm .c


CFILES = \
	DMAHandler.c

ASMFILES=

SRCS	= ${CFILES} ${ASMFILES}

OBJS  = \
	DMAHandler.${SUFX}

.c.${SUFX}:
	${CC} -c ${CFLAGS} $*.c -o $*.${SUFX}

all:: ${LIB}
	@echo "${LIB} ready"

${LIB}: ${OBJS}
	${MK_LIB} ${LIB} ${OBJS}
	${INST} ${LIB}

install isntall: all

debug:
	make "DEBUG=-DDEBUG" "SUFX=${SUFX}"

depend:
	makedepend ${SRCS} ${IFLAGS} -o'.$${SUFX}'

clean:
	\rm -f ${OBJS} ${LIB} 

lint:
	lint ${CFLAGS} ${IFLAGS} ${SRCS} > linterr

# DO NOT DELETE THIS LINE -- make depend depends on it.
