# # Makefile for the GNU Project's gcc version 2.2.2 compiler # # CAUTION: Make changes to Makefile (not makefile), then run # "make -f Makefile depend" before running "make all". # # Set -I flag(s) to point to whichever directories contain ncbi.h and gish.h INCDIRS = -I../ncbi/include -I../gish/include # Set -L flag(s) to point to directories containing libncbi.a and libgish.a LIBDIRS = -L../gish/lib -L../ncbi/lib CC = gcc CFLAGS = -O $(INCDIRS) $(LIBDIRS) $(DEFINES) # OPTIONS = DEFINES = ${OPTIONS} LIBS = -lgish -lncbi -lm PGMS = nrdb HDRS = nrdb.h util.h SRCS = nrdb.c report.c str.c nrf.c util.c OBJS = nrdb.o report.o str.o nrf.o util.o all: $(PGMS) nrdb: nrdb.c report.c str.c nrf.c util.c $(CC) $(CFLAGS) -o $@ $@.c report.c str.c nrf.c util.c $(LIBS) clean: rm -f makefile makefile.old $(PGMS) $(OBJS) 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