Building the MPLAB C32 Libraries

Requirements:
- MPLAB C32 with both tools and library source installed
- MSYS (MinGW - Minimal SYStem) [http://www.mingw.org/msys.shtml]
- Knowledge of Bash

The following steps document how to build the libraries provided with
MPLAB C32.  Steps 1-8 are only required the first time:
 1) Install MPLAB C32
 2) Download MSYS from http://www.mingw.org/download.shtml
 3) Install MSYS
 4) Start MSYS
 5) Make an mplab-c32 directory at the root
    $ mkdir /mplab-c32
 6) Edit /etc/fstab (c:\msys\1.0\etc\fstab) by adding the line below 
    to define a new mount point
    (NOTE 1:  This assumes you installed the tools in the standard
    installation directory.  The DOS short path is required.  Use dir /x
    to show short path names.)
    (NOTE 2: There MUST be at least one blank between the DOS pathname and

    the MSYS mount point.)


    c:/PROGRA~1/MICROC~1/MPLABC~1      /mplab-c32

 7) Save /etc/fstab
 8) Exit MSYS
 9) Restart MSYS to add the new mount point
10) Add /mplab-c32/bin to your path
    $ export PATH=/mplab-c32/bin:$PATH
11) Change to the library source directory
    $ cd /mplab-c32/libsrc/peripheral
12) Run make utility
    $ make SUBDIRS=peripheral
13) Install the libraries into MPLAB C32 directory structure
    $ make DESTROOT=/mplab-c32 install
