diff options
author | Calvin Morrison <mutantturkey@gmail.com> | 2014-02-01 18:14:44 -0500 |
---|---|---|
committer | Calvin Morrison <mutantturkey@gmail.com> | 2014-02-01 18:14:44 -0500 |
commit | ad7d574b02c4f9aa5967b11eadeb0ec9dda1c06d (patch) | |
tree | 9bb83064e882bf4dcffea227e6854f09a163b6c5 | |
parent | d30e7317cbb5ca4222578e11e465290489b99b08 (diff) |
add help function
-rw-r--r-- | Makefile | 8 | ||||
-rw-r--r-- | kmer_total_count.c | 32 |
2 files changed, 22 insertions, 18 deletions
@@ -1,8 +1,9 @@ -VERSION=\"v0.0.1\" +VERSION=\"0.0.2\" CC = gcc CFLAGS = -O3 -s -mtune=native -Wall -DVERSION=$(VERSION) -Wextra -all: libkmer.o libkmer.so kmer_total_count kmer_counts_per_sequenc + +all: libkmer.o libkmer.so kmer_total_count kmer_counts_per_sequence libkmer.o: kmer_utils.c $(CC) -c kmer_utils.c -o libkmer.o $(CFLAGS) -fPIC @@ -15,3 +16,6 @@ kmer_counts_per_sequence: libkmer.o kmer_counts_per_sequence.c kmer_utils.h clean: rm -vf kmer_total_count kmer_counts_per_sequence libkmer.so libkmer.o + +debug: CFLAGS = -ggdb -Wall -Wextra -DVERSION=$(VERSION)\"-debug\" +debug: all diff --git a/kmer_total_count.c b/kmer_total_count.c index 3cbb252..5962de2 100644 --- a/kmer_total_count.c +++ b/kmer_total_count.c @@ -10,22 +10,22 @@ void help() { - printf("usage: kmer_total_count -i input_file -k kmer [-n] [-l] ...\n\n"); - printf("count mers in size k from a fasta file\n"); - printf("\n"); - printf(" --input -i input fasta file to count\n"); - printf(" --kmer -k size of mers to count\n"); - printf(" --nonzero -n only print non-zero values\n"); - printf(" --label -l print mer along with value\n"); - printf("\n"); - printf("Report all bugs to mutantturkey@gmail.com\n"); - printf("\n"); - printf("Copyright 2014 Calvin Morrison, Drexel University.\n"); - printf("\n"); - printf("If you are using any dna-utils tool for a publication\n"); - printf("please cite your usage:\n\n"); - printf("dna-utils. Drexel University, Philadelphia USA, 2014;\n"); - printf("software available at www.github.com/EESI/dna-utils/\n"); + printf("usage: kmer_total_count -i input_file -k kmer [-n] [-l] ...\n\n" + "count mers in size k from a fasta file\n" + "\n" + " --input -i input fasta file to count\n" + " --kmer -k size of mers to count\n" + " --nonzero -n only print non-zero values\n" + " --label -l print mer along with value\n" + "\n" + "Report all bugs to mutantturkey@gmail.com\n" + "\n" + "Copyright 2014 Calvin Morrison, Drexel University.\n" + "\n" + "If you are using any dna-utils tool for a publication\n" + "please cite your usage:\n\n" + "dna-utils. Drexel University, Philadelphia USA, 2014;\n" + "software available at www.github.com/EESI/dna-utils/\n"); } int main(int argc, char **argv) { |