Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
02fe72ca
Commit
02fe72ca
authored
Jun 23, 2015
by
Mathieu Giraud
Browse files
Makefiles: put $(CXXFLAGS) everywhere $(CXX) is used
"$(CXX) -M > dep.mk" also needs a "-std=c++11" flag
parent
56cc6bae
Changes
4
Hide whitespace changes
Inline
Side-by-side
algo/Makefile
View file @
02fe72ca
...
...
@@ -119,7 +119,7 @@ FORCE:
DEP
=
$(
wildcard
dep.mk
)
ifeq
(${DEP},)
$(shell
$(CXX)
-M
$(MAINCORE)
>
dep.mk)
$(shell
$(CXX)
$(CXXFLAGS)
-M
$(MAINCORE)
>
dep.mk)
endif
include
dep.mk
algo/core/Makefile
View file @
02fe72ca
...
...
@@ -24,6 +24,6 @@ forcedep:
DEP
=
$(
wildcard
dep.mk
)
ifeq
(${DEP},)
$(shell
$(CXX)
-M
$(SRCCORE)
>
dep.mk)
$(shell
$(CXX)
$(CXXFLAGS)
-M
$(SRCCORE)
>
dep.mk)
endif
include
dep.mk
algo/lib/Makefile
View file @
02fe72ca
...
...
@@ -24,6 +24,6 @@ forcedep:
DEP
=
$(
wildcard
dep.mk
)
ifeq
(${DEP},)
$(shell
$(CXX)
-M
$(SRCCORE)
>
dep.mk)
$(shell
$(CXX)
$(CXXFLAGS)
-M
$(SRCCORE)
>
dep.mk)
endif
include
dep.mk
algo/tests/Makefile
View file @
02fe72ca
...
...
@@ -89,14 +89,14 @@ cleantests:
cleanall
:
clean cleancoverage cleantests
forcedep
:
$(CXX)
$(INCLUDE)
-M
$(SRC)
>
dep.mk
$(CXX)
$(CXXFLAGS)
$(INCLUDE)
-M
$(SRC)
>
dep.mk
force
:
DEP
=
$(
wildcard
dep.mk
)
ifeq
(${DEP},)
$(shell
$(CXX)
$(INCLUDE)
-M
$(SRC)
>
dep.mk)
$(shell
$(CXX)
$(CXXFLAGS)
$(INCLUDE)
-M
$(SRC)
>
dep.mk)
endif
include
dep.mk
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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