Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Thomas Gruber
TheBandwidthBenchmark
Commits
b27abd20
Commit
b27abd20
authored
Jun 07, 2021
by
Jan Eitzinger
Browse files
Adapt Makefile to newer template
parent
48787ece
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
b27abd20
...
...
@@ -63,51 +63,53 @@ $(BUILD_DIR)/%.o: %.c
$(Q)$(GCC)
$(CPPFLAGS)
-MT
$
(
@:.d
=
.o
)
-MM
$<
>
$(BUILD_DIR)
/
$*
.d
$(BUILD_DIR)/%.s
:
%.c
@
ech
o
"
===> GENERATE ASM
$@
"
$
(
inf
o
===>
GENERATE ASM
$@
)
$(CC)
-S
$(CPPFLAGS)
$(CFLAGS)
$<
-o
$@
$(BUILD_DIR)/%.s
:
%.f90
@
ech
o
"
===>
COMPILE
$@
"
$
(
inf
o
===>
GENERATE ASM
$@
)
$(Q)$(FC)
-S
$(FCFLAGS)
$<
-o
$@
$(BUILD_DIR)/%.o
:
%.cc
@
ech
o
"
===> COMPILE
$@
"
$
(
inf
o
===>
COMPILE
$@
)
$(Q)$(CXX)
-c
$(CPPFLAGS)
$(CXXFLAGS)
$<
-o
$@
$(Q)$(CXX)
$(CPPFLAGS)
-MT
$
(
@:.d
=
.o
)
-MM
$<
>
$(BUILD_DIR)
/
$*
.d
$(BUILD_DIR)/%.o
:
%.cpp
@
ech
o
"
===> COMPILE
$@
"
$
(
inf
o
===>
COMPILE
$@
)
$(Q)$(CXX)
-c
$(CPPFLAGS)
$(CXXFLAGS)
$<
-o
$@
$(Q)$(CXX)
$(CPPFLAGS)
-MT
$
(
@:.d
=
.o
)
-MM
$<
>
$(BUILD_DIR)
/
$*
.d
$(BUILD_DIR)/%.o
:
%.f90
@
ech
o
"
===> COMPILE
$@
"
$
(
inf
o
===>
COMPILE
$@
)
$(Q)$(FC)
-c
$(FCFLAGS)
$<
-o
$@
$(BUILD_DIR)/%.o
:
%.F90
@
ech
o
"
===> COMPILE
$@
"
$
(
inf
o
===>
COMPILE
$@
)
$(Q)$(FC)
-c
$(CPPFLAGS)
$(FCFLAGS)
$<
-o
$@
tags
:
@
echo
"===> GENERATE TAGS"
$(Q)
ctags
-R
$(BUILD_DIR)
:
@
mkdir
$(BUILD_DIR)
ifeq
($(findstring $(MAKECMDGOALS),clean),)
-include
$(OBJ:.o=.d)
endif
.PHONY
:
clean distclean
.PHONY
:
clean distclean tags info asm
clean
:
@
ech
o
"
===> CLEAN
"
$
(
inf
o
===>
CLEAN
)
@
rm
-rf
$(BUILD_DIR)
@
rm
-f
tags
distclean
:
clean
@
ech
o
"
===> DIST CLEAN
"
$
(
inf
o
===>
DIST CLEAN
)
@
rm
-f
$(TARGET)
@
rm
-f
tags
info
:
$
(
info
$(CFLAGS)
)
$(Q)$(CC)
$(VERSION)
asm
:
$(BUILD_DIR) $(ASM)
tags
:
$
(
info
===>
GENERATE TAGS
)
$(Q)
ctags
-R
$(BUILD_DIR)
:
@
mkdir
$(BUILD_DIR)
-include
$(OBJ:.o=.d)
Write
Preview
Supports
Markdown
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