From ad7d574b02c4f9aa5967b11eadeb0ec9dda1c06d Mon Sep 17 00:00:00 2001 From: Calvin Morrison Date: Sat, 1 Feb 2014 18:14:44 -0500 Subject: add help function --- Makefile | 8 ++++++-- kmer_total_count.c | 32 ++++++++++++++++---------------- 2 files changed, 22 insertions(+), 18 deletions(-) diff --git a/Makefile b/Makefile index a375c9a..bc221e9 100644 --- a/Makefile +++ b/Makefile @@ -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) { -- cgit v1.2.3