forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DreamGL Md2

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development
View previous topic :: View next topic  
Author Message
Thanhda



Joined: 09 Apr 2005
Posts: 331
Location: Canada

PostPosted: Fri Apr 29, 2005 2:41 am    Post subject: DreamGL Md2 Reply with quote

here a new update to the Make file for dfreak demo, also need to download main_ps2.c from cvs. the only diff is the dir PS2LIB=/user/local/ps2dev/ps2sdk

Code:

#----------------------------------------------------------------------------
# File:         Makefile
#----------------------------------------------------------------------------
CC=ee-gcc
AS=ee-as
LD=ee-ld
AR=ee-ar

PS2LIB=/usr/local/ps2dev/ps2sdk

DIR_LIB=../../lib
DIR_INC=../../include

LIB_DREAMGL=$(DIR_LIB)/libdreamgl.a

STD_LIBS=-lm -lc -lkernel -lc -lgcc
DEMO_LIBS= -ldreamgl $(STD_LIBS)

CFLAGS= \
        -Wall -W -EL -G0 -O3 -mips3 -nostdlib \
        -I$(DIR_INC) \
        -I$(PS2LIB)/common/include \
        -I$(PS2LIB)/ee/include \
        -L$(PS2LIB)/ee/lib \
        -L$(DIR_LIB) \
        -DDGL_PS2

LINKFILE=$(PS2LIB)/ee/startup/linkfile
CRTFILE=$(PS2LIB)/ee/startup/crt0.o

md2view.elf: model.o skin.o demo.o main_ps2.o
        @echo "-------------------------------------------------"
        $(CC) $(CFLAGS) -T$(LINKFILE) -o md2view.elf main_ps2.o demo.o skin.o model.o $(CRTFILE) $(DEMO_LIBS)

%.o: %.c
        @echo "-------------------------------------------------"
        $(CC) -c $(CFLAGS) $< -o $@

%.o: %.s
        @echo "-------------------------------------------------"
        $(CC) -xassembler-with-cpp -c $(CFLAGS) $< -o $@

clean:
        rm -f *.o *.elf


nothing too big, just wanted to point this out for people that are having trouble compling DreamGL
_________________
There are 10 types of people in the world: Those who understand binary, and those who don't...
Back to top
View user's profile Send private message Visit poster's website
boomint



Joined: 13 Apr 2004
Posts: 80
Location: Sheffield, UK

PostPosted: Fri Apr 29, 2005 2:56 am    Post subject: Reply with quote

Or you could remove "PS2LIB=/usr/local/ps2dev/ps2sdk" altogether and update the the path variable to use PS2SDK instead?

Code:
        -I$(PS2SDK)/common/include \
        -I$(PS2SDK)/ee/include \
        -L$(PS2SDK)/ee/lib \

_________________
--( someone stole my sig! )--
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group