]> git.donarmstrong.com Git - biopieces.git/blob - code_c/Maasha/src/Makefile
884817b497ae15e82e1882d3150248322b6da18f
[biopieces.git] / code_c / Maasha / src / Makefile
1 # Martin Asser Hansen (mail@maasha.dk) Copyright (C) 2008 - All right reserved
2
3 CC      = gcc
4 # Cflags = -Wall -Werror
5 Cflags = -Wall -Werror -g -pg # for gprof
6
7 INC_DIR  = inc/
8 LIB_DIR  = lib/
9 TEST_DIR = test/
10
11 INC = -I $(INC_DIR)
12 LIB = -lm $(LIB_DIR)*.o
13
14 all: libs utest bed2fixedstep bed_sort bipartite_scan bipartite_decode fasta_count repeat-O-matic
15
16 libs:
17         cd $(LIB_DIR) && ${MAKE} all
18
19 utest:
20         cd $(TEST_DIR) && ${MAKE} all
21
22 bed2fixedstep: bed2fixedstep.c
23         $(CC) $(Cflags) $(INC) $(LIB) bed2fixedstep.c -o bed2fixedstep
24
25 bed_sort: bed_sort.c
26         $(CC) $(Cflags) $(INC) $(LIB) bed_sort.c -o bed_sort
27
28 bipartite_scan: bipartite_scan.c
29         $(CC) $(Cflags) $(INC) $(LIB) bipartite_scan.c -o bipartite_scan
30
31 bipartite_decode: bipartite_decode.c
32         $(CC) $(Cflags) $(INC) $(LIB) bipartite_decode.c -o bipartite_decode
33
34 fasta_count: fasta_count.c
35         $(CC) $(Cflags) $(INC) $(LIB) fasta_count.c -o fasta_count
36
37 repeat-O-matic: repeat-O-matic.c
38         $(CC) $(Cflags) $(INC) $(LIB) repeat-O-matic.c -o repeat-O-matic
39
40 clean:
41         cd $(LIB_DIR) && ${MAKE} clean
42         cd $(TEST_DIR) && ${MAKE} clean
43         rm bed2fixedstep
44         rm bed_sort
45         rm bipartite_scan
46         rm bipartite_decode
47         rm fasta_count
48         rm repeat-O-matic