summaryrefslogtreecommitdiff
path: root/tools/mkcrypt/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tools/mkcrypt/Makefile')
-rw-r--r--tools/mkcrypt/Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/tools/mkcrypt/Makefile b/tools/mkcrypt/Makefile
new file mode 100644
index 000000000..e6c8d83e1
--- /dev/null
+++ b/tools/mkcrypt/Makefile
@@ -0,0 +1,22 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:= mkcrypt
+PKG_VERSION:= 0.1
+PKG_RELEASE:= 1
+NO_DISTFILES:= 1
+
+include ../rules.mk
+
+$(WRKBUILD)/.compiled: ${WRKDIST}/.prepared
+ $(HOSTCC) -o $(WRKBUILD)/mkcrypt mkcrypt.c
+ touch $@
+
+$(WRKBUILD)/.installed: $(WRKBUILD)/.compiled
+ $(INSTALL_BIN) $(WRKBUILD)/mkcrypt \
+ ${STAGING_TOOLS}/bin
+ touch $@
+
+include $(TOPDIR)/mk/tools.mk