aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2014-08-03 19:13:08 -0700
committerSteven Fackler <[email protected]>2014-08-03 19:13:08 -0700
commit497734d3e80174e327c0254cf5fa00ab362f9051 (patch)
tree82182f691aac9a7c164a4c372ee12dee688bacb1
parentMerge pull request #29 from sghost/with-bn (diff)
downloadrust-openssl-497734d3e80174e327c0254cf5fa00ab362f9051.tar.xz
rust-openssl-497734d3e80174e327c0254cf5fa00ab362f9051.zip
Remove Makefile infrastructure
-rw-r--r--.gitignore4
-rw-r--r--Makefile.in44
-rwxr-xr-xconfigure28
3 files changed, 1 insertions, 75 deletions
diff --git a/.gitignore b/.gitignore
index 61d6f2b1..4127eea2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,2 @@
/doc/
-/build/
-/Makefile
-/target
+/target/
diff --git a/Makefile.in b/Makefile.in
deleted file mode 100644
index 5b404687..00000000
--- a/Makefile.in
+++ /dev/null
@@ -1,44 +0,0 @@
-RUSTC ?= rustc
-BUILDDIR := target
-RUSTCFGS := %RUSTCFGS%
-RUSTFLAGS += -O --cfg ndebug $(RUSTCFGS)
-INSTALL_DIR := %PREFIX%
-
-OPENSSL_LIB := lib.rs
-OPENSSL := $(foreach file, \
- $(shell $(RUSTC) $(RUSTFLAGS) --print-file-name $(OPENSSL_LIB)),$(BUILDDIR)/$(file))
-OPENSSL_TEST := $(BUILDDIR)/$(shell $(RUSTC) --test --print-file-name $(OPENSSL_LIB))
-
-all: $(OPENSSL)
-
--include $(BUILDDIR)/openssl.d
--include $(BUILDDIR)/openssl_test.d
-
-$(BUILDDIR):
- mkdir -p $@
-
-.NOTPARALLEL: $(OPENSSL)
-
-$(OPENSSL): $(OPENSSL_LIB) | $(BUILDDIR)
- $(RUSTC) $(RUSTFLAGS) --dep-info $(@D)/openssl.d --out-dir $(@D) $<
-
-check: $(OPENSSL_TEST)
- $<
-
-$(OPENSSL_TEST): $(OPENSSL_LIB) | $(BUILDDIR)
- $(RUSTC) $(RUSTFLAGS) --test --dep-info $(@D)/openssl_test.d \
- --out-dir $(@D) $<
-
-clean:
- rm -rf $(BUILDDIR)
-
-doc: $(OPENSSL)
- rustdoc $(RUSTCFGS) $(OPENSSL_LIB)
-
-install: $(OPENSSL)
- install $(OPENSSL) $(INSTALL_DIR)
-
-print-target:
- @echo $(OPENSSL)
-
-.PHONY: all check clean print-target
diff --git a/configure b/configure
deleted file mode 100755
index 92ee62d1..00000000
--- a/configure
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/bin/bash
-
-cd $(dirname $0)
-
-TEMP=`getopt -o "" --long prefix:,enable-sslv2 -n "$0" -- "$@"`
-
-if [ $? != 0 ]; then exit 1; fi
-
-eval set -- "$TEMP"
-
-PREFIX=/usr/lib
-RUSTCFGS=
-
-while true ; do
- case "$1" in
- --prefix) PREFIX=$2; shift 2;;
- --enable-sslv2)
- RUSTCFGS="$RUSTCFGS --cfg sslv2"
- shift
- break
- ;;
- --) shift; break;;
- esac
-done
-
-sed -e "s|%PREFIX%|$PREFIX|" \
- -e "s|%RUSTCFGS%|$RUSTCFGS|" \
- < Makefile.in > Makefile