| View previous topic :: View next topic |
| Author |
Message |
Thanhda

Joined: 09 Apr 2005 Posts: 331 Location: Canada
|
Posted: Fri Apr 29, 2005 2:41 am Post subject: DreamGL Md2 |
|
|
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 |
|
 |
boomint
Joined: 13 Apr 2004 Posts: 80 Location: Sheffield, UK
|
Posted: Fri Apr 29, 2005 2:56 am Post subject: |
|
|
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 |
|
 |
|