gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Beginners > Makefile Question

#38097 - Vylrath - Mon Mar 21, 2005 11:11 pm

I'm trying to alter the default Makefile from devkitARM to suit my programming needs. I will eventually use this Makefile to use in a Visual Studio project, but for now, I just want one that will work in a command-line environment.

Code:

PREFIX         :=   arm-elf-
export CC      :=   $(PREFIX)gcc
export CXX      :=   $(PREFIX)g++
export AR      :=   $(PREFIX)ar
export OBJCOPY   :=   $(PREFIX)objcopy

all:
   $(CC)  -marm -c $(CRT).s -o$(CRT).o
   $(CC)  -marm -mthumb-interwork -c $(CRT).s -o interwork/$(CRT).o
   $(CC)  -mthumb -c $(CRT).s -o thumb/$(CRT).o
   $(CC)  -mthumb -mthumb-interwork -c $(CRT).s -o thumb/interwork/$(CRT).o


My question is, what does $(CRT) represent? I see that it is used when the name of the program is being referred to, but I don't see an explicit definition listed. Note: this is the full Makefile that was included with devkitARM.

Thanks!!
_________________
Brian Chambers
brian.chambers@charter.net

#38106 - wintermute - Tue Mar 22, 2005 12:27 am

That's not a default makefile, it's part of the installation process.


http://sourceforge.net/projects/devkitpro


SourceForge Docs wrote:


Anonymous CVS Access

This project's SourceForge.net CVS repository can be checked out through anonymous (pserver) CVS with the following instruction set. The module you wish to check out must be specified as the modulename. When prompted for a password for anonymous, simply press the Enter key. To determine the names of the modules created by this project, you may examine their CVS repository via the provided web-based CVS repository viewer.

cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/devkitpro login

cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/devkitpro co -P modulename



using libgba & examples/gba in place of modulename should give you some interesting things to play with. All the gba examples have a generic makefile which will work with pretty much any project.

#38111 - Vylrath - Tue Mar 22, 2005 1:07 am

Ah, I see! Kewl, thanks! :-)
_________________
Brian Chambers
brian.chambers@charter.net