mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-20 16:51:37 +00:00
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
29 lines
732 B
Makefile
29 lines
732 B
Makefile
obj-y += criu.o
|
|
|
|
cflags-y += -shared -fPIC -Wa,--noexecstack -fno-stack-protector
|
|
LDFLAGS += --export-dynamic
|
|
includes += -iquote $(obj)/../arch/$(ARCH)/include -iquote $(obj)/../include -iquote $(obj)/..
|
|
|
|
.SECONDARY:
|
|
|
|
#
|
|
# We need util-fd.c to be re-compiled with
|
|
# own flags, but our build engine can't
|
|
# do such tricks yet, so write a rule
|
|
# manually for a while.
|
|
$(obj)/util-fd.o: $(obj)/../pie/util-fd.c
|
|
$(E) " CC " $@
|
|
$(Q) $(CC) -c $(cflags-y) $(CFLAGS) $(includes) $< -o $@
|
|
|
|
$(obj)/built-in.o: $(obj)/util-fd.o
|
|
|
|
$(obj)/libcriu.so: $(obj)/built-in.o
|
|
$(E) " GEN " $@
|
|
$(Q) $(CC) $(CFLAGS) -shared $^ -o $@
|
|
|
|
_all += $(obj)/built-in.o
|
|
cleanup-y += $(obj)/*.so
|
|
|
|
ifneq ($(MAKECMDGOALS),clean)
|
|
incdeps := y
|
|
endif
|