mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
common: Move atomic.h in
Since in criu we can't choose proper arch inside include statements (well, it will simply require more ifdefs), I generate include/common/asm symlink to point proper architecture. travis-ci: success for Common headers Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
parent
8fa72cf711
commit
4485723f80
6 changed files with 10 additions and 2 deletions
10
Makefile
10
Makefile
|
|
@ -132,7 +132,7 @@ ifeq ($(GMON),1)
|
|||
export GMON GMONLDOPT
|
||||
endif
|
||||
|
||||
CFLAGS += $(WARNINGS) $(DEFINES)
|
||||
CFLAGS += $(WARNINGS) $(DEFINES) -iquote include/common
|
||||
|
||||
# Default target
|
||||
all: criu lib
|
||||
|
|
@ -177,6 +177,13 @@ endif
|
|||
$(Q) echo "#define CRIU_GITID \"$(GITID)\"" >> $@
|
||||
$(Q) echo "#endif /* __CR_VERSION_H__ */" >> $@
|
||||
|
||||
#
|
||||
# Setup proper link for asm headers in common code.
|
||||
include/common/asm: include/common/arch/$(ARCH)/asm
|
||||
$(call msg-gen, $@)
|
||||
$(Q) ln -s ./arch/$(ARCH)/asm $@
|
||||
$(VERSION_HEADER): include/common/asm
|
||||
|
||||
#
|
||||
# piegen tool might be disabled by hands. Don't use it until
|
||||
# you know what you're doing.
|
||||
|
|
@ -243,6 +250,7 @@ mrproper: subclean
|
|||
$(Q) $(MAKE) $(build)=criu $@
|
||||
$(Q) $(RM) $(CONFIG_HEADER)
|
||||
$(Q) $(RM) $(VERSION_HEADER)
|
||||
$(Q) $(RM) include/common/asm
|
||||
$(Q) $(RM) cscope.*
|
||||
$(Q) $(RM) tags TAGS
|
||||
.PHONY: mrproper
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue