# Martin Asser Hansen (mail@maasha.dk) Copyright (C) 2008 - All right reserved CC = gcc # Cflags = -Wall -Werror Cflags = -Wall -Werror -g -pg # for gprof INC_DIR = inc/ LIB_DIR = lib/ TEST_DIR = test/ INC = -I $(INC_DIR) LIB = -lm $(LIB_DIR)*.o all: libs utest bed_sort bipartite_scan bipartite_decode fasta_count repeat-O-matic libs: cd $(LIB_DIR) && ${MAKE} all utest: cd $(TEST_DIR) && ${MAKE} all bed_sort: bed_sort.c $(CC) $(Cflags) $(INC) $(LIB) bed_sort.c -o bed_sort bipartite_scan: bipartite_scan.c $(CC) $(Cflags) $(INC) $(LIB) bipartite_scan.c -o bipartite_scan 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 clean: cd $(LIB_DIR) && ${MAKE} clean cd $(TEST_DIR) && ${MAKE} clean rm bed_sort rm bipartite_scan rm bipartite_decode rm fasta_count rm repeat-O-matic