1 # -*- mode: makefile -*-
11 @echo
" Try the target: cygwin.buildtest or linux.buildtest "
17 .PHONY
: remove.
install
20 ${MAKE} -f Makefile.ftd2xx
clean all
21 ${MAKE} -f Makefile.openocd cygwin.easy.permutations
22 ${MAKE} -f Makefile.openocd mingw32.easy.permutations
23 ${MAKE} -f Makefile.libftdi
all
24 ${MAKE} -f Makefile.openocd cygwin.libftdi
27 ${MAKE} linux.easy.buildtest
28 ${MAKE} linux.ftd2xx_installed
29 ${MAKE} linux.ft2232_libftdi
32 @echo
"========================================"
33 @echo
" Linux Build Tests Complete "
34 @echo
"========================================"
40 @
test -d openocd ||
(echo
"Where the source to openocd?" && exit
1)
41 ${MAKE} -f Makefile.openocd bootstrap
42 ${MAKE} -f Makefile.ftd2xx
all
43 ${MAKE} -f Makefile.openocd linux.easy.permutations
45 linux.ftd2xx_installed
:
46 ${MAKE} remove.
install
47 ${MAKE} linux.ftd2xx_installed.setup
48 ${MAKE} -f Makefile.openocd
$@
51 ${MAKE} remove.
install
52 ${MAKE} -f Makefile.libusb
all
53 ${MAKE} -f Makefile.confuse
all
54 ${MAKE} -f Makefile.libftdi
all
55 ${MAKE} -f Makefile.openocd
$@
57 # This target is used to "install" files from
58 # the FTDICHIP.COM tar.gz unpack directory
59 # into "a proper place" - where they should be found.
60 linux.ftd2xx_installed.setup
:
61 mkdir
-p
${INSTALL_DIR}/include
62 mkdir
-p
${EXEC_PREFIX}/lib
64 @
# Sanity check - make sure the .H file is findable
66 @f
=$(FTD2XX_LINUX_DIR
)/ftd2xx.h
&& \
67 test -f
$$f ||
(echo
"Error: $$f not found" ; exit
1)
69 @
# Header files are simple... just copy them.
71 cp
$(FTD2XX_LINUX_DIR
)/ftd2xx.h
$(PREFIX
)/include/.
72 cp
$(FTD2XX_LINUX_DIR
)/WinTypes.h
$(PREFIX
)/include/.
74 @
# .SO files are harder.
75 @
# (1) copy them, (2) make links
77 cp
$(FTD2XX_LINUX_DIR
)/libftd2xx.so.
$(FTD2XX_LINUX_VERSION
) $(EXEC_PREFIX
)/lib
/.
78 cd
$(EXEC_PREFIX
)/lib
&& rm -f libftd2xx.so
.0
79 cd
$(EXEC_PREFIX
)/lib
&& ln
-s libftd2xx.so.
$(FTD2XX_LINUX_VERSION
) libftd2xx.so
.0
80 cd
$(EXEC_PREFIX
)/lib
&& rm -f libftd2xx.so
81 cd
$(EXEC_PREFIX
)/lib
&& ln
-s libftd2xx.so.
$(FTD2XX_LINUX_VERSION
) libftd2xx.so
86 ${MAKE} -f Makefile.confuse download
87 ${MAKE} -f Makefile.libftdi download
88 ${MAKE} -f Makefile.ftd2xx download
89 ${MAKE} -f Makefile.libusb download
91 .PHONY
: linux.buildtest \
92 linux.easy.buildtest \
93 linux.ftd2xx_installed \
94 linux.ft22232_libftdi \
95 linux.ftd2xx_installed.setup