1. Download the newest devkitProUpdater on sourceforge
2. Run it, choose "devkitARM" instead of "Full" (you may even want to go in there and uncheck gba and mirko stuff) and choose your USB drive letter instead of the C: drive (e.g. E:\devkitPro). This should download and then install everything onto your USB drive.
3. I noticed the Makefile you posted above seems to be from an older devkitPro download. I would suggest you start with the newest version. So, from the libnds examples, copy the examples\nds\templates\arm9 folder to someplace on your USB drive and rename the folder to whatever you want (e.g. E:\myDSproject\). Now, if you need to, make your custom changes to E:\myDSproject\Makefile
4. Inside E:\myDSproject\ folder, make a new text file and rename it to something like "devkitProCmdLine.bat" and paste this into it:
Code: Select all
@echo off
set DL=%~D0%
set DKPHOME=devkitPro
set DEVKITPRO=/%DL:~0,1%/%DKPHOME%
set DEVKITARM=%DEVKITPRO%/devkitARM
set PATH=%DL%\%DKPHOME%\msys\bin;%PATH%
cmd
At a basic functioning level, that should be it.
Let's test it. Go to some random windows box (without admin rights), plug in your USB drive and double click "devkitProCmdLine.bat"
You should now have a command prompt with the appropriate environment variables set. Try typing "make".