[CRIU] [PATCH]v1 criu: Initial skeleton for criu library

Pavel Emelyanov xemul at parallels.com
Thu Jul 18 05:53:09 EDT 2013


On 07/17/2013 09:51 PM, Kупреев Руслан wrote:
> Hello all!
> 
> I make an initial skeleton for CRIU library. It will be used to add 
> different useful functionality.
> 
> 
> @@ -0,0 +1,12 @@
> +.PHONY: all clean
> +
> +all: libcriu.so
> +
> +libcriu.so: criu.o
> +	$(Q) $(CC) $(CFLAGS) -shared -o $@ criu.o
> +
> +criu.o: 
> +	$(Q) $(CC) $(CFLAGS) -fPIC -c criu.c ../include/version.h

Shouldn't it be "-I../include/"  to ...

> +clean:
> +	$(Q) $(RM) -f *.o
> +	$(Q) $(RM) -f *.so
> diff --git a/lib/criu.c b/lib/criu.c
> new file mode 100644
> index 0000000..e613c91
> --- /dev/null
> +++ b/lib/criu.c
> @@ -0,0 +1,3 @@
> +#include "../include/version.h"

... make this look like "#include "version.h" ?

> +/*TMPversion is temporary used to avoid -Werror=unused-variable*/
> +const char* TMPversion = version;




More information about the CRIU mailing list