Welcome! Log In Create A New Profile

Advanced

I need build help

Posted by WiiPhlex 
I need build help
August 09, 2008 07:27AM
I'm unable to make a certain project under my current environment, I would appreciate it a lot of someone could do this for me, you may have to change the make file to suit your directories. But please I would REALLY REALLY REALLY like it if some one could build this for me -> [www.sendspace.com]

Thanks
Re: I need build help
August 09, 2008 07:40AM
Didn't you post this last night? I saw batch files, which means Windows, which means I can't help you. How about expanding on what environment is required to build it? :P
Re: I need build help
August 09, 2008 07:48AM
Yeah, I did post last night, feel free to do whatever you want to the make file and whatever else, but I just can't build it :( if anyone can build I would be very happy.

edit: i really don't care what you do with it, the source is all there, I just need the build! :-/

Oh, and heres the make file too

Quote
makefile
#---------------------------------------------------------------
# GAMECUBE MAKEFILE
#
# Project: xRick Gamecube
#
# Author: Anders Granlund (Gamecube port)
# bigorno (Original Linux version)
#
#
# Gamecube version based on the GP32 port (Anders Granlund)
# of the original Linux version (bigorno)
#
# Application built using open source Gamecube SDK - OpenGC.
# No official development tools were used.
#
#---------------------------------------------------------------


#---------------------------------------------------------------
# Toolchain utilities
#---------------------------------------------------------------
CC = powerpc-eabi-elf-gcc
AS = powerpc-eabi-elf-gcc
LD = powerpc-eabi-elf-gcc
OC = powerpc-eabi-elf-objcopy
EX = bin2dol
RM = rm

#---------------------------------------------------------------
# System directories
#---------------------------------------------------------------
SYSDIR = c:/
INCDIR = $(SYSDIR)/lib
LIBDIR = $(SYSDIR)/lib


#---------------------------------------------------------------
# Assembly files
#---------------------------------------------------------------
#.SFILES = crt0.s


#---------------------------------------------------------------
# C files
#---------------------------------------------------------------
.CFILES = scr_xrick.c \
scr_pause.c \
scr_imain.c \
scr_imap.c \
scr_gameover.c \
scr_getname.c \
dat_pics.c \
dat_screens.c \
dat_tiles.c \
dat_maps.c \
dat_ents.c \
dat_sprites.c \
ents.c \
e_bullet.c \
e_bomb.c \
e_rick.c \
e_sbonus.c \
e_them.c \
e_bonus.c \
e_box.c \
rects.c \
util.c \
game.c \
xrick.c \
draw.c \
maps.c \
sysvid.c \
syskbd.c \
control.c \
system.c \
scroller.c \
sysevt.c \
sysarg.c \
syssnd.c \
sysmemory.c \
$(LIBDIR)/audio.c \
$(LIBDIR)/color.c \
$(LIBDIR)/debug.c \
$(LIBDIR)/dvd.c \
$(LIBDIR)/interrupt.c \
$(LIBDIR)/memcard.c \
$(LIBDIR)/pad.c \
$(LIBDIR)/random.c \
$(LIBDIR)/render.c \
$(LIBDIR)/video.c \



#---------------------------------------------------------------
# System libraries
#---------------------------------------------------------------
SYSLIBS =


#---------------------------------------------------------------
# Object files
#---------------------------------------------------------------
.OFILES = $(.SFILES:.s=.o) $(.SFILES:.S=.o) $(.CFILES:.c=.o)

#---------------------------------------------------------------
# C Compiler flags
#---------------------------------------------------------------
CFLAGS = -g -I$(INCDIR) -O2 -nostdlib \
-DGFXST \
-msoft-float \
# -finline-functions -funroll-loops \

#---------------------------------------------------------------
# Linker flags
#---------------------------------------------------------------
LDFLAGS = -Wl,-Ttext,0x80003100 -Wl,-Map,xrick.map -L$(LIBDIR) $(SYSLIBS)

#---------------------------------------------------------------
# Objcopy flags
#---------------------------------------------------------------
OCFLAGS = --strip-unneeded -O binary

#---------------------------------------------------------------
# Target settings
#---------------------------------------------------------------
TARGET_NAME = xrick
DEPENDFILE = Makedepend
MAPFILE = $(TARGET_NAME).map
TARGET_ELF = $(TARGET_NAME).elf
TARGET_BIN = $(TARGET_NAME).bin
TARGET_EXE = $(TARGET_NAME).dol
LDSCRIPT =





#---------------------------------------------------------------
# Build process
#---------------------------------------------------------------
$(TARGET_EXE): $(TARGET_BIN)
$(EX) $< $@

$(TARGET_BIN): $(TARGET_ELF)
$(OC) $(OCFLAGS) $< $@

$(TARGET_ELF): $(.OFILES) Makefile $(DEPENDFILE)
$(LD) -g -o $@ crt0.s $(.OFILES) $(LDFLAGS)

.PHONY: all clean depend

all: clean depend $(TARGET_EXE)

tags: $(DEPENDFILE)
ctags -e *.c *.s *.h *.S

clean:
-$(RM) $(.OFILES) $(DEPENDFILE) $(MAPFILE) $(TARGET_ELF) $(TARGET_BIN) $(TARGET_EXE) TAGS

depend:
$(CC) $(CFLAGS) -M $(.CFILES) > $(DEPENDFILE)

$(DEPENDFILE):
$(CC) $(CFLAGS) -M $(.CFILES) > $(DEPENDFILE)

include $(DEPENDFILE)



Edited 2 time(s). Last edit at 08/09/2008 08:04AM by WiiPhlex.
Re: I need build help
August 09, 2008 08:32AM
This must be ooooold (OpenGC was an ancient libogc or something else entirely?)... I don't have the environment to build it either, sorry.
Re: I need build help
August 09, 2008 09:19AM
I think the game came out in the 70's oringinally so yeah it is old lol, thanks for looking anyway.
Re: I need build help
August 09, 2008 04:20PM
Did you try just modify the makefile of the wii-examples template?
I tried to build this way and get this:
/home/nilton/wiidev/xRick/xrick_source/src/system.h:15:19: error: mygcn.h: No such file or directory
Re: I need build help
August 09, 2008 07:45PM
Quote
ShinNiL
Did you try just modify the makefile of the wii-examples template?
I tried to build this way and get this:
/home/nilton/wiidev/xRick/xrick_source/src/system.h:15:19: error: mygcn.h: No such file or directory

That's what I did then gave up when it seemed to not be using libogc.

Chances are you're going to have to port it to libogc before getting it to build, WiiPhlex.



Edited 1 time(s). Last edit at 08/09/2008 07:46PM by AerialX.
Sorry, only registered users may post in this forum.

Click here to login