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 > How to compile in devkitpro

#178342 - guybrushthreepwood - Mon Mar 16, 2015 5:44 pm

I just installed devkitpro and tried copy pasting the example makefile directly..

Code:

SUBDIRS:= `ls | egrep -v '^(CVS)$$'`

DATESTRING   :=   $(shell date +%Y%m%d)

all:
   @for i in $(SUBDIRS); do if test -e $$i/Makefile ; then $(MAKE) -C $$i || { exit 1;} fi; done;
clean:
   @for i in $(SUBDIRS); do if test -e $$i/Makefile ; then $(MAKE)  -C $$i clean || { exit 1;} fi; done;
install:
   @for i in $(SUBDIRS); do if test -e $$i/Makefile ; then $(MAKE)  -C $$i install || { exit 1;} fi; done;

#---------------------------------------------------------------------------------
dist: clean
#---------------------------------------------------------------------------------
   @tar --exclude=*CVS* --exclude=.svn -cvjf gba-examples-$(DATESTRING).tar.bz2 *


but when I try to make it just says

> "make"

> Process Exit Code: 0
> Time Taken: 00:01

so what is an easy way I can compile my project? We were looking into using devkit pro instead of visual HAM. Thanks.

#178343 - elhobbs - Mon Mar 16, 2015 11:50 pm

This makefile is for making all of the projects in sub folders. There are templates in the examples folder. Try building one of those. I think you are doing this already but make sure you are running make from the msys shell.