# BuildSystemHeader added automatically
# $Header: [Makefile,v 1.1 91/05/03 05:57:45 afuller Exp ]$
#CC    = ../../bin/ccom860 -DLittleEndian -X425 -X167 -Z422 -DFLOATING_PT
#AS    = ../../bin/asm860 -i386
UTOPDIR= ../../..
CHECK_ENV= $$N_CHECKENV
CFLAGS = ${N_COMPILER_FLAGS} -D${N_MODE}
CC	= ${UTOPDIR}/$$N_COMPILER -DLittleEndian -Dieee_float ${CFLAGS}
AS	= ${UTOPDIR}/$$N_ASSEMBLER ${N_ASSMBLER_FLAGS}
SUFX    = ${N_SUFFIX}
.SUFFIXES:
.SUFFIXES: .${SUFX} .s .c


SRCS = \
	cos.c    \
	sqrt.c \
	Idiv.s

OBJS = \
	cos.${SUFX}    \
	sqrt.${SUFX} \
	Idiv.${SUFX}

all: ${OBJS}
	@touch makeflag

.s.${SUFX}:
	${CC} -E $*.s | sed '/^#/d' > $*.e
	${AS} -o $*.${SUFX} $*.e
	\rm $*.e

.c.${SUFX}:
	$(CC) -c $*.c
	${AS} -o $*.${SUFX} $*.s
	-\rm $*.s

install: all

depend:
	makedepend ${SRCS} ${IFLAGS} -o'.$${SUFX}'
clean:
	-\rm ${OBJS}
# DO NOT DELETE THIS LINE -- make depend depends on it.

cos.${SUFX}: math.h
sqrt.${SUFX}: math.h /usr/include/errno.h
