#
#  Makefile for program select.
#  This is for the select4 version.
#
#  Flags are for the SG  compiler.
#
#  Change as appropriate for your compiler/machine.
# 

CFLAGS= -O2 -I/linc
CFLAGS2= -c -O2 -I/linc

CC = cc

OBJS = select4.o gseq.o getsec.o getid.o getseq.o seqtoi.o \
getline.o idclean.o sfind.o 

select4.sgi: $(OBJS)
	$(CC) $(CFLAGS) -o select4.sgi $(OBJS) -L/libs -lgj_util
select4.o: select4.c defaults.h array.h
	$(CC) $(CFLAGS2) select4.c
gseq.o: gseq.c defaults.h array.h
	$(CC) $(CFLAGS2) gseq.c
getsec.o: getsec.c
	$(CC) $(CFLAGS2) getsec.c
getline.o: getline.c
	$(CC) $(CFLAGS2) getline.c
getid.o: getid.c
	$(CC) $(CFLAGS2) getid.c
getseq.o: getseq.c
	$(CC) $(CFLAGS2) getseq.c
seqtoi.o: seqtoi.c 
	$(CC) $(CFLAGS2) seqtoi.c
sfind.o: sfind.c
	$(CC) $(CFLAGS2) sfind.c
idclean.o: idclean.c
	$(CC) $(CFLAGS2) idclean.c


