Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Prog2
/
eloadas_peldak
/
ea_05
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
055818b4
authored
Feb 28, 2021
by
Szeberényi Imre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Makefile
parent
503243fb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
12 deletions
+15
-12
otthonMegMukodott/Makefile
+10
-7
virt_destruktor/Makefile
+5
-5
No files found.
otthonMegMukodott/Makefile
View file @
055818b4
...
...
@@ -10,29 +10,32 @@
src
=
main.cpp
prog1
=
nemVirtDestr
prog2
=
virtDestr
maxData
=
250
# data segmens limit
num
=
1000
# ciklusszám
targets
=
$(prog1)
$(prog2)
CXX
=
g++
# # a C++ fordito neve
CXXFLAGS
=
-
pedantic
-Wall
#
# C++ kapcsolok: legyen bobeszedu,
CXXFLAGS
=
-
static
-pedantic
-Wall
# C++ kapcsolok: legyen bobeszedu,
CXXFLAGS
+=
-g
# # ... es legyen debug info is
.PHONY
:
all
all
:
$(targets)
$(prog1)
:
$(src)
$(CXX)
-DVIRTUAL
=
$(src)
-o
$@
$(CXX)
$(CXXFLAGS)
-DVIRTUAL
=
$(src)
-o
$@
$(prog2)
:
$(src0)
$(CXX)
-DVIRTUAL
=
virtual
$(src)
-o
$@
$(CXX)
$(CXXFLAGS)
-DVIRTUAL
=
virtual
$(src)
-o
$@
.PHONY
:
run
run
:
$(targets)
@
echo
"Virtualis destruktorral 70 elem:"
(
ulimit
-d
20
;
./virtDestr 70
)
@
echo
"Ha a az elso eset sem fut le, akkor novelje meg a maxData erteket!"
@
echo
"Virtualis destruktorral"
$(num)
"elem:"
(
ulimit
-d
$(maxData)
;
./virtDestr
$(num)
)
@
echo
@
echo
"Virtualis destruktor
nelkul 70
elem:"
(
ulimit
-d
20
;
./nemVirtDestr 70
)
@
echo
"Virtualis destruktor
ral"
$(num)
"
elem:"
(
ulimit
-d
$(maxData)
;
./nemVirtDestr
$(num)
)
# takaritas igeny szerint
.PHONY
:
clean
...
...
virt_destruktor/Makefile
View file @
055818b4
...
...
@@ -7,24 +7,24 @@
# make run
# futtatja mindket valtozatot
src
=
main.cpp
src
=
main.cpp
memtrace.cpp
prog1
=
nemVirtDestr
prog2
=
virtDestr
targets
=
$(prog1)
$(prog2)
CXX
=
g++
# # a C++ fordito neve
CXXFLAGS
=
-pedantic
-Wall
# # C++ kapcsolok
: legyen bobeszedu,
CXXFLAGS
+=
-
g
# # ... es legyen
debug info is
CXXFLAGS
=
-pedantic
-Wall
# # C++ kapcsolok
CXXFLAGS
+=
-
DMEMTRACE
-g
# legyen MEMTRACE es
debug info is
.PHONY
:
all
all
:
$(targets)
$(prog1)
:
$(src)
$(CXX)
-DVIRTUAL
=
$(src)
-o
$@
$(CXX)
$(CXXFLAGS)
-DVIRTUAL
=
$(src)
-o
$@
$(prog2)
:
$(src0)
$(CXX)
-DVIRTUAL
=
virtual
$(src)
-o
$@
$(CXX)
$(CXXFLAGS)
-DVIRTUAL
=
virtual
$(src)
-o
$@
.PHONY
:
run
run
:
$(targets)
...
...
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