CC = @CC@ CFLAGS= @CFLAGS@ LDFLAGS= @LDFLAGS@ LOADLIBES= @LIBS@ CPPFLAGS = @CPPFLAGS@ VERSION=@VERSION@ ARCHITECTURE=@ARCHITECTURE@ # PREFIXDIR is the "top level" directory in which to place the # installed gene editor. # By default things will be installed in the following subdirectories # of PREFIXDIR: PREFIXDIR/bin and PREFIXDIR/lib/ale. PREFIXDIR=@prefix@ # Where to put data files that ale uses LIBDIR=${PREFIXDIR}/lib/ale/${VERSION} # Where to put architecture-specific files, like utility executables ARCHDIR=${LIBDIR}/${ARCHITECTURE} SOURCES = tabl-gb.c gb-tabl.c \ gdbm.c gdbmgenes.h \ embl-tabl.c tabl-embl.c \ fasta-tabl.c tabl-fasta.c \ phylip-tabl.c \ lenstring.c lenstring.h \ hash.h hash.c \ xmalloc.c xmalloc.h \ getopt.c getopt1.c getopt.h \ careful.c careful.h \ ring.h # The configure script sets this to 'gdbm' if the gdbm libraries are # installed, or to the empty string otherwise. This means that we'll # build gdbm on systems that have the library, and just omit it # otherwise. GDBM_EXEC = @GDBM_EXEC@ EXECS = tabl-gb gb-tabl \ ${GDBM_EXEC} \ embl-tabl tabl-embl \ fasta-tabl tabl-fasta \ phylip-tabl all: ${EXECS} TABL_GB_OBJS = tabl-gb.o careful.o tabl-gb: ${TABL_GB_OBJS} ${CC} ${CFLAGS} ${TABL_GB_OBJS} ${LOADLIBES} -o tabl-gb tabl-gb.o: tabl-gb.c careful.h GB_TABL_OBJS = gb-tabl.o lenstring.o xmalloc.o hash.o careful.o gb-tabl: ${GB_TABL_OBJS} ${CC} ${CFLAGS} ${GB_TABL_OBJS} ${LOADLIBES} -o gb-tabl gb-tabl.o: gb-tabl.c lenstring.h careful.h GDBM_OBJS = gdbm.o getopt.o getopt1.o xmalloc.o lenstring.o hash.o careful.o gdbm: ${GDBM_OBJS} ${CC} ${CFLAGS} ${LDFLAGS} ${GDBM_OBJS} ${LOADLIBES} -o gdbm gdbm.o: gdbm.c ring.h getopt.h xmalloc.h lenstring.h hash.h gdbmgenes.h \ careful.h Makefile ${CC} ${CFLAGS} ${CPPFLAGS} -DVERSION='"${VERSION}"' -c gdbm.c EMBL_TABL_OBJS = embl-tabl.o lenstring.o xmalloc.o hash.o careful.o embl-tabl: ${EMBL_TABL_OBJS} ${CC} ${CFLAGS} ${EMBL_TABL_OBJS} ${LOADLIBES} -o embl-tabl embl-tabl.o: embl-tabl.c xmalloc.h lenstring.h hash.h careful.h TABL_EMBL_OBJS = tabl-embl.o lenstring.o xmalloc.o careful.o tabl-embl: ${TABL_EMBL_OBJS} ${CC} ${CFLAGS} ${TABL_EMBL_OBJS} ${LOADLIBES} -o tabl-embl tabl-embl.o: tabl-embl.c xmalloc.h lenstring.h careful.h FASTA_TABL_OBJS = fasta-tabl.o lenstring.o xmalloc.o hash.o careful.o fasta-tabl: ${FASTA_TABL_OBJS} ${CC} ${CFLAGS} ${FASTA_TABL_OBJS} ${LOADLIBES} -o fasta-tabl fasta-tabl.o: fasta-tabl.c xmalloc.h lenstring.h hash.h careful.h TABL_FASTA_OBJS = tabl-fasta.o lenstring.o xmalloc.o careful.o tabl-fasta: ${TABL_FASTA_OBJS} ${CC} ${CFLAGS} ${TABL_FASTA_OBJS} ${LOADLIBES} -o tabl-fasta tabl-fasta.o: tabl-fasta.c xmalloc.h lenstring.h careful.h PHYLIP_TABL_OBJS = phylip-tabl.o getopt.o getopt1.o xmalloc.o lenstring.o \ hash.o careful.o phylip-tabl: ${PHYLIP_TABL_OBJS} ${CC} ${CFLAGS} ${PHYLIP_TABL_OBJS} ${LOADLIBES} -o phylip-tabl phylip-tabl.o: phylip-tabl.c xmalloc.h getopt.h lenstring.h hash.h careful.o \ Makefile ${CC} ${CFLAGS} -DVERSION='"${VERSION}"' -c phylip-tabl.c lenstring.o: lenstring.c lenstring.h xmalloc.o: xmalloc.c xmalloc.h hash.o: hash.c hash.h xmalloc.h getopt.o: getopt.c getopt.h getopt1.o: getopt1.c careful.o: careful.c careful.h tags TAGS: ${SOURCES} Makefile etags ${SOURCES} clean: rm -f ${EXECS} *.o install: all @echo "Installing alignment readers and writers..." [ -d ${ARCHDIR} ] || mkdir -p ${ARCHDIR} cp ${EXECS} ${ARCHDIR} uninstall: @echo "Uninstalling alignment readers and writers..." (cd ${ARCHDIR}; rm ${EXECS}) ### This target is called by the top-level Makefile to create and ### populate the readers subdirectory of a distribution. DISTDIR is the ### name that subdirectory should have. dist-dir: mkdir ${DISTDIR} ln .gdbinit Makefile.in ${DISTDIR} ln ${SOURCES} ${DISTDIR} # Local Variables: # version-control: never # End: