mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 10:16:41 +00:00
The top-level makefile defines an ARCH_DIR variable. Always use it rather than referencing ARCH directly, since ARCH may be set by the user on the command line and that raw input may not be what needs to be used internally. Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
14 lines
442 B
Makefile
14 lines
442 B
Makefile
lib-so += $(CRIU-SO)
|
|
obj-y += criu.o
|
|
obj-ext-src-y += protobuf/rpc.pb-c.o
|
|
|
|
includes += -iquote $(obj)/../$(ARCH_DIR)/include -iquote $(obj)/../include -iquote $(obj)/.. -iquote $(obj)/../protobuf
|
|
cflags-y += $(includes) -fPIC -Wa,--noexecstack -fno-stack-protector
|
|
cflags-so += $(CFLAGS) -rdynamic -Wl,-soname,$(lib-so).so.$(VERSION_SO_MAJOR)
|
|
ldflags-so += -lprotobuf-c
|
|
|
|
.SECONDARY:
|
|
|
|
ifneq ($(MAKECMDGOALS),clean)
|
|
incdeps := y
|
|
endif
|