]> git.donarmstrong.com Git - biopieces.git/blobdiff - code_c/Maasha/src/Makefile
added bed2fixedstep.c
[biopieces.git] / code_c / Maasha / src / Makefile
index c5bf7ba3af2c31e08bdd6d3c9242987d8bd40a19..884817b497ae15e82e1882d3150248322b6da18f 100644 (file)
@@ -1,58 +1,48 @@
+# Martin Asser Hansen (mail@maasha.dk) Copyright (C) 2008 - All right reserved
+
 CC      = gcc
-# Cflags = -Wall 
-# Cflags = -Wall -g -O0 # for valgrind
-Cflags = -Wall -g -pg # for gprof
+# Cflags = -Wall -Werror
+Cflags = -Wall -Werror -g -pg # for gprof
 
-INC_DIR = inc/
-LIB_DIR = lib/
+INC_DIR  = inc/
+LIB_DIR  = lib/
+TEST_DIR = test/
 
 INC = -I $(INC_DIR)
 LIB = -lm $(LIB_DIR)*.o
 
-all: libs test test_revcomp fasta_count test_fasta test_oligo2bin repeat-O-matic test_list test_hash test_split test_binary_search test_biotools test_file_buffer test_bed
+all: libs utest bed2fixedstep bed_sort bipartite_scan bipartite_decode fasta_count repeat-O-matic
 
 libs:
        cd $(LIB_DIR) && ${MAKE} all
 
-test: test.c
-       $(CC) $(Cflags) $(INC) $(LIB) test.c -o test
+utest:
+       cd $(TEST_DIR) && ${MAKE} all
 
-test_revcomp: test_revcomp.c
-       $(CC) $(Cflags) $(INC) $(LIB) test_revcomp.c -o test_revcomp
+bed2fixedstep: bed2fixedstep.c
+       $(CC) $(Cflags) $(INC) $(LIB) bed2fixedstep.c -o bed2fixedstep
 
-fasta_count: fasta_count.c
-       $(CC) $(Cflags) $(INC) $(LIB) fasta_count.c -o fasta_count
+bed_sort: bed_sort.c
+       $(CC) $(Cflags) $(INC) $(LIB) bed_sort.c -o bed_sort
 
-test_fasta: test_fasta.c
-       $(CC) $(Cflags) $(INC) $(LIB) test_fasta.c -o test_fasta
+bipartite_scan: bipartite_scan.c
+       $(CC) $(Cflags) $(INC) $(LIB) bipartite_scan.c -o bipartite_scan
 
-test_oligo2bin: test_oligo2bin.c
-       $(CC) $(Cflags) $(INC) $(LIB) test_oligo2bin.c -o test_oligo2bin
+bipartite_decode: bipartite_decode.c
+       $(CC) $(Cflags) $(INC) $(LIB) bipartite_decode.c -o bipartite_decode
+
+fasta_count: fasta_count.c
+       $(CC) $(Cflags) $(INC) $(LIB) fasta_count.c -o fasta_count
 
 repeat-O-matic: repeat-O-matic.c
        $(CC) $(Cflags) $(INC) $(LIB) repeat-O-matic.c -o repeat-O-matic
 
-test_list: test_list.c
-       $(CC) $(Cflags) $(INC) $(LIB) test_list.c -o test_list
-
-test_hash: test_hash.c
-       $(CC) $(Cflags) $(INC) $(LIB) test_hash.c -o test_hash
-
-test_split: test_split.c
-       $(CC) $(Cflags) $(INC) $(LIB) test_split.c -o test_split
-
-test_binary_search: test_binary_search.c
-       $(CC) $(Cflags) $(INC) $(LIB) test_binary_search.c -o test_binary_search
-
-test_biotools: test_biotools.c
-       $(CC) $(Cflags) $(INC) $(LIB) test_biotools.c -o test_biotools
-
-test_file_buffer: test_file_buffer.c $(LIB_DIR)filesys.c
-       $(CC) $(Cflags) $(INC) $(LIB) test_file_buffer.c -o test_file_buffer
-
-test_bed: test_bed.c $(LIB_DIR)ucsc.c
-       $(CC) $(Cflags) $(INC) $(LIB) test_bed.c -o test_bed
-
 clean:
        cd $(LIB_DIR) && ${MAKE} clean
-       rm -f test test_revcomp fasta_count test_fasta test_oligo2bin repeat-O-matic test_list test_hash test_split test_binary_search test_biotools test_file_buffer test_bed
+       cd $(TEST_DIR) && ${MAKE} clean
+       rm bed2fixedstep
+       rm bed_sort
+       rm bipartite_scan
+       rm bipartite_decode
+       rm fasta_count
+       rm repeat-O-matic