summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2017-01-10 14:16:16 +0200
committerTimo Teräs <timo.teras@iki.fi>2017-01-10 14:16:16 +0200
commit6926e206a82f7cebd5827d3493e988b1d95046db (patch)
tree25354d16ca63c3f4460e16cfd2cc277056081ec9 /Makefile
parent8bddd02b10cd581f0f0966375a93180b0cb2bb33 (diff)
downloadabuild-6926e206a82f7cebd5827d3493e988b1d95046db.tar.gz
abuild-6926e206a82f7cebd5827d3493e988b1d95046db.tar.bz2
abuild-6926e206a82f7cebd5827d3493e988b1d95046db.tar.xz
abuild-6926e206a82f7cebd5827d3493e988b1d95046db.zip
abuild-gzsplit: new tool to split .apk to it's base components
required tool for re-signing packages
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 0006b0f..279f458 100644
--- a/Makefile
+++ b/Makefile
@@ -10,7 +10,7 @@ datadir ?= $(prefix)/share/$(PACKAGE)
SCRIPTS := abuild abuild-keygen abuild-sign newapkbuild \
abump apkgrel buildlab apkbuild-cpan checkapk \
apkbuild-gem-resolver
-USR_BIN_FILES := $(SCRIPTS) abuild-tar abuild-sudo abuild-fetch
+USR_BIN_FILES := $(SCRIPTS) abuild-tar abuild-gzsplit abuild-sudo abuild-fetch
SAMPLES := sample.APKBUILD sample.initd sample.confd \
sample.pre-install sample.post-install
AUTOTOOLS_TOOLCHAIN_FILES := config.sub config.guess
@@ -38,13 +38,16 @@ SED_REPLACE := -e 's:@VERSION@:$(FULL_VERSION):g' \
SSL_CFLAGS ?= $(shell pkg-config --cflags openssl)
SSL_LDFLAGS ?= $(shell pkg-config --cflags openssl)
SSL_LIBS ?= $(shell pkg-config --libs openssl)
-
+ZLIB_LIBS ?= $(shell pkg-config --libs zlib)
OBJS-abuild-tar = abuild-tar.o
CFLAGS-abuild-tar.o = $(SSL_CFLAGS)
LDFLAGS-abuild-tar = $(SSL_LDFLAGS)
LIBS-abuild-tar = $(SSL_LIBS)
+OBJS-abuild-gzsplit = abuild-gzsplit.o
+LDFLAGS-abuild-gzsplit = $(ZLIB_LIBS)
+
OBJS-abuild-sudo = abuild-sudo.o
OBJS-abuild-fetch = abuild-fetch.o
@@ -76,6 +79,9 @@ abuild-tar: abuild-tar.o
abuild-fetch: abuild-fetch.o
$(LINK)
+abuild-gzsplit: abuild-gzsplit.o
+ $(LINK)
+
abuild-tar.static: abuild-tar.o
$(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS-$@) -o $@ -static $(LIBS-$@) $^