#
# Copyright (c) 2007 Stefan Kurtz <kurtz@zbh.uni-hamburg.de>
# Copyright (c) 2007 Center for Bioinformatics, University of Hamburg

# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.

# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

# The software is described in the following paper:

# Herold, J. and Kurtz, S. and Giegerich, R.
# Efficient Computation of Absent Words in Genomic Sequences,
# BMC Bioinformatics, accepted for publication, 2008

# If you are using the software for your research, please cite 
# this paper.

CC=gcc
LD=${CC}
WORDSIZE=64
LDFLAGS=-m${WORDSIZE}
LDLIBS=-lm -lz

# if you want to process files > 4GB, make sure that you
# use the following compiler options:
# -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 
# Also make sure that you link to a version of the gzip library which 
# was compiled with these flags.

LARGEFILEFLAGS=-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 
CFLAGS=-O3 -Wall -Werror -m${WORDSIZE} ${LARGEFILEFLAGS} -ansi -pedantic

unwords-bits:unwords-bits.o
	$(LD) $(LDFLAGS) unwords-bits.o ${LDLIBS} -o $@

clean:
	rm -f *.o unwords-bits
