mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-25 02:58:54 +00:00
It's ugly but should work for now. Strictly speaking I need to rework the complete make engine used in zdtm. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Tested-by: Andrew Vagin <avagin@parallels.com> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
39 lines
657 B
Makefile
39 lines
657 B
Makefile
include ../Makefile.inc
|
|
|
|
CFLAGS = -g -O2 -Wall -Werror -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
|
|
|
|
LIBDIR = .
|
|
LIB = libzdtmtst.a
|
|
|
|
LIBSRC = datagen.c msg.c parseargs.c test.c streamutil.c lock.c ns.c tcp.c
|
|
LIBOBJ = $(LIBSRC:%.c=%.o)
|
|
LIBDEP = $(LIBSRC:%.c=%.d)
|
|
|
|
DEPEND.c = $(COMPILE.c) -MM -MP
|
|
%.d: %.c
|
|
$(DEPEND.c) $(OUTPUT_OPTION) $<
|
|
|
|
all: $(LIB)
|
|
@true
|
|
install: all
|
|
.PHONY: all install
|
|
|
|
$(LIB): $(LIBOBJ)
|
|
$(Q) ar rv $@ $^
|
|
|
|
clean:
|
|
$(RM) -f $(LIBOBJ) $(LIB) *~
|
|
|
|
cleandep:
|
|
$(RM) -f $(LIBDEP)
|
|
|
|
cleanout:
|
|
@true
|
|
|
|
realclean: clean cleandep
|
|
|
|
.PHONY: clean cleandep cleanout realclean
|
|
|
|
ifeq ($(filter-out no-deps-targets, $(MAKECMDGOALS)),)
|
|
-include $(LIBDEP)
|
|
endif
|