• Dmitry Safonov's avatar
    build/make: return to make from top directory · 7a360484
    Dmitry Safonov authored
    It looks like, there is not so much that needs to be fixed for
    building criu from a top directory.
    After the patch it's possible to do `make criu/mount.o` i.e.
    It will build protobuf, compel as dependencies (if they are not built),
    but no more from criu objects. If something breaks, you can
    do make from vim and jump to error. Nice.
    Mostly the patch corrects pathes to objects - I tried to make them
    depend on $(obj) or $(SRC_DIR)/criu, where it's possible.
    
    After it tested:
    `make -j 10`, `make criu/log.o`, `make clean`, `make mrproper`,
    `make install DESTDIR=/tmp/criu`, `make uninstall DESTDIR=/tmp/criu`
    
    Note: I improperly called v1 for this patch as "return to make from
    top Makefile" -- but I didn't mean that (and it was friday ;)
    
    This patch doesn't yet switch to top-Makefile building, but that's
    a step in that way (building from a top Makefile needs correct pathes
    in makefiles) which also adds ability to build objects in subdirectories
    and etc.
    
    Cc: Cyrill Gorcunov <gorcunov@openvz.org>
    Signed-off-by: 's avatarDmitry Safonov <dsafonov@virtuozzo.com>
    Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
    Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
    7a360484
Name
Last commit
Last update
Documentation Loading commit data...
contrib Loading commit data...
coredump Loading commit data...
crit Loading commit data...
criu Loading commit data...
images Loading commit data...
lib Loading commit data...
scripts Loading commit data...
test Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
INSTALL.md Loading commit data...
Makefile Loading commit data...
Makefile.install Loading commit data...
Makefile.versions Loading commit data...
README.md Loading commit data...