From 196d56bea8897612d6ed1125589e68fd6da428a6 Mon Sep 17 00:00:00 2001 From: Calvin Morrison Date: Wed, 2 Oct 2013 18:01:20 -0400 Subject: add so support for makfile --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index ddebaf8..a009094 100644 --- a/Makefile +++ b/Makefile @@ -2,12 +2,14 @@ VERSION=\"v0.0.1\" CC = gcc CFLAGS = -O3 -s -mtune=native -Wall -lm -DVERSION=$(VERSION) -Wextra -all: kmer_total_count kmer_frequency_per_sequence +all: libkmer.so kmer_total_count kmer_frequency_per_sequence +libkmer.so: + $(CC) kmer_utils.c -o libkmer.so $(CFLAGS) -shared -FPIC kmer_total_count: $(CC) kmer_total_count.c kmer_utils.c -o kmer_total_count $(CFLAGS) kmer_frequency_per_sequence: $(CC) kmer_frequency_per_sequence.c kmer_utils.c -o kmer_frequency_per_sequence $(CFLAGS) clean: - rm -vf kmer_total_count kmer_frequency_per_sequence + rm -vf kmer_total_count kmer_frequency_per_sequence libkmer.so -- cgit v1.2.3