summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-10-16 13:19:01 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-10-16 13:19:01 (EDT)
commit9af9eb269e1d0b1f7a91f24f7e4b9e920ac297c4 (patch)
treec2089fa7ddba5cef7fa9e276665658e3506164fe
parent4d68f9a10eafee860b5ccc7531c2241ff3da2bfc (diff)
build: Add "build" and "install" targets
-rwxr-xr-xbuild15
1 files changed, 15 insertions, 0 deletions
diff --git a/build b/build
index 2a40656..49a4f1f 100755
--- a/build
+++ b/build
@@ -4,3 +4,18 @@ include ../source.mk
nop:
@:
+
+build:
+ CFLAGS='$(CFLAGS) -DLTM_DESC -DUSE_LTM' \
+ EXTRALIBS='-ltommath' \
+ oh-autobuild -- -f makefile.shared
+ touch $@
+
+install: build
+ oh-autoinstall -- -f makefile.shared \
+ LIBPATH='/usr/lib/$(OPK_HOST_ARCH)' \
+ INSTALL_GROUP=0
+ rm dest/usr/lib/$(OPK_HOST_ARCH)/libtomcrypt.la
+ oh-fixperms
+ oh-strip
+ oh-installfiles