Home  ·  Downloads  ·  Your Account  ·  Submit News
Documentation Homepage
HAMLib reference
Back to HAM Homepage


Creating your first own Project

To set up a new project from scratch, follow these easy steps:

Thats all really. Now open a HAM shell as outlined here: Compiling your first Program .

Then all you have to do is compile your program like you did on the sample. Type make vba and, given your main.c had no errors, it should display right in the emulator. For more options how you can make your projects, see Standard Makefile Targets .

Tips and Tricks
If you want to add more files than main.c to your prjoect, this also should not be a problem: Just open the makefile in your project directory and find this line of code:
# 
# Set a list of files you want to compile 
# 
OFILES +=  main.o 

Now, for example, if the file you want to include in your project is called cool.c, change the line to look like this:

OFILES += main.o cool.o 

Save your makefile, and recompile the sources. You should now have included your new file in the GBA binary, if there are no errors.



Documentation Homepage | HAMLib reference | Back to HAM Homepage
documentation created with Doxygen