summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-06-01 00:10:39 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-06-01 00:10:39 (EDT)
commit43289e69d8986829c2cbb0e4f1d5f8bdb1e88b85 (patch)
treeab44bbef88cdb956145a68ca52c344dd910f45b3 /build
parent8c191616dc6e14ab9cea06a8a64c375d0e7dcd22 (diff)
build: Set PREFIX
Also set macros at build time.
Diffstat (limited to 'build')
-rwxr-xr-xbuild11
1 files changed, 7 insertions, 4 deletions
diff --git a/build b/build
index cb433a5..56adf30 100755
--- a/build
+++ b/build
@@ -1,18 +1,21 @@
#!/usr/bin/make -f
+macros = \
+ PREFIX='/usr' \
+ LIBPATH='/usr/lib/$(OPK_HOST_ARCH)' \
+ INSTALL_GROUP=0
+
nop:
@:
build:
CFLAGS='$(CFLAGS) -DLTM_DESC -DUSE_LTM' \
EXTRALIBS='-ltommath' \
- oh-autobuild -- -f makefile.shared
+ oh-autobuild -- -f makefile.shared $(macros)
touch $@
install: build
- oh-autoinstall -- -f makefile.shared \
- LIBPATH='/usr/lib/$(OPK_HOST_ARCH)' \
- INSTALL_GROUP=0
+ oh-autoinstall -- -f makefile.shared $(macros)
rm dest/usr/lib/$(OPK_HOST_ARCH)/libtomcrypt*.la
oh-fixperms
oh-strip