criu/test/bers/Makefile
Cyrill Gorcunov 08e0b1de20 test: bers -- Initial commit
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>
2014-03-18 11:57:12 +04:00

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