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

GISHLIB = ../lib/libgish.a

SRC = aprint.c basename.c dirname.c rnd.c hsort.c \
		avl.c getopt.c vfgets.c wrap.c files.c fasta.c same.c swap.c \
		task.c runwild.c mproc.c shmutil.c mfile.c fatal.c pool.c \
		link.c link1.c vstr.c alarm.c getedit.c d2s.c \
		asnin.c

OBJ = aprint.o basename.o dirname.o rnd.o hsort.o \
		avl.o getopt.o vfgets.o wrap.o files.o fasta.o same.o swap.o \
		task.o runwild.o mproc.o shmutil.o mfile.o fatal.o pool.o \
		link.o link1.o vstr.o alarm.o getedit.o d2s.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
