aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCalvin Morrison <mutantturkey@gmail.com>2013-10-02 18:01:20 -0400
committerCalvin Morrison <mutantturkey@gmail.com>2013-10-02 18:01:20 -0400
commit196d56bea8897612d6ed1125589e68fd6da428a6 (patch)
tree32318cb78300cc6364c2aba5ed8a74cf77bad76d /Makefile
parent3d5ab03f760814e5e6bb6ac54e29650bc1fe6153 (diff)
add so support for makfile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
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