DreamGL Md2

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
User avatar
Thanhda
Posts: 331
Joined: Sat Apr 09, 2005 2:08 am
Location: Canada
Contact:

DreamGL Md2

Post by Thanhda »

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: Select all

#----------------------------------------------------------------------------
# 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 "-------------------------------------------------"
        $&#40;CC&#41; -c $&#40;CFLAGS&#41; $< -o $@

%.o&#58; %.s
        @echo "-------------------------------------------------"
        $&#40;CC&#41; -xassembler-with-cpp -c $&#40;CFLAGS&#41; $< -o $@

clean&#58;
        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...
boomint
Posts: 80
Joined: Tue Apr 13, 2004 2:21 am
Location: Sheffield, UK

Post by boomint »

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

Code: Select all

        -I$&#40;PS2SDK&#41;/common/include \
        -I$&#40;PS2SDK&#41;/ee/include \
        -L$&#40;PS2SDK&#41;/ee/lib \ 
--( someone stole my sig! )--
Post Reply