mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-28 20:42:49 +00:00
These changes enable running all compel tests with a single command from the root path of the repository: # sudo make -C compel/test Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
20 lines
299 B
Makefile
20 lines
299 B
Makefile
CC := gcc
|
|
CFLAGS ?= -O2 -g -Wall -Werror
|
|
|
|
COMPEL := ../../../compel/compel-host
|
|
|
|
all: victim spy
|
|
|
|
run:
|
|
./spy
|
|
.PHONY: run
|
|
|
|
clean:
|
|
rm -f victim
|
|
rm -f spy
|
|
|
|
victim: victim.c
|
|
$(CC) $(CFLAGS) -o $@ $^
|
|
|
|
spy: spy.c
|
|
$(CC) $(CFLAGS) $(shell $(COMPEL) includes) -o $@ $^ $(shell $(COMPEL) --static libs)
|