
#
# The files listed under MACHSRC are also used by the makefile
# in the VAX directory. If you change the location of any of
# these files you must change the pathname in the VAX makefile.
#

MACHSRC = asincos.c cosh.c exp.c exp__E.c log.c log1p.c sinh.c tanh.c

OTHERSRC = atan2.c support.c trig.c

SRCS = ${MACHSRC} ${OTHERSRC}

OBJS = asincos.o cosh.o exp.o exp__E.o log.o log1p.o sinh.o tanh.o \
       atan2.o support.o trig.o

.c.o:
####	generate additional code for profiling (-p)
	${CC} -p ${CFLAGS} -c $*.c
####	generate relocation bits (-r) 
####    & preserve local symbols except those begining with L (-X)
	-ld -X -r $*.o
	mv a.out profiled/$*.o
	${CC} ${CFLAGS} -c $*.c
####	generate relocation bits (-r) but don't preserve local symbols (-x)
	-ld -x -r $*.o
	mv a.out $*.o

all: IEEElib IEEElib_p

IEEElib IEEElib_p: ${OBJS}
	cd profiled; ar cru ../IEEElib_p ${OBJS}
	ar cru IEEElib ${OBJS}

clean:
	rm -f *.o profiled/*.o IEEElib IEEElib_p
