1 CC
= g
++ # /opt/blc/gcc-4.5.0/bin/gcc #gcc
3 CFLAGS
= -O0
-g
-fomit-frame-pointer
#-static #-mcrc32 -march=core2 -msse4.1 -msse4.2
5 CFLAGS
= -O4
-fomit-frame-pointer
#-static #-mcrc32 -march=core2 -msse4.1 -msse4.2
9 OBJS
= build_graph.o build_edge.o multi_threads.o \
10 build_preArc.o pregraph_sparse.o io_func.o\
11 global.o convert_soapdenovo.o
16 LIBS
= -pthread
-lz
-L.
/inc
22 PROG
= pregraph_sparse_127mer.v
$(VERSION
)
26 PROG
= pregraph_sparse_63mer.v
$(VERSION
)
31 ifeq (,$(findstring $(shell uname
-m
), x86_64 ppc64 ia64
))
35 ifneq (,$(findstring Linux
,$(shell uname
)))
36 EXTRA_FLAGS
+= -Wl
,--hash-style
=both
40 ifneq (,$(findstring Unix
,$(shell uname
)))
41 EXTRA_FLAGS
+= -Wl
,--hash-style
=both
45 ifneq (,$(findstring Darwin
,$(shell uname
)))
49 ifneq (,$(findstring $(shell uname
-m
), x86_64
))
53 ifneq (,$(findstring $(shell uname
-m
), ia64
))
57 ifneq (,$(findstring $(shell uname
-m
), ppc64
))
64 @printf
"Compiling $<... \r"; \
65 $(CC
) -c
$(CFLAGS
) $(DFLAGS
) $(INCLUDES
) $< || echo
"Error in command: $(CC) -c $(CFLAGS) $(DFLAGS) $(INCLUDES) $<"
70 .PHONY
:all clean install
73 @
test $(BIT_ERR
) != 1 || sh
-c
'echo "Fatal: 64bit CPU and Operating System required!";false;'
75 pregraph_sparse
: clean envTest
$(OBJS
)
76 @printf
"Linking... \r"
77 #@$(CC) $(CFLAGS)$(INCLUDES) -o $(PROG) $(OBJS) $(LIBPATH) $(LIBS) $(ENTRAFLAGS)
78 @printf
"$(PROG) compilation done.\n";
81 @
rm -fr gmon.out
*.o a.out
*.exe
*.dSYM
$(PROG
) *~
*.a
*.so.
* *.so
*.dylib
82 @printf
"$(PROG) cleaning done.\n";
86 @printf
"$(PROG) installed at ../bin/$(PROG)\n"