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)