ARM: start generalized base type
[openocd/genbsdl.git] / testing / build.test1 / Makefile.libftdi
blob1a9612c0539e9c0a664be88f819d020484331c0a
1 # -*- mode: makefile -*-
2 default: _complain_
3 include ./local.uses
5 TARFILE_LOCAL    = ${VIRGINS}/libftdi-${LIBFTDI_VERSION}.tar.gz
6 TARFILE_URL      = http://www.intra2net.com/de/produkte/opensource/ftdi/TGZ/libftdi-${LIBFTDI_VERSION}.tar.gz
8 LIBFTDI_SRC_DIR  = ${HERE}/libftdi-${LIBFTDI_VERSION}
9 LIBFTDI_BUILD_DIR= ${HERE}/libftdi-build
11 download:
12         mkdir -p virgins
13         wget -O  ${TARFILE_LOCAL} ${TARFILE_URL}
15 clean::
16         rm -rf ${LIBFTDI_SRC_DIR}
18 unpack:
19         tar xf ${TARFILE_LOCAL}
21 PATH := ${EXEC_PREFIX}/bin:${PATH}
22 export PATH
24 clean::
25         rm -rf ${LIBFTDI_BUILD_DIR}
27 configure:
28         rm -rf ${LIBFTDI_BUILD_DIR}
29         mkdir -p ${LIBFTDI_BUILD_DIR}
30         cd ${LIBFTDI_BUILD_DIR} && ${LIBFTDI_SRC_DIR}/configure \
31                 --prefix=${PREFIX} \
32                 --exec-prefix=${EXEC_PREFIX}
34 build:
35         cd ${LIBFTDI_BUILD_DIR} && ${MAKE}
37 install: 
38         cd ${LIBFTDI_BUILD_DIR} && ${MAKE} install
40 all: unpack configure build install
42 .PHONY: install
44 _complain_:
45         @echo ""
46         @echo "Please try one of these targets: bootstrap, clean, configure, build, install"
47         @echo " Or read the makefile and learn about the permutation test targets"
48         @echo ""
49         @echo "You also might find the download and unpack targets helpful."
50         @echo ""
51         @exit 1