mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-21 09:10:10 +00:00
bers stads for berserker which should eat computer resources emulating "load" for CRIU performance testing. It's still far from being complete but can do trivial things: - generate mmap's with memory dirtified - open files Nothing serious. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
47 lines
738 B
Makefile
47 lines
738 B
Makefile
ifeq ($(strip $(V)),)
|
|
E = @echo
|
|
Q = @
|
|
else
|
|
E = @\#
|
|
Q =
|
|
endif
|
|
|
|
export E Q
|
|
|
|
ASCIIDOC := asciidoc
|
|
A2X := a2x
|
|
XMLTO := xmlto
|
|
|
|
SRC += bers.txt
|
|
XMLS := $(patsubst %.txt,%.xml,$(SRC))
|
|
MANS := $(patsubst %.txt,%.8,$(SRC))
|
|
|
|
%.8: %.txt
|
|
$(E) " GEN " $@
|
|
$(Q) $(ASCIIDOC) -b docbook -d manpage -o $(patsubst %.8,%.xml,$@) $<
|
|
$(Q) $(XMLTO) man --skip-validation $(patsubst %.8,%.xml,$@) 2>/dev/null
|
|
|
|
docs: $(MANS)
|
|
@true
|
|
|
|
CFLAGS := -O0 -ggdb3
|
|
LIBS := -lpthread
|
|
|
|
%.o: %.c
|
|
$(E) " CC " $@
|
|
$(Q) $(CC) -c -o $@ $(CFLAGS) $^
|
|
|
|
bers: bers.o
|
|
$(E) " LINK " $@
|
|
$(Q) $(CC) -o $@ $(CFLAGS) $(LIBS) $^
|
|
|
|
all: bers
|
|
@true
|
|
|
|
clean:
|
|
$(E) " CLEAN "
|
|
$(Q) rm -f $(XMLS) $(MANS)
|
|
$(Q) rm -f bers.o
|
|
$(Q) rm -f bers
|
|
|
|
.PHONY: all docs clean
|