Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CI1164 Engenharia de Performance 2021
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Harbor Registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Armando Luiz Nicolini Delgado
CI1164 Engenharia de Performance 2021
Commits
9a1cd588
Commit
9a1cd588
authored
3 years ago
by
Armando Luiz Nicolini Delgado
Browse files
Options
Downloads
Patches
Plain Diff
Makefile mais enxuto...
parent
a259aff2
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+7
-20
7 additions, 20 deletions
Makefile
with
7 additions
and
20 deletions
Makefile
+
7
−
20
View file @
9a1cd588
PROG
=
matmult
MODULOS
=
matriz
CC
=
gcc
-std
=
c11
-g
OBJS
=
$(
addsuffix .o,
$(
MODULOS
))
OBJS
=
matriz.o
LIKWID
=
/home/soft/likwid
LIKWID_FLAGS
=
-I
$(
LIKWID
)
/include
LIKWID_LIBS
=
-L
$(
LIKWID
)
/lib
CFLAGS
=
LFLAGS
=
-lm
AVX_FLAGS
=
-march
=
native
-mavx
-O3
-falign-functions
=
32
-falign-loops
=
32
-fstrict-aliasing
AVX_LOG_FLAGS
=
-fopt-info-vec
-fopt-info-vec-missed
CFLAGS
=
$(
LIKWID_FLAGS
)
LFLAGS
=
$(
LIKWID_LIBS
)
-lm
.PHONY
:
all clean limpa purge faxina distclean debug avx likwid
.PHONY
:
all debug clean limpa purge faxina
%.o
:
%.c %.h
$(
CC
)
$(
CFLAGS
)
-c
$<
...
...
@@ -22,23 +14,18 @@
all
:
$(PROG)
debug
:
CFLAGS += -DDEBUG
avx
:
CFLAGS += $(AVX_FLAGS) $(AVX_LOG_FLAGS)
avx likwid
:
CFLAGS += -DLIKWID_PERFMON
avx likwid
:
LFLAGS += -llikwid
likwid avx debug
:
$(PROG)
debug
:
$(PROG)
$(PROG)
:
$(PROG).o
$(PROG)
:
$(OBJS)
$(
CC
)
$(
CFLAGS
)
-o
$@
$^
$(
LFLAGS
)
clean
:
clean
limpa
:
@
echo
"Limpando ...."
@
rm
-f
*
~
*
.bak
*
.tmp
purge
distclean
:
clean
purge
faxina
:
clean
@
echo
"Faxina ...."
@
rm
-f
$(
PROG
)
*
.o core a.out
@
rm
-f
*
.png marker.out
*
.log
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment