DreamGL Md2
Posted: Fri Apr 29, 2005 2:41 am
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
nothing too big, just wanted to point this out for people that are having trouble compling DreamGL
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 "-------------------------------------------------"
$(CC) -c $(CFLAGS) $< -o $@
%.o: %.s
@echo "-------------------------------------------------"
$(CC) -xassembler-with-cpp -c $(CFLAGS) $< -o $@
clean:
rm -f *.o *.elf