aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCalvin Morrison <mutantturkey@gmail.com>2013-10-28 12:05:32 -0400
committerCalvin Morrison <mutantturkey@gmail.com>2013-10-28 12:05:32 -0400
commit1c84ef12c76848ebddee31b4aec7f66768f59b3b (patch)
tree73b0f8ee6e17ce3619f9b0d19ecf8e610ca19e41
parentfa48bb8c603ad6f2a98b425b6a97e1dc27ecc166 (diff)
update Makefile to be more sane and use targets correctly
-rw-r--r--src/c/Makefile16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/c/Makefile b/src/c/Makefile
index 1f59312..0e03ad8 100644
--- a/src/c/Makefile
+++ b/src/c/Makefile
@@ -17,11 +17,13 @@ nnls.o: nnls.c
$(CC) -c nnls.c -o nnls.o $(CFLAGS)
kmer_utils.o: kmer_utils.c
$(CC) -c kmer_utils.c -o kmer_utils.o $(CFLAGS)
-multifasta_to_otu: kmer_utils.o nnls.o multifasta_to_otu.c
- $(CC) multifasta_to_otu.c quikr_functions.c nnls.o kmer_utils.o -o multifasta_to_otu $(CFLAGS) $(MULTIFASTA_CFLAGS)
-quikr_train: kmer_utils.o quikr_train.c
- $(CC) quikr_train.c quikr_functions.c -o quikr_train $(CFLAGS) $(QUIKR_TRAIN_CFLAGS)
-quikr: kmer_utils.o nnls.o quikr.c
- $(CC) quikr.c quikr_functions.c nnls.o kmer_utils.o -o quikr $(CFLAGS) $(QUIKR_CFLAGS) -I../
+quikr_functions.o: quikr_functions.c
+ $(CC) -c quikr_functions.c -o quikr_functions.o $(CFLAGS)
+multifasta_to_otu: kmer_utils.o nnls.o quikr_functions.o multifasta_to_otu.c
+ $(CC) multifasta_to_otu.c quikr_functions.o nnls.o kmer_utils.o -o multifasta_to_otu $(CFLAGS) $(MULTIFASTA_CFLAGS)
+quikr_train: kmer_utils.o quikr_functions.o quikr_train.c
+ $(CC) quikr_train.c quikr_functions.o kmer_utils.o -o quikr_train $(CFLAGS) $(QUIKR_TRAIN_CFLAGS)
+quikr: kmer_utils.o nnls.o quikr_functions.o quikr.c
+ $(CC) quikr.c quikr_functions.o nnls.o kmer_utils.o -o quikr $(CFLAGS) $(QUIKR_CFLAGS) -I../
clean:
- rm -vf quikr_train quikr multifasta_to_otu *.o
+ rm -v quikr_train quikr multifasta_to_otu *.o