3 CFLAGS
= -O0
-g
-fomit-frame-pointer
5 CFLAGS
= -O4
-fomit-frame-pointer
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
17 ifeq (,$(findstring $(shell uname
-m
), x86_64 ppc64 ia64
))
21 ifneq (,$(findstring Linux
,$(shell uname
)))
22 EXTRA_FLAGS
+= -Wl
,--hash-style
=both
26 ifneq (,$(findstring Unix
,$(shell uname
)))
27 EXTRA_FLAGS
+= -Wl
,--hash-style
=both
31 ifneq (,$(findstring Darwin
,$(shell uname
)))
35 ifneq (,$(findstring $(shell uname
-m
), x86_64
))
39 ifneq (,$(findstring $(shell uname
-m
), ia64
))
43 ifneq (,$(findstring $(shell uname
-m
), ppc64
))
48 all: SOAPdenovo-63mer SOAPdenovo-127mer
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
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
60 @cd sparsePregraph
;make
clean;cd ..
;
61 @cd standardPregraph
;make
clean;cd ..
;
62 @
rm SOAPdenovo-63mer SOAPdenovo-127mer
-f
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
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
73 @cd sparsePregraph
;make
clean;cd ..
;
74 @cd standardPregraph
;make
clean;cd ..
;
75 @
rm SOAPdenovo-63mer SOAPdenovo-127mer
-f