Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
khalid
radsex
Commits
69892dee
Commit
69892dee
authored
Apr 20, 2020
by
RomainFeron
Browse files
Cleaner makefile build bwa with gcc and radsex with g++
parent
1bd98186
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
69892dee
# Compiler options
CC
=
g++
OPTCFLAGS
=
-O2
CFLAGS
=
-Wall
-Wno-maybe-uninitialized
-std
=
c++11
$(OPTCFLAGS)
CC
=
gcc
CXX
=
g++
OPTCXXFLAGS
+=
-O2
CXXFLAGS
+=
-Wall
-std
=
c++11
$(OPTCXXFLAGS)
CFLAGS
=
-Wall
-Wno-maybe-uninitialized
LDFLAGS
=
-pthread
-lstdc
++
-lz
-L
$(INCLUDE)
/bwa
-lbwa
# Directory organisation
...
...
@@ -45,7 +47,7 @@ $(BIN):
# Build BWA
$(INCLUDE)/bwa/libbwa.a
:
(
cd
$(INCLUDE)
/bwa
&&
$(MAKE)
-j
$(JOBS)
)
(
cd
$(INCLUDE)
/bwa
&&
$(MAKE)
CC
=
$(CC)
-j
$(JOBS)
)
# Clean BWA
clean-bwa
:
...
...
@@ -79,11 +81,11 @@ rebuild-all:
# Linking
$(BIN)/radsex
:
$(OBJS) $(INCLUDE)/kfun/kfun.o
$(C
C
)
$(CFLAGS)
-I
$(INCLUDE)
-o
$(BIN)
/radsex
$^
$(LDFLAGS)
$(C
XX
)
$(C
XX
FLAGS)
-I
$(INCLUDE)
-o
$(BIN)
/radsex
$^
$(LDFLAGS)
# Build a single object file. Added libs as dependency so they are built before object files
$(BUILD)/%.o
:
$(SRC)/%.cpp $(INCLUDE)/bwa/libbwa.a
$(C
C
)
$(CFLAGS)
-I
$(INCLUDE)
-c
-o
$@
$<
$(C
XX
)
$(C
XX
FLAGS)
-I
$(INCLUDE)
-c
-o
$@
$<
# Build doc with sphinx and doxygen
docs
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment