# # Makefile for the Experimental GENINFO(R) BLAST Network Service # # W. Gish # CC = cc CCOPTS = -O # INCDIRS points to directory containing ncbi.h and other headers # contained in the NCBI coretools INCDIRS = -I/usr/ncbi/include LIBDIRS = -L/usr/ncbi/lib # A longer WAITCONNECT time than the default (5 seconds) should be used # at many remote sites, e.g. 30 seconds. DEFINES = -DWAITCONNECT=30 CFLAGS = $(CCOPTS) $(INCDIRS) $(LIBDIRS) $(DEFINES) LINKS = blastp.remote blastn.remote blastx.remote tblastn.remote \ tblastx.remote blast3.remote EXENAME = blast.client BINS = ${EXENAME} $(LINKS) SRCS = blast.c HDRS = blastsrv.h OBJS = blast.o JUNK = blast.1ps blast3.1ps DOCS = blast.1 blast3.1 blast.1ps blast3.1ps TARFILES = COPYRIGHT README INSTALL Makefile ${EXENAME} ${HDRS} ${SRCS} ${DOCS} USERDIST = CRN README INSTALL ${EXENAME} $(LINKS) all: @ echo "Specify one of the following targets: solaris, irix, linux, or unix." @ exit 0 # blast.client == the BLAST network service client program solaris: blast.c $(CC) $(CFLAGS) -mt -o ${EXENAME} blast.c -lgish -lncbi -lnsl -lsocket irix: blast.c $(CC) $(CFLAGS) -o $(EXENAME) blast.c -lgish -lncbi -lsun linux: blast.c $(CC) $(CFLAGS) -o $(EXENAME) blast.c -lgish -lncbi unix: blast.c $(CC) $(CFLAGS) -o $(EXENAME) blast.c -lgish -lncbi # Establish soft links to the actual executable file ${LINKS}: blast.client - ln -s blast.client $@ doc: ${DOCS} blast.1ps: blast.1 - /bin/rm -f blast.1ps psroff -t -man blast.1 > blast.1ps blast3.1ps: blast3.1 - /bin/rm -f blast3.1ps psroff -t -man blast3.1 > blast3.1ps clean: /bin/rm -f makefile makefile.old $(BINS) $(LINKS) $(OBJS) ${JUNK} depend: makefile makefile: Makefile $(HDRS) $(SRCS) - mv -f makefile makefile.old @ sed -n -e '1,/[D]O NOT MAKE ANY CHANGES/p' Makefile > makefile @ echo "" >> makefile @ $(CC) $(CFLAGS) -M $(SRCS) >> makefile #DO NOT MAKE ANY CHANGES ON OR BELOW THIS LINE