summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-04-15 00:58:57 -0700
committerOri Bernstein <ori@eigenstate.org>2015-08-24 22:10:06 -0700
commitca5cfce97b1a41ab70a983117e9ecf8fc605c5d2 (patch)
treeec0ee9121d271a2a51f3505e3aba01b896460eb9
parentd03fc800fc2ad91ee41e05c0145281cd7b11d77d (diff)
downloadmc-ca5cfce97b1a41ab70a983117e9ecf8fc605c5d2.tar.gz
Move fully to newest mbld.
Delete the makefiles, and rename bldfile to bld.proj
-rw-r--r--libcryptohash/Makefile13
-rw-r--r--libcryptohash/bld.proj (renamed from libcryptohash/bldfile)0
-rwxr-xr-xlibcryptohash/configure52
-rw-r--r--libcryptohash/mk/myr.mk97
4 files changed, 0 insertions, 162 deletions
diff --git a/libcryptohash/Makefile b/libcryptohash/Makefile
deleted file mode 100644
index be65725..0000000
--- a/libcryptohash/Makefile
+++ /dev/null
@@ -1,13 +0,0 @@
-MYRLIB=cryptohash
-MYRSRC= \
- md5.myr \
- sha1.myr \
- sha256.myr \
- sha512.myr \
- # sha3.myr \
-
-include config.mk
-include mk/myr.mk
-
-check: all
- make -C test check
diff --git a/libcryptohash/bldfile b/libcryptohash/bld.proj
index b6056f7..b6056f7 100644
--- a/libcryptohash/bldfile
+++ b/libcryptohash/bld.proj
diff --git a/libcryptohash/configure b/libcryptohash/configure
deleted file mode 100755
index 37fe623..0000000
--- a/libcryptohash/configure
+++ /dev/null
@@ -1,52 +0,0 @@
-#!/bin/sh
-
-prefix="/usr/local"
-
-for i in `seq 300`; do
- echo "Lots of output to emulate automake... ok"
- echo "Testing for things you'll never use... fail"
- echo "Satisfying the fortran77 lobby... ok"
- echo "Burning CPU time checking for the bloody obvious... ok"
-done
-echo "Automake emulated successfully"
-
-INST_ROOT='/usr/local'
-
-for arg in $*; do
- shift 1
- case $arg in
- "--prefix" | "-p")
- prefix=shift $*
- ;;
- --prefix=*)
- prefix=`echo $arg | sed 's/^--prefix=//g'`
- ;;
- "--help" | "-h")
- echo "Usage:"
- echo " --prefix | -p: The prefix to install to"
- break;
- ;;
- *) echo "Unrecognized argument $arg";;
- esac
-done
-
-OS=`uname`
-
-echo export INST_ROOT=$prefix > config.mk
-case $OS in
- *Linux*)
- echo 'export SYS=linux' >> config.mk
- ;;
- *Darwin*)
- echo 'export SYS=osx' >> config.mk
- ;;
- *)
- echo 'Unknown architecture.'
- ;;
-esac
-
-cat << EOF
- Building with:
- prefix=$prefix
-EOF
-
diff --git a/libcryptohash/mk/myr.mk b/libcryptohash/mk/myr.mk
deleted file mode 100644
index 3a6f300..0000000
--- a/libcryptohash/mk/myr.mk
+++ /dev/null
@@ -1,97 +0,0 @@
-ifneq ($(MYRLIB),)
- _LIBNAME=lib$(MYRLIB).a
-endif
-
-all: subdirs $(_LIBNAME) $(MYRBIN)
-
-subdirs:
- @for i in $(SUB); do (\
- cd $$i && \
- $(MAKE) || \
- exit 1 \
- ) || exit 1; done
-
-subdirs-clean:
- @for i in $(SUB); do (\
- cd $$i && \
- $(MAKE) clean|| \
- exit 1 \
- ); done
-
-subdirs-install:
- @for i in $(SUB); do (\
- cd $$i && \
- $(MAKE) install|| \
- exit 1 \
- ); done
-
-subdirs-uninstall:
- @for i in $(SUB); do (\
- cd $$i && \
- $(MAKE) uninstall|| \
- exit 1 \
- ); done
-
-$(_LIBNAME): $(MYRSRC) $(ASMSRC)
- myrbuild -l $(MYRLIB) $^
-
-$(MYRBIN): $(MYRSRC) $(ASMSRC)
- myrbuild -b $(MYRBIN) $^
-
-OBJ=$(MYRSRC:.myr=.o) $(ASMSRC:.s=.o)
-USE=$(MYRSRC:.myr=.use) $(MYRLIB)
-.PHONY: clean
-clean: subdirs-clean
- rm -f $(OBJ)
- rm -f $(USE)
- @if [ ! -z "$(MYRLIB)" ]; then \
- echo rm -f $(MYRLIB); \
- rm -f $(MYRLIB); \
- echo rm -f lib$(MYRLIB).a; \
- rm -f lib$(MYRLIB).a; \
- fi
- @if [ ! -z "$(MYRBIN)" ]; then \
- echo rm -f $(MYRBIN); \
- rm -f $(MYRBIN); \
- echo rm -f lib$(MYRBIN).a; \
- rm -f lib$(MYRBIN).a; \
- fi
-
-install: subdirs-install $(MYRBIN) $(_LIBNAME) $(MAN)
- @if [ ! -z "$(MYRBIN)" ]; then \
- echo install $(MYRBIN) $(abspath $(DESTDIR)/$(INST_ROOT)/bin); \
- mkdir -p $(abspath $(DESTDIR)/$(INST_ROOT)/bin); \
- install $(MYRBIN) $(abspath $(DESTDIR)/$(INST_ROOT)/bin); \
- fi
- @if [ ! -z "$(_LIBNAME)" ]; then \
- echo install -m 644 $(_LIBNAME) $(abspath $(DESTDIR)/$(INST_ROOT)/lib/myr); \
- echo install -m 644 $(MYRLIB) $(abspath $(DESTDIR)/$(INST_ROOT)/lib/myr); \
- mkdir -p $(abspath $(DESTDIR)/$(INST_ROOT)/lib/myr); \
- install -m 644 $(_LIBNAME) $(abspath $(DESTDIR)/$(INST_ROOT)/lib/myr); \
- install -m 644 $(MYRLIB) $(abspath $(DESTDIR)/$(INST_ROOT)/lib/myr); \
- fi
- @for i in $(MAN); do \
- MANSECT=$$(echo $$i | awk -F. '{print $$NF}'); \
- echo mkdir -p $(abspath $(DESTDIR)/$(INST_ROOT)/share/man/man$$MANSECT); \
- echo install -m 644 $(MAN) $(abspath $(DESTDIR)/$(INST_ROOT)/share/man/man$${MANSECT}); \
- mkdir -p $(abspath $(DESTDIR)/$(INST_ROOT)/share/man/man$$MANSECT); \
- install -m 644 $(MAN) $(abspath $(DESTDIR)/$(INST_ROOT)/share/man/man$${MANSECT}); \
- done \
-
-uninstall: subdirs-uninstall
- @for i in $(MYRBIN); do \
- echo rm -f $(abspath $(DESTDIR)/$(INST_ROOT)/bin/$$i); \
- rm -f $(abspath $(DESTDIR)/$(INST_ROOT)/bin/$$i); \
- done
- @for i in $(_LIBNAME) $(MYRLIB); do \
- echo rm -f $(abspath $(DESTDIR)/$(INST_ROOT)/lib/myr/$$i); \
- rm -f $(abspath $(DESTDIR)/$(INST_ROOT)/lib/myr/$$i); \
- done
- @for i in $(MAN); do \
- MANSECT=$$(echo $$i | awk -F. '{print $$NF}'); \
- echo rm -f $(abspath $(DESTDIR)/$(INST_ROOT)/share/man/man$${MANSECT}/$$i); \
- rm -f $(abspath $(DESTDIR)/$(INST_ROOT)/share/man/man$${MANSECT}/$$i); \
- done
-
-config.mk:
- ./configure