summaryrefslogtreecommitdiff
path: root/old/Makefile_giz
diff options
context:
space:
mode:
authoraliaspider2015-11-05 19:32:30 +0100
committeraliaspider2015-11-05 19:32:30 +0100
commit771178cf2078da10b9f07590329b3e7c7c7a9259 (patch)
tree8dc67765a4a8355487dc1ee796b6d3a51fcbfb20 /old/Makefile_giz
parent0731cea41cf04d205f98a7b3d516dfb7633265a7 (diff)
downloadsnes9x2002-771178cf2078da10b9f07590329b3e7c7c7a9259.tar.gz
snes9x2002-771178cf2078da10b9f07590329b3e7c7c7a9259.tar.bz2
snes9x2002-771178cf2078da10b9f07590329b3e7c7c7a9259.zip
move/delete some unused files.
Diffstat (limited to 'old/Makefile_giz')
-rw-r--r--old/Makefile_giz88
1 files changed, 88 insertions, 0 deletions
diff --git a/old/Makefile_giz b/old/Makefile_giz
new file mode 100644
index 0000000..f20d02c
--- /dev/null
+++ b/old/Makefile_giz
@@ -0,0 +1,88 @@
+#COPT = -static -g -I. -I C:/devkitGP2X/include -IC:/devkitGP2X/sysroot/usr/include -O3 -D__GP2X__
+
+SDK_BASE = C:/cygwin/usr/local/arm-wince-pe/lib/KGSDK
+ZLIB_BASE = C:/cygwin/usr/local/arm-wince-pe/lib/zlib
+
+#COPT = -IC:/cygwin/usr/local/arm-wince-pe/include -I$(SDK_BASE)/include -static -g -I. -O3 -mtune=arm920t -ftracer -fstrength-reduce -Wno-unused -funroll-loops -fomit-frame-pointer -fstrict-aliasing -ffast-math -D__GP2X__
+COPT = -IC:/cygwin/usr/local/arm-wince-pe/include -I$(SDK_BASE)/include -I$(ZLIB_BASE)/include -I . -mcpu=arm920 \
+ -mtune=arm920t -O2 -msoft-float -ffast-math -fstrict-aliasing -mstructure-size-boundary=8 \
+ -fexpensive-optimizations -fweb -frename-registers -fomit-frame-pointer -falign-functions -finline -finline-functions \
+ -fno-builtin -fno-common -D__GIZ__
+GCC = arm-wince-pe-gcc
+STRIP = arm-wince-pe-strip
+ADSASM = armasm
+
+#
+# SNES stuff (c-based)
+#
+OBJS = 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
+OBJS += sdd1.o snapshot.o soundux.o spc700.o srtc.o tile.o
+#
+# ASM CPU Core, ripped from Yoyo's OpenSnes9X
+#
+OBJS += os9x_asm_cpu.o os9x_65c816.o spc700a.o
+#osnes9xgp_asmfunc.o
+#RenderASM/render8.o
+#
+# and some asm from LJP...
+#
+OBJS += m3d_func.o spc_decode.o
+#
+#
+#
+OBJS += giz_kgsdk.o menu.o input.o gp2x_menutile.o gp2x_highlightbar.o \
+ gp2x_menu_header.o unzip.o ioapi.o giz_kgsdkasm.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 = -LC:/cygwin/usr/local/arm-wince-pe/lib -L$(ZLIB_BASE) -lzip -L$(SDK_BASE) -lKGSDK $(LIBS)
+
+all: squidgesnes.gpe
+clean: tidy squidgesnes.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.
+
+myuname.o: myuname.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 $@
+
+spc700a.o: spc700a.s
+ $(GCC) $(COPT) -c $< -o $@
+
+giz_kgsdkasm.o: giz_kgsdkasm.s
+ $(GCC) $(COPT) -c $< -o $@
+
+RenderASM/render8.o: RenderASM/render8.S
+ $(GCC) $(COPT) -c $< -o $@
+
+squidgesnesd.gpe: $(OBJS)
+ $(GCC) $(COPT) $(OBJS) -static $(PRELIBS) -o $@ -lstdc++ -lm
+
+squidgesnes.gpe: squidgesnesd.gpe
+ $(STRIP) squidgesnesd.gpe -o squidgesnes.gpe
+ cp squidgesnes.gpe autorun.exe
+tidy:
+ del *.o