summaryrefslogtreecommitdiff
path: root/old/Makefile.wiz.bck
diff options
context:
space:
mode:
Diffstat (limited to 'old/Makefile.wiz.bck')
-rw-r--r--old/Makefile.wiz.bck82
1 files changed, 82 insertions, 0 deletions
diff --git a/old/Makefile.wiz.bck b/old/Makefile.wiz.bck
new file mode 100644
index 0000000..b682196
--- /dev/null
+++ b/old/Makefile.wiz.bck
@@ -0,0 +1,82 @@
+COPT = -mcpu=arm926ej-s -mtune=arm926ej-s -g -O3 -static -D__WIZ__ -DUSE_SA1
+COPT += -ffast-math -fexpensive-optimizations -finline -finline-functions -msoft-float
+# -msoft-float
+COPT += -falign-functions=32 -falign-loops -falign-labels -falign-jumps -fomit-frame-pointer
+SDK = $(HOME)/GPH_SDK
+TOOLS = $(SDK)/tools/gcc-4.0.2-glibc-2.3.6/arm-linux/bin
+ARCH = arm-linux-
+GCC = $(TOOLS)/$(ARCH)gcc
+STRIP = $(TOOLS)/$(ARCH)strip
+ADSASM = $(TOOLS)/$(ARCH)as
+COPT += -I$(SDK)/include
+COPT += -L$(SDK)/lib/target
+#
+# SNES stuff (c-based)
+#
+OBJS = memset.o memcpy.o 2xsaiwin.o apu.o c4.o c4emu.o cheats.o cheats2.o clip.o cpu.o cpuexec.o data.o
+OBJS += dma.o dsp1.o fxemu.o fxinst.o gfx.o globals.o loadzip.o memmap.o ppu.o sa1.o sa1cpu.o
+OBJS += sdd1.o sdd1emu.o snapshot.o soundux.o spc700.o spc700a.o srtc.o tile.o usbjoy.o cpuops.o os9x_asm_cpu.o
+#
+# and some asm from LJP...
+#
+OBJS += m3d_func.o
+#
+# Dave's minimal SDK
+#
+OBJS += wiz_sdk.o warm.o menu.o input.o gp2x_menutile.o gp2x_highlightbar.o \
+ gp2x_menu_header.o unzip.o ioapi.o squidgehack.o zip.o asm_util.o pollux_set.o
+
+#
+# and the glue code that sticks it all together :)
+#
+OBJS += main.o
+
+# Inopia's menu system, hacked for the GP2X under rlyeh's sdk
+PRELIBS = -lpthread -lz $(LIBS)
+
+all: pocketsnes.gpe
+clean: tidy pocketsnes.gpe
+
+.c.o:
+ $(GCC) $(COPT) -c $< -o $@
+
+.cpp.o:
+ $(GCC) $(COPT) -c $< -o $@
+
+# make seems to lowercase the extensions, so files with '.S' end up being passed to the compiler as '.s', which means thousands of errors.
+# this is a small workaround.
+
+spc700a.o: spc700a.s
+ $(GCC) $(COPT) -c $< -o $@
+
+os9x_65c816.o: os9x_65c816.s
+ $(GCC) $(COPT) -c $< -o $@
+
+osnes9xgp_asmfunc.o: osnes9xgp_asmfunc.s
+ $(GCC) $(COPT) -c $< -o $@
+
+m3d_func.o: m3d_func.S
+ $(GCC) $(COPT) -c $< -o $@
+
+spc_decode.o: spc_decode.s
+ $(GCC) $(COPT) -c $< -o $@
+
+memset.o: memset.s
+ $(GCC) $(COPT) -c $< -o $@
+
+memcpy.o: memcpy.s
+ $(GCC) $(COPT) -c $< -o $@
+
+dspMixer.o: dspMixer.s
+ $(GCC) $(COPT) -c $< -o $@
+
+asm_util.o: asm_util.S
+ $(GCC) $(COPT) -c $< -o $@
+
+pocketsnesd.gpe: $(OBJS)
+ $(GCC) $(COPT) $(OBJS) $(PRELIBS) -o $@ -lstdc++ -lm
+
+pocketsnes.gpe: pocketsnesd.gpe
+ $(STRIP) pocketsnesd.gpe -o pocketsnes_wiz.gpe
+tidy:
+ rm *.o