diff --git a/module_dfu/doc/Makefile b/module_dfu/doc/Makefile new file mode 100644 index 00000000..fa4a7542 --- /dev/null +++ b/module_dfu/doc/Makefile @@ -0,0 +1 @@ +SOURCE_INCLUDE_DIRS=../host/xmos_dfu_osx \ No newline at end of file diff --git a/module_dfu/doc/building_xmos_dfu.rst b/module_dfu/doc/building_xmos_dfu.rst index f3c3503c..769fffe1 100644 --- a/module_dfu/doc/building_xmos_dfu.rst +++ b/module_dfu/doc/building_xmos_dfu.rst @@ -2,9 +2,12 @@ Building the XMOS DFU loader - OS X =================================== The loader is compiled using libusb, the code for the loader is contained in the -file xmosdfu.cpp +file ``xmosdfu.cpp`` -To build the loader -------------------- +To build the loader a Makefile is provided, which can be run as follows: - ``g++ -m32 -o xmosdfu -I. xmosdfu.cpp libusb-1.0.0.dylib`` \ No newline at end of file + ``make -f Makefile.OSX all`` + +This Makefile contains the following: + +.. literalinclude:: Makefile.OSX