#
# BSD UNIX users:  check the SRC and OBJ file lists below.
#
CFLAGS = $(CCOPT) ${INCLUDE} -c

GISHLIB = ../lib/libgish.a

SRC = fct_gcd.c fct_fact.c fct_gamm.c fct_nr.c fct_ilog.c \
	fct_expm.c fct_log1.c fct_ntk.c fct_lim.c

OBJ = fct_gcd.o fct_fact.o fct_gamm.o fct_nr.o fct_ilog.o \
	fct_expm.o fct_log1.o fct_ntk.o fct_lim.o

all: $(OBJ)
	ar $(ARFLAGS) $(GISHLIB) $(OBJ)

clean:
	rm -f makefile makefile.old $(OBJ)

depend: makefile

makefile: Makefile $(SRC)
	- mv -f makefile makefile.old
	@ sed -n -e '1,/[D]O NOT MAKE ANY CHANGES/p' Makefile > makefile
	@ echo "" >> makefile
	@ $(CC) ${MKDEPFLAG} ${INCLUDE} ${SRC} >> makefile

#DO NOT MAKE ANY CHANGES ON OR AFTER THIS LINE
