criu/test/zdtm/lib/Makefile
Kir Kolyshkin 50d7991168 test/zdtm: unify common code
This commit expands the success with lib/Makefile to the rest of
ztdm/Makefiles. In particular, it moves the common part to Makefile.inc
and let {lib,static,transition}/Makefile use it.

This results in:
 - dependencies being handled properly;
 - reduction of makefiles length due to unification;
 - possibly more proper dependencies and builds.

While at it, let's also:
 - make rules for criu-rtc.so silent;
 - set default CC=gcc;
 - remove duplicate -m32 from CFLAGS.

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2017-04-02 18:12:10 +03:00

30 lines
477 B
Makefile

LIBDIR := .
CFLAGS += $(USERCFLAGS)
LIB := libzdtmtst.a
LIBSRC := datagen.c msg.c parseargs.c test.c streamutil.c lock.c ns.c tcp.c fs.c
LIBOBJ := $(LIBSRC:%.c=%.o)
BIN := groups
SRC := $(LIBSRC) groups.c
DEP := $(SRC:%.c=%.d)
OBJ := $(SRC:%.c=%.o)
LDLIBS := $(LIB)
TARGETS := $(LIB) $(BIN)
include ../Makefile.inc
all: $(TARGETS)
.PHONY: all
clean-more:
$(RM) $(TARGETS)
.PHONY: clean-more
clean: clean-more
$(LIB): $(LIBOBJ)
$(E) " AR " $@
$(Q)ar rcs $@ $^