Page 1 of 1

DreamGL Md2

Posted: Fri Apr 29, 2005 2:41 am
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

Posted: Fri Apr 29, 2005 2:56 am
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 \