cortex_a8: add mrc mcr interface.
[openocd.git] / testing / build.test1 / Makefile
blob7271bf2c6dc17ba12f3d70f82617e535453b5d80
1 # -*- mode: makefile -*-
3 default: _complain_
4 include ./local.uses
6 %: _complain_
9 _complain_:
10 @echo ""
11 @echo " Try the target: cygwin.buildtest or linux.buildtest "
12 @echo ""
14 remove.install:
15 rm -rf ${INSTALL_DIR}
17 .PHONY: remove.install
19 cygwin.buildtest:
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
26 linux.buildtest:
27 ${MAKE} linux.easy.buildtest
28 ${MAKE} linux.ftd2xx_installed
29 ${MAKE} linux.ft2232_libftdi
30 @echo ""
31 @echo ""
32 @echo "========================================"
33 @echo " Linux Build Tests Complete "
34 @echo "========================================"
35 @echo ""
36 @echo ""
39 linux.easy.buildtest:
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 $@
50 linux.ft2232_libftdi:
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
84 all.download:
85 mkdir -p ${VIRGINS}
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