BackupGGCode / quake-gamecube

A port of id Software's Quake to Nintendo Wii and GameCube.
10 stars 2 forks source link

quake-wii won't compile after checkout (diff included) #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Made some minor changes to the Makefile (quake-wii/build/wii/Makefile) to 
make it compile right after checkout, assuming you have all the right libs 
and envs.

Index: Makefile
===================================================================
--- Makefile    (revision 120)
+++ Makefile    (working copy)
@@ -1,5 +1,6 @@
 # About the release.
 VERSION    := WIP
+include $(DEVKITPPC)/wii_rules

 # Directories.
 SRC_DIR        := ../../src
@@ -21,9 +22,9 @@
 COMMON_FLAGS   := -mcpu=750 -meabi -mhard-float -g -Wall -pipe -mrvl
 OPT_FLAGS      := -Os -fno-merge-constants -fno-strict-aliasing -
fsingle-precision-constant
 DEFINES            := -DGEKKO
-CFLAGS         := $(COMMON_FLAGS) $(OPT_FLAGS) $(DEFINES) -I
$(DEVKITPRO)/libogc/include
+CFLAGS         := $(COMMON_FLAGS) $(OPT_FLAGS) $(DEFINES) -I
$(DEVKITPRO)/libogc/include -I$(DEVKITPRO)/libfat/include
 CXXFLAGS       := $(CFLAGS) -Weffc++ -fno-exceptions -fno-rtti
-LDFLAGS            := $(COMMON_FLAGS) -L$(DEVKITPRO)/libogc/
lib/wii
+LDFLAGS            := $(COMMON_FLAGS) -L$(DEVKITPRO)/libogc/
lib/wii -L$(DEVKITPRO)/libfat/lib/wii

 # Linker info.
 LIBS := -lwiiuse -lbte -lfat -logc

Original issue reported on code.google.com by dougler...@gmail.com on 9 Jun 2008 at 8:26

GoogleCodeExporter commented 9 years ago
Libfat, when compiled and installed from source, install itself inside the 
libogc 
directories. But as this patch doesn't interfere with anything if the 
directories 
doesn't exist, it has been applied to help people with setups similar to yours.

Original comment by elua...@gmail.com on 12 Jun 2008 at 2:46