summaryrefslogtreecommitdiff
path: root/testing/build.test1/Makefile.libftdi
diff options
context:
space:
mode:
authorduane <duane@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-12-27 01:30:06 +0000
committerduane <duane@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-12-27 01:30:06 +0000
commit92c9d46449a7562080ea0277a7b7309ed2bdba03 (patch)
treed08881c84c1ec71d5218e3292f7c730783dadf67 /testing/build.test1/Makefile.libftdi
parentf7274784a22e975dbab6a8b24770b652a813e64d (diff)
downloadopenocd_libswd-92c9d46449a7562080ea0277a7b7309ed2bdba03.tar.gz
openocd_libswd-92c9d46449a7562080ea0277a7b7309ed2bdba03.tar.bz2
openocd_libswd-92c9d46449a7562080ea0277a7b7309ed2bdba03.tar.xz
openocd_libswd-92c9d46449a7562080ea0277a7b7309ed2bdba03.zip
Renamed build.tests to build.test1
git-svn-id: svn://svn.berlios.de/openocd/trunk@1276 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'testing/build.test1/Makefile.libftdi')
-rwxr-xr-xtesting/build.test1/Makefile.libftdi51
1 files changed, 51 insertions, 0 deletions
diff --git a/testing/build.test1/Makefile.libftdi b/testing/build.test1/Makefile.libftdi
new file mode 100755
index 00000000..1a9612c0
--- /dev/null
+++ b/testing/build.test1/Makefile.libftdi
@@ -0,0 +1,51 @@
+# -*- mode: makefile -*-
+default: _complain_
+include ./local.uses
+
+TARFILE_LOCAL = ${VIRGINS}/libftdi-${LIBFTDI_VERSION}.tar.gz
+TARFILE_URL = http://www.intra2net.com/de/produkte/opensource/ftdi/TGZ/libftdi-${LIBFTDI_VERSION}.tar.gz
+
+LIBFTDI_SRC_DIR = ${HERE}/libftdi-${LIBFTDI_VERSION}
+LIBFTDI_BUILD_DIR= ${HERE}/libftdi-build
+
+download:
+ mkdir -p virgins
+ wget -O ${TARFILE_LOCAL} ${TARFILE_URL}
+
+clean::
+ rm -rf ${LIBFTDI_SRC_DIR}
+
+unpack:
+ tar xf ${TARFILE_LOCAL}
+
+PATH := ${EXEC_PREFIX}/bin:${PATH}
+export PATH
+
+clean::
+ rm -rf ${LIBFTDI_BUILD_DIR}
+
+configure:
+ rm -rf ${LIBFTDI_BUILD_DIR}
+ mkdir -p ${LIBFTDI_BUILD_DIR}
+ cd ${LIBFTDI_BUILD_DIR} && ${LIBFTDI_SRC_DIR}/configure \
+ --prefix=${PREFIX} \
+ --exec-prefix=${EXEC_PREFIX}
+
+build:
+ cd ${LIBFTDI_BUILD_DIR} && ${MAKE}
+
+install:
+ cd ${LIBFTDI_BUILD_DIR} && ${MAKE} install
+
+all: unpack configure build install
+
+.PHONY: install
+
+_complain_:
+ @echo ""
+ @echo "Please try one of these targets: bootstrap, clean, configure, build, install"
+ @echo " Or read the makefile and learn about the permutation test targets"
+ @echo ""
+ @echo "You also might find the download and unpack targets helpful."
+ @echo ""
+ @exit 1