staging 4.0.0-rc
This commit is contained in:
1 parent
ae54f74070
commit
fb02622b5b
30 files changed
+2346
-2671
No files matched your search
@@ -1,8 +1,8 @@
|
||||
include config.mk
|
||||
|
||||
.PHONY: all prepare log log_test pkg transaction istoreutils install clean static libglacier.a install_static libglacier-ng sha256 gsha256sum libglacier_verify gsign grepo
|
||||
.PHONY: all prepare log log_test pkg transaction istoreutils install clean static libglacier.a install_static libglacier-ng sha256 gsha256sum libglacier_verify gsign grepo gsandbox
|
||||
|
||||
all: prepare log log_test pkg transaction istoreutils sha256 libglacier_verify gsha256sum gsign grepo
|
||||
all: prepare log log_test pkg transaction istoreutils sha256 libglacier_verify gsha256sum gsign grepo gsandbox
|
||||
@echo "libglacier-ng has finished building"
|
||||
|
||||
static: prepare log_static pkg_static istoreutils_static libglacier.a
|
||||
@@ -16,13 +16,15 @@ pkg_static:
|
||||
istoreutils_static: pkg_static
|
||||
$(CC) $(CFLAGS) -c src/istoreutils.c -o build/lib/tmp/istoreutils.o
|
||||
$(CC) $(CFLAGS) -c src/deps.c -o build/lib/tmp/deps.o
|
||||
$(CC) $(CFLAGS) -c src/recipe.c -o build/lib/tmp/recipe.o
|
||||
|
||||
libglacier.a:
|
||||
ar rcs build/lib/libglacier.a \
|
||||
build/lib/tmp/log.o \
|
||||
build/lib/tmp/pkg.o \
|
||||
build/lib/tmp/istoreutils.o \
|
||||
build/lib/tmp/deps.o
|
||||
build/lib/tmp/deps.o \
|
||||
build/lib/tmp/recipe.o
|
||||
|
||||
prepare:
|
||||
mkdir -p build
|
||||
@@ -61,9 +63,16 @@ gsign: prepare
|
||||
# from source like gsign, so it needs no rpath to the shared objects.
|
||||
grepo: prepare
|
||||
$(CC) $(CFLAGS) src/grepo.c src/sign.c src/sha256.c src/log.c src/pkg.c \
|
||||
src/istoreutils.c src/deps.c src/transaction.c $(MONOCYPHER) \
|
||||
src/istoreutils.c src/deps.c src/recipe.c src/transaction.c $(MONOCYPHER) \
|
||||
-larchive -lconfig -o build/bin/grepo
|
||||
|
||||
# gsandbox runs builds (BUILD_DESIGN.txt section 6). Not a maintainer
|
||||
# tool: gpkg/syspkg run it, so it is installed beside the libraries.
|
||||
gsandbox: prepare
|
||||
$(CC) $(CFLAGS) src/gsandbox.c src/log.c src/pkg.c src/istoreutils.c \
|
||||
src/deps.c src/recipe.c src/transaction.c \
|
||||
-larchive -lconfig -o build/bin/gsandbox
|
||||
|
||||
transaction: log istoreutils
|
||||
$(CC) $(CFLAGS) -shared -fPIC src/transaction.c \
|
||||
-Lbuild/lib/shared -lglacier_istoreutils -lglacier_log \
|
||||
@@ -71,7 +80,7 @@ transaction: log istoreutils
|
||||
-o build/lib/shared/libglacier_transaction.so
|
||||
|
||||
istoreutils: pkg
|
||||
$(CC) $(CFLAGS) -shared -fPIC src/istoreutils.c src/deps.c \
|
||||
$(CC) $(CFLAGS) -shared -fPIC src/istoreutils.c src/deps.c src/recipe.c \
|
||||
-Lbuild/lib/shared -lglacier_log -lglacier_pkg -larchive \
|
||||
-Wl,-rpath,'$$ORIGIN' \
|
||||
-o build/lib/shared/libglacier_istoreutils.so
|
||||
@@ -85,7 +94,7 @@ pkg:
|
||||
libglacier-ng: prepare
|
||||
$(CC) $(CFLAGS) -shared -fPIC \
|
||||
src/log.c src/pkg.c src/transaction.c src/istoreutils.c src/deps.c \
|
||||
-larchive -lconfig \
|
||||
src/recipe.c -larchive -lconfig \
|
||||
-o build/lib/shared/libglacier-ng.so
|
||||
|
||||
install:
|
||||
@@ -98,6 +107,7 @@ install:
|
||||
install build/bin/gsha256sum $(PREFIX)/bin/ -m 755
|
||||
install build/bin/gsign $(PREFIX)/bin/ -m 755
|
||||
install build/bin/grepo $(PREFIX)/bin/ -m 755
|
||||
install build/bin/gsandbox $(PREFIX)/lib/glacier/ -m 755
|
||||
|
||||
install_static:
|
||||
mkdir -p $(PREFIX)/lib/glacier
|
||||
|
||||
Reference in new issue
Block a user