mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-23 01:59:04 +00:00
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>
30 lines
477 B
Makefile
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 $@ $^
|