From fc58a6f6f8363319be753a71615650991be3e62a Mon Sep 17 00:00:00 2001 From: "simon.kagstrom" Date: Sat, 9 May 2009 08:54:52 +0000 Subject: [PATCH] Correct Wii makefile and fix clean rule --- Makefile.host | 2 +- Makefile.wii | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Makefile.host b/Makefile.host index 18088d2..be9df81 100644 --- a/Makefile.host +++ b/Makefile.host @@ -38,7 +38,7 @@ all: uae-host.elf # How to delete the intermediate files. clean: @echo Cleaning $(OBJ_DIR) - @rm -f $(OBJS) + @rm -f $(OBJS) src/machdep $(OBJ_DIR): install -d $@ diff --git a/Makefile.wii b/Makefile.wii index c97b520..4d925d5 100644 --- a/Makefile.wii +++ b/Makefile.wii @@ -43,7 +43,7 @@ all: uae.dol # How to delete the intermediate files. clean: @echo Cleaning $(OBJ_DIR) - @rm -f $(OBJS) + @rm -f $(OBJS) src/machdep $(OBJ_DIR): install -d $@ @@ -51,6 +51,10 @@ $(OBJ_DIR): src/sysconfig.h: src/sysconfig.h.wii cp $< $@ +src/machdep: + rm -f $@ + cd src && ln -s md-ppc-gcc machdep + %.h: %.h.wii cp $< $@ @@ -84,7 +88,7 @@ CFLAGS := $(COMMON_FLAGS) $(INCLUDES) $(DEFINES) LDFLAGS := $(COMMON_FLAGS) -L$(LIB_DIR) -L$(DEVKITPRO)/libogc/lib/wii -lz -lSDL_ttf -lSDL -lfreetype -lfat -lwiiuse -lbte -logc -lm # How to link an ELF. -uae.elf: src/sysconfig.h $(OBJS) +uae.elf: src/machdep src/sysconfig.h $(OBJS) @echo Linking $@ @-mkdir -p $(dir $@) powerpc-gekko-g++ -o $@ $(OBJS) $(LDFLAGS)