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
9b18a7c9
Commit
9b18a7c9
authored
Jun 08, 2021
by
Jan Eitzinger
Browse files
Sync Makefile with template
parent
3ae123d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
9b18a7c9
...
...
@@ -34,7 +34,7 @@ Q ?= @
include
$(MAKE_DIR)/config.mk
include
$(MAKE_DIR)/include_$(TAG).mk
include
$(MAKE_DIR)/include_LIKWID.mk
INCLUDES
+=
-I
./src/includes
INCLUDES
+=
-I
$(SRC_DIR)
/includes
-I
$(BUILD_DIR)
VPATH
=
$(SRC_DIR)
ASM
=
$(
patsubst
$(SRC_DIR)
/%.c,
$(BUILD_DIR)
/%.s,
$(
wildcard
$(SRC_DIR)
/
*
.c
))
...
...
@@ -48,13 +48,11 @@ CPPFLAGS := $(CPPFLAGS) $(DEFINES) $(OPTIONS) $(INCLUDES)
${TARGET}
:
$(BUILD_DIR) $(OBJ)
@
ech
o
"
===> LINKING
$(TARGET)
"
$
(
inf
o
===>
LINKING
$(TARGET)
)
$(Q)${LINKER}
${LFLAGS}
-o
$(TARGET)
$(OBJ)
$(LIBS)
asm
:
$(BUILD_DIR) $(ASM)
$(BUILD_DIR)/%.o
:
%.c
@
echo
"===> COMPILE
$@
"
$(BUILD_DIR)/%.o
:
%.c $(MAKE_DIR)/include_$(TAG).mk
$
(
info
===>
COMPILE
$@
)
$(CC)
-c
$(CPPFLAGS)
$(CFLAGS)
$<
-o
$@
$(Q)$(GCC)
$(CPPFLAGS)
-MT
$
(
@:.d
=
.o
)
-MM
$<
>
$(BUILD_DIR)
/
$*
.d
...
...
@@ -109,3 +107,6 @@ $(BUILD_DIR):
@
mkdir
$(BUILD_DIR)
-include
$(OBJ:.o=.d)
# Add explicit dependencies for Fortran90 modules
#include $(MAKE_DIR)/dep.mk
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