diff --git a/Makefile.wii b/Makefile.wii index 65d1a5d..d5ea3f9 100644 --- a/Makefile.wii +++ b/Makefile.wii @@ -19,10 +19,17 @@ INCLUDE_DIR := include # Tools. PIPE_TO_SED := 2>&1 | sed "s/:\([0-9]*\):/\(\1\) :/" +SYMLINKS=src/machdep src/osdep src/gfxdep src/joydep src/guidep src/sounddep src/threaddep + + # Source files. SRCS := $(wildcard $(SRC_DIR)/*.c $(SRC_DIR)/gfxdep/*.c $(SRC_DIR)/joydep/*.c $(SRC_DIR)/sounddep/*.c \ $(SRC_DIR)/threaddep/*.c $(SRC_DIR)/guidep/*.c $(SRC_DIR)/caps/*.c $(SRC_DIR)/dms/*.c \ - $(SRC_DIR)/osdep/*.c $(SRC_DIR)/keymap/*.c) $(SRC_DIR)/machdep/support.c + $(SRC_DIR)/osdep/*.c $(SRC_DIR)/keymap/*.c) \ + $(SRC_DIR)/machdep/support.c $(SRC_DIR)/gfxdep/rawkeys.c $(SRC_DIR)/guidep/gui-sdl.c $(SRC_DIR)/sounddep/sound.c \ + $(SRC_DIR)/gfxdep/sdlgfx.c $(SRC_DIR)/guidep/menu.c $(SRC_DIR)/osdep/main.c $(SRC_DIR)/threaddep/thread.c + $(SRC_DIR)/gfxdep/sdlkeys.c $(SRC_DIR)/joydep/joystick.c $(SRC_DIR)/osdep/memory.c + SRCS := $(filter-out src/compemu_raw_x86.c src/compemu_fpp.c src/compemu_support.c src/svgancui.c src/build68k.c src/catweasel.c \ src/cdrom.c src/blkdev-libscg.c src/blkdev.c src/blitops.c src/akiko.c src/filesys_bootrom.c \ @@ -44,7 +51,7 @@ all: uae.dol # How to delete the intermediate files. clean: @echo Cleaning $(OBJ_DIR) - @rm -f $(OBJS) src/machdep src/target.h + @rm -f $(OBJS) src/machdep src/target.h $(SYMLINKS) $(OBJ_DIR): install -d $@ @@ -56,6 +63,30 @@ src/machdep: rm -f $@ cd src && ln -s md-ppc-gcc machdep +src/osdep: + rm -f $@ + cd src && ln -s od-generic osdep + +src/gfxdep: + rm -f $@ + cd src && ln -s gfx-sdl gfxdep + +src/joydep: + rm -f $@ + cd src && ln -s jd-sdl joydep + +src/guidep: + rm -f $@ + cd src && ln -s gui-sdl guidep + +src/sounddep: + rm -f $@ + cd src && ln -s sd-sdl sounddep + +src/threaddep: + rm -f $@ + cd src && ln -s td-sdl threaddep + src/target.h: rm -f $@ cd src && ln -s targets/t-wii.h target.h @@ -110,7 +141,7 @@ dist: uae.dol cd $@ && tar -czf ../uae-bin.tar.gz * # How to link an ELF. -uae.elf: src/machdep src/target.h src/sysconfig.h $(OBJS) +uae.elf: $(SYMLINKS) src/target.h src/sysconfig.h $(OBJS) @echo Linking $@ @-mkdir -p $(dir $@) powerpc-gekko-g++ -o $@ $(OBJS) $(LDFLAGS) diff --git a/src/gfxdep b/src/gfxdep deleted file mode 120000 index c4d4987..0000000 --- a/src/gfxdep +++ /dev/null @@ -1 +0,0 @@ -.././src/gfx-sdl \ No newline at end of file diff --git a/src/guidep b/src/guidep deleted file mode 120000 index 17d54c8..0000000 --- a/src/guidep +++ /dev/null @@ -1 +0,0 @@ -gui-sdl/ \ No newline at end of file diff --git a/src/joydep b/src/joydep deleted file mode 120000 index e8a14e2..0000000 --- a/src/joydep +++ /dev/null @@ -1 +0,0 @@ -.././src/jd-sdl \ No newline at end of file diff --git a/src/osdep b/src/osdep deleted file mode 120000 index d290dca..0000000 --- a/src/osdep +++ /dev/null @@ -1 +0,0 @@ -.././src/od-generic \ No newline at end of file diff --git a/src/sounddep b/src/sounddep deleted file mode 120000 index 21df6ee..0000000 --- a/src/sounddep +++ /dev/null @@ -1 +0,0 @@ -.././src/sd-sdl \ No newline at end of file diff --git a/src/threaddep b/src/threaddep deleted file mode 120000 index be55c9a..0000000 --- a/src/threaddep +++ /dev/null @@ -1 +0,0 @@ -.././src/td-sdl \ No newline at end of file