modified: myjupyterlab.sh
[GalaxyCodeBases.git] / BGI / SOAPdenovo2 / Makefile
blob88746814aa58cfc2ac436fc4a307ec36945d1777
1 CC = g++
2 ifdef debug
3 CFLAGS= -O0 -g -fomit-frame-pointer
4 else
5 CFLAGS= -O4 -fomit-frame-pointer
6 endif
8 SUBDIRS = sparsePregraph standardPregraph
9 PROG= SOAPdenovo-63mer SOAPdenovo-127mer
10 INCLUDES= -I./sparsePregraph/inc -I./standardPregraph/inc
12 LIBPATH= -L/lib64 -L/usr/lib64 -L./sparsePregraph/inc -L./standardPregraph/inc
13 LIBS= -pthread -lz -lm
14 EXTRA_FLAGS=
16 BIT_ERR = 0
17 ifeq (,$(findstring $(shell uname -m), x86_64 ppc64 ia64))
18 BIT_ERR = 1
19 endif
21 ifneq (,$(findstring Linux,$(shell uname)))
22 EXTRA_FLAGS += -Wl,--hash-style=both
23 LIBS += -lbam -lrt
24 endif
26 ifneq (,$(findstring Unix,$(shell uname)))
27 EXTRA_FLAGS += -Wl,--hash-style=both
28 LIBS += -lbam -lrt
29 endif
31 ifneq (,$(findstring Darwin,$(shell uname)))
32 LIBS += -lbammac
33 endif
35 ifneq (,$(findstring $(shell uname -m), x86_64))
36 CFLAGS += -m64
37 endif
39 ifneq (,$(findstring $(shell uname -m), ia64))
40 CFLAGS +=
41 endif
43 ifneq (,$(findstring $(shell uname -m), ppc64))
44 CFLAGS += -mpowerpc64
45 endif
48 all: SOAPdenovo-63mer SOAPdenovo-127mer
50 ifdef debug
51 SOAPdenovo-63mer:
52 @cd sparsePregraph;make 63mer=1 debug=1;cd ..;
53 @cd standardPregraph;make 63mer=1 debug=1;cd ..;
54 @$(CC) sparsePregraph/*.o standardPregraph/*.o $(LIBPATH) $(LIBS) $(EXTRA_FLAGS) -o SOAPdenovo-63mer
55 SOAPdenovo-127mer:
56 @cd sparsePregraph;make 127mer=1 debug=1;cd ..;
57 @cd standardPregraph;make 127mer=1 debug=1;cd ..;
58 @$(CC) sparsePregraph/*.o standardPregraph/*.o $(LIBPATH) $(LIBS) $(EXTRA_FLAGS) -o SOAPdenovo-127mer
59 clean:
60 @cd sparsePregraph;make clean;cd ..;
61 @cd standardPregraph;make clean;cd ..;
62 @rm SOAPdenovo-63mer SOAPdenovo-127mer -f
63 else
64 SOAPdenovo-63mer:
65 @cd sparsePregraph;make 63mer=1;cd ..;
66 @cd standardPregraph;make 63mer=1;cd ..;
67 @$(CC) sparsePregraph/*.o standardPregraph/*.o $(LIBPATH) $(LIBS) $(EXTRA_FLAGS) -o SOAPdenovo-63mer
68 SOAPdenovo-127mer:
69 @cd sparsePregraph;make 127mer=1;cd ..;
70 @cd standardPregraph;make 127mer=1;cd ..;
71 @$(CC) sparsePregraph/*.o standardPregraph/*.o $(LIBPATH) $(LIBS) $(EXTRA_FLAGS) -o SOAPdenovo-127mer
72 clean:
73 @cd sparsePregraph;make clean;cd ..;
74 @cd standardPregraph;make clean;cd ..;
75 @rm SOAPdenovo-63mer SOAPdenovo-127mer -f
76 endif