Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
criu
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhul
criu
Commits
7aee2619
Commit
7aee2619
authored
Jun 25, 2014
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: Cleanup libcriu tests makefile
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
43e5d051
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
21 deletions
+15
-21
Makefile
test/libcriu/Makefile
+15
-21
No files found.
test/libcriu/Makefile
View file @
7aee2619
all
:
test_sub test_self test_notify
.PHONY
:
all
TESTS
+=
test_sub
TESTS
+=
test_self
TESTS
+=
test_notify
all
:
$(TESTS)
run
:
all
./run.sh
test_sub
:
test_sub.o lib.o
gcc
$^
-L
../../lib
-lcriu
-o
$@
test_sub.o
:
test_sub.c
gcc
-c
$^
-I
../../lib
-o
$@
test_self
:
test_self.o lib.o
gcc
$^
-L
../../lib
-lcriu
-o
$@
define
genb
$(1)
:
$(1).o lib.o
gcc
$$
^
-L
../../lib
-lcriu
-o
$$
@
endef
test_self.o
:
test_self.c
gcc
-c
$^
-I
../../lib
-o
$@
$(foreach
t,
$(TESTS),
$(eval
$(call
genb,
$(t))))
test_notify
:
test_notify.o lib.o
gcc
$^
-L
../../lib
-lcriu
-o
$@
test_notify.o
:
test_notify.c
gcc
-c
$^
-I
../../lib
-o
$@
lib.o
:
lib.c
gcc
-c
$^
-I
../../lib
-o
$@
%.o
:
%.c
gcc
-c
$^
-I
../../lib/
-o
$@
-Werror
clean
:
rm
-rf
test_sub test_sub.o test_self test_sub.o test_notify test_notify.o
rm
-rf
$(TESTS)
$
(
TESTS:%
=
%.o
)
lib.o
.PHONY
:
clean
.PHONY
:
all
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