Mercurial > hg > old > magoroku_racing.bad
changeset 105:ef64f1182dc8
regularly .c file and .o remove
author | Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 02 Jun 2011 23:37:51 +0900 |
parents | e569ae55a089 |
children | 0c4b7d74e292 |
files | Makefile2 linda.c test_vector.c |
diffstat | 3 files changed, 0 insertions(+), 1547 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile2 Thu Jun 02 23:28:31 2011 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,629 +0,0 @@ -TARGET = main -CC = gcc -SRCS = main.c game.c car.c col.c quotanion.c controler.c field.c camera.c gSprite.c schedule.c mytype.c gFont.c carNode.c linda.c light.c title_scene.c game_time.c -OBJS = ${SRCS:.c=.o} -VU1DIR = vu1code - -MPGOBJ = mpg.elf - -VPUSRCS = ${VU1DIR}/Makefile ${VU1DIR}/MPG.dsm ${VU1DIR}/basic.vsm ${VU1DIR}/vpu.cmd ${VU1DIR}/vumacros.h -VU1OBJ = ${VU1DIR}/mpg.elf - -INCLUDES = \ --I/usr/local/include/libps2a \ --I/usr/local/include/ps2util \ --I./Linda - -DEFINES = -DDEBUG -DLINDA -DEBUGFLAGS = -Wall -g -LIBPS2ARC = /usr/local/lib/libps2a.a - -CFLAGS = ${INCLUDES} ${DEFINES} ${DEBUGFLAGS} - -LIBS = `xml-config --libs` -lps2util -lpng -lps2a - -all : ${TARGET} - -${VU1OBJ}: ${VPUSRCS} - cd ${VU1DIR}; make - cp ${VU1OBJ} . - -#${TARGET} : ${OBJS} ${VU1OBJ} -# ${CC} -o ${TARGET} ${OBJS} ${LIBS} - -${TARGET} : ${OBJS} - ${AR} x ${LIBPS2ARC} ${MPGOBJ} - ${CC} -o ${TARGET} ${OBJS} ${LIBS} - - -tag: - etags *.[ch] - -clean : - rm -f ${OBJS} - rm -f ${TARGET} - rm -f ${MPGOBJ} - rm -f ${VU1OBJ} - rm -f *~ - cd ${VU1DIR}; make clean -depend: - makedepend -- ${CFLAGS} -- ${SRCS} ${MAINSRC} -# DO NOT DELETE - -main.o: /usr/include/stdio.h #/usr/include/features.h -main.o: /usr/include/sys/cdefs.h -#main.o: /usr/include/gnu/stubs.h -#main.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/stddef.h -#main.o: /usr/include/bits/types.h -#main.o: /usr/include/bits/pthreadtypes.h -#main.o: /usr/include/bits/sched.h -#main.o: /usr/include/libio.h -#main.o: /usr/include/_G_config.h -main.o: /usr/include/wchar.h -#main.o: /usr/include/bits/wchar.h -#main.o: /usr/include/gconv.h -#main.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/stdarg.h -#main.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/va-mips.h -main.o: /usr/include/bits/stdio_lim.h /usr/local/include/libps2a/libps2.h -main.o: /usr/include/ps2gs.h /usr/include/sys/ioctl.h -main.o: /usr/include/bits/ioctls.h /usr/include/asm/ioctls.h -main.o: /usr/include/asm/ioctl.h /usr/include/bits/ioctl-types.h -main.o: /usr/include/sys/ttydefaults.h /usr/include/linux/ps2/dev.h -main.o: /usr/include/linux/ioctl.h /usr/include/asm/types.h -main.o: /usr/include/linux/autoconf.h /usr/include/linux/ps2/ee.h -main.o: /usr/include/linux/ps2/gs.h /usr/include/linux/ps2/pad.h -main.o: /usr/include/gs_vc.h /usr/include/libvu0.h /usr/include/ps2vpu.h -main.o: /usr/local/include/libps2a/sjoy.h /usr/local/include/libps2a/sprite.h -main.o: /usr/local/include/libps2a/texture.h -main.o: /usr/local/include/libps2a/ps2dma.h /usr/include/ps2vpufile.h -main.o: /usr/local/include/libps2a/def.h /usr/local/include/libps2a/xml.h -main.o: /usr/local/include/libps2a/surface.h -main.o: /usr/local/include/libps2a/giftag.h -main.o: /usr/local/include/libps2a/material.h -main.o: /usr/local/include/libps2a/object.h -main.o: /usr/local/include/libps2a/malloc128.h -main.o: /usr/local/include/libps2a/debug.h -main.o: /usr/local/include/ps2util/ps2util.h -game.o: /usr/include/stdio.h /usr/include/features.h /usr/include/sys/cdefs.h -game.o: /usr/include/gnu/stubs.h -game.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/stddef.h -game.o: /usr/include/bits/types.h /usr/include/bits/pthreadtypes.h -game.o: /usr/include/bits/sched.h /usr/include/libio.h -game.o: /usr/include/_G_config.h /usr/include/wchar.h -game.o: /usr/include/bits/wchar.h /usr/include/gconv.h -game.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/stdarg.h -game.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/va-mips.h -game.o: /usr/include/bits/stdio_lim.h /usr/include/stdlib.h -game.o: /usr/include/sys/types.h /usr/include/time.h /usr/include/endian.h -game.o: /usr/include/bits/endian.h /usr/include/sys/select.h -game.o: /usr/include/bits/select.h /usr/include/bits/sigset.h -game.o: /usr/include/bits/time.h /usr/include/sys/sysmacros.h -game.o: /usr/include/alloca.h /usr/local/include/libps2a/libps2.h -game.o: /usr/include/ps2gs.h /usr/include/sys/ioctl.h -game.o: /usr/include/bits/ioctls.h /usr/include/asm/ioctls.h -game.o: /usr/include/asm/ioctl.h /usr/include/bits/ioctl-types.h -game.o: /usr/include/sys/ttydefaults.h /usr/include/linux/ps2/dev.h -game.o: /usr/include/linux/ioctl.h /usr/include/asm/types.h -game.o: /usr/include/linux/autoconf.h /usr/include/linux/ps2/ee.h -game.o: /usr/include/linux/ps2/gs.h /usr/include/linux/ps2/pad.h -game.o: /usr/include/gs_vc.h /usr/include/libvu0.h /usr/include/ps2vpu.h -game.o: /usr/local/include/libps2a/sjoy.h /usr/local/include/libps2a/sprite.h -game.o: /usr/local/include/libps2a/texture.h -game.o: /usr/local/include/libps2a/ps2dma.h /usr/include/ps2vpufile.h -game.o: /usr/local/include/libps2a/def.h /usr/local/include/libps2a/xml.h -game.o: /usr/local/include/libps2a/surface.h -game.o: /usr/local/include/libps2a/giftag.h -game.o: /usr/local/include/libps2a/material.h -game.o: /usr/local/include/libps2a/object.h -game.o: /usr/local/include/libps2a/malloc128.h -game.o: /usr/local/include/libps2a/debug.h -game.o: /usr/local/include/ps2util/ps2util.h camera.h controler.h -game.o: /usr/local/include/libps2a/lindaapi.h col.h field.h car.h game.h -game.o: gSprite.h gFont.h -car.o: /usr/include/stdio.h /usr/include/features.h /usr/include/sys/cdefs.h -car.o: /usr/include/gnu/stubs.h -car.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/stddef.h -car.o: /usr/include/bits/types.h /usr/include/bits/pthreadtypes.h -car.o: /usr/include/bits/sched.h /usr/include/libio.h -car.o: /usr/include/_G_config.h /usr/include/wchar.h -car.o: /usr/include/bits/wchar.h /usr/include/gconv.h -car.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/stdarg.h -car.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/va-mips.h -car.o: /usr/include/bits/stdio_lim.h /usr/include/stdlib.h -car.o: /usr/include/sys/types.h /usr/include/time.h /usr/include/endian.h -car.o: /usr/include/bits/endian.h /usr/include/sys/select.h -car.o: /usr/include/bits/select.h /usr/include/bits/sigset.h -car.o: /usr/include/bits/time.h /usr/include/sys/sysmacros.h -car.o: /usr/include/alloca.h /usr/local/include/libps2a/libps2.h -car.o: /usr/include/ps2gs.h /usr/include/sys/ioctl.h -car.o: /usr/include/bits/ioctls.h /usr/include/asm/ioctls.h -car.o: /usr/include/asm/ioctl.h /usr/include/bits/ioctl-types.h -car.o: /usr/include/sys/ttydefaults.h /usr/include/linux/ps2/dev.h -car.o: /usr/include/linux/ioctl.h /usr/include/asm/types.h -car.o: /usr/include/linux/autoconf.h /usr/include/linux/ps2/ee.h -car.o: /usr/include/linux/ps2/gs.h /usr/include/linux/ps2/pad.h -car.o: /usr/include/gs_vc.h /usr/include/libvu0.h /usr/include/ps2vpu.h -car.o: /usr/local/include/libps2a/sjoy.h /usr/local/include/libps2a/sprite.h -car.o: /usr/local/include/libps2a/texture.h -car.o: /usr/local/include/libps2a/ps2dma.h /usr/include/ps2vpufile.h -car.o: /usr/local/include/libps2a/def.h /usr/local/include/libps2a/xml.h -car.o: /usr/local/include/libps2a/surface.h -car.o: /usr/local/include/libps2a/giftag.h -car.o: /usr/local/include/libps2a/material.h -car.o: /usr/local/include/libps2a/object.h -car.o: /usr/local/include/libps2a/malloc128.h -car.o: /usr/local/include/libps2a/debug.h -car.o: /usr/local/include/ps2util/ps2util.h col.h field.h car.h mytype.h -car.o: /usr/include/math.h /usr/include/bits/huge_val.h -car.o: /usr/include/bits/mathdef.h /usr/include/bits/mathcalls.h quotanion.h -car.o: game.h -col.o: /usr/include/stdio.h /usr/include/features.h /usr/include/sys/cdefs.h -col.o: /usr/include/gnu/stubs.h -col.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/stddef.h -col.o: /usr/include/bits/types.h /usr/include/bits/pthreadtypes.h -col.o: /usr/include/bits/sched.h /usr/include/libio.h -col.o: /usr/include/_G_config.h /usr/include/wchar.h -col.o: /usr/include/bits/wchar.h /usr/include/gconv.h -col.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/stdarg.h -col.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/va-mips.h -col.o: /usr/include/bits/stdio_lim.h /usr/local/include/libps2a/libps2.h -col.o: /usr/include/ps2gs.h /usr/include/sys/ioctl.h -col.o: /usr/include/bits/ioctls.h /usr/include/asm/ioctls.h -col.o: /usr/include/asm/ioctl.h /usr/include/bits/ioctl-types.h -col.o: /usr/include/sys/ttydefaults.h /usr/include/linux/ps2/dev.h -col.o: /usr/include/linux/ioctl.h /usr/include/asm/types.h -col.o: /usr/include/linux/autoconf.h /usr/include/linux/ps2/ee.h -col.o: /usr/include/linux/ps2/gs.h /usr/include/linux/ps2/pad.h -col.o: /usr/include/gs_vc.h /usr/include/libvu0.h /usr/include/ps2vpu.h -col.o: /usr/local/include/libps2a/sjoy.h /usr/local/include/libps2a/sprite.h -col.o: /usr/local/include/libps2a/texture.h -col.o: /usr/local/include/libps2a/ps2dma.h /usr/include/ps2vpufile.h -col.o: /usr/local/include/libps2a/def.h /usr/local/include/libps2a/xml.h -col.o: /usr/local/include/libps2a/surface.h -col.o: /usr/local/include/libps2a/giftag.h -col.o: /usr/local/include/libps2a/material.h -col.o: /usr/local/include/libps2a/object.h -col.o: /usr/local/include/libps2a/malloc128.h -col.o: /usr/local/include/libps2a/debug.h -col.o: /usr/local/include/ps2util/ps2util.h col.h mytype.h -col.o: /usr/include/math.h /usr/include/bits/huge_val.h -col.o: /usr/include/bits/mathdef.h /usr/include/bits/mathcalls.h -quotanion.o: /usr/local/include/libps2a/libps2.h /usr/include/ps2gs.h -quotanion.o: /usr/include/sys/ioctl.h /usr/include/features.h -quotanion.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h -quotanion.o: /usr/include/bits/ioctls.h /usr/include/asm/ioctls.h -quotanion.o: /usr/include/asm/ioctl.h /usr/include/bits/ioctl-types.h -quotanion.o: /usr/include/sys/ttydefaults.h /usr/include/linux/ps2/dev.h -quotanion.o: /usr/include/linux/ioctl.h /usr/include/asm/types.h -quotanion.o: /usr/include/linux/autoconf.h /usr/include/linux/ps2/ee.h -quotanion.o: /usr/include/linux/ps2/gs.h /usr/include/linux/ps2/pad.h -quotanion.o: /usr/include/gs_vc.h /usr/include/libvu0.h /usr/include/ps2vpu.h -quotanion.o: /usr/local/include/libps2a/sjoy.h -quotanion.o: /usr/local/include/libps2a/sprite.h -quotanion.o: /usr/local/include/libps2a/texture.h -quotanion.o: /usr/local/include/libps2a/ps2dma.h /usr/include/ps2vpufile.h -quotanion.o: /usr/local/include/libps2a/def.h -quotanion.o: /usr/local/include/libps2a/xml.h -quotanion.o: /usr/local/include/libps2a/surface.h -quotanion.o: /usr/local/include/libps2a/giftag.h -quotanion.o: /usr/local/include/libps2a/material.h -quotanion.o: /usr/local/include/libps2a/object.h -quotanion.o: /usr/local/include/libps2a/malloc128.h -quotanion.o: /usr/local/include/libps2a/debug.h /usr/include/math.h -quotanion.o: /usr/include/bits/huge_val.h /usr/include/bits/mathdef.h -quotanion.o: /usr/include/bits/mathcalls.h mytype.h -controler.o: /usr/include/stdio.h /usr/include/features.h -controler.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h -controler.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/stddef.h -controler.o: /usr/include/bits/types.h /usr/include/bits/pthreadtypes.h -controler.o: /usr/include/bits/sched.h /usr/include/libio.h -controler.o: /usr/include/_G_config.h /usr/include/wchar.h -controler.o: /usr/include/bits/wchar.h /usr/include/gconv.h -controler.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/stdarg.h -controler.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/va-mips.h -controler.o: /usr/include/bits/stdio_lim.h /usr/include/stdlib.h -controler.o: /usr/include/sys/types.h /usr/include/time.h -controler.o: /usr/include/endian.h /usr/include/bits/endian.h -controler.o: /usr/include/sys/select.h /usr/include/bits/select.h -controler.o: /usr/include/bits/sigset.h /usr/include/bits/time.h -controler.o: /usr/include/sys/sysmacros.h /usr/include/alloca.h -controler.o: /usr/local/include/libps2a/libps2.h /usr/include/ps2gs.h -controler.o: /usr/include/sys/ioctl.h /usr/include/bits/ioctls.h -controler.o: /usr/include/asm/ioctls.h /usr/include/asm/ioctl.h -controler.o: /usr/include/bits/ioctl-types.h /usr/include/sys/ttydefaults.h -controler.o: /usr/include/linux/ps2/dev.h /usr/include/linux/ioctl.h -controler.o: /usr/include/asm/types.h /usr/include/linux/autoconf.h -controler.o: /usr/include/linux/ps2/ee.h /usr/include/linux/ps2/gs.h -controler.o: /usr/include/linux/ps2/pad.h /usr/include/gs_vc.h -controler.o: /usr/include/libvu0.h /usr/include/ps2vpu.h -controler.o: /usr/local/include/libps2a/sjoy.h -controler.o: /usr/local/include/libps2a/sprite.h -controler.o: /usr/local/include/libps2a/texture.h -controler.o: /usr/local/include/libps2a/ps2dma.h /usr/include/ps2vpufile.h -controler.o: /usr/local/include/libps2a/def.h -controler.o: /usr/local/include/libps2a/xml.h -controler.o: /usr/local/include/libps2a/surface.h -controler.o: /usr/local/include/libps2a/giftag.h -controler.o: /usr/local/include/libps2a/material.h -controler.o: /usr/local/include/libps2a/object.h -controler.o: /usr/local/include/libps2a/malloc128.h -controler.o: /usr/local/include/libps2a/debug.h -controler.o: /usr/local/include/ps2util/ps2util.h col.h field.h car.h -controler.o: controler.h game.h -field.o: /usr/include/stdio.h /usr/include/features.h -field.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h -field.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/stddef.h -field.o: /usr/include/bits/types.h /usr/include/bits/pthreadtypes.h -field.o: /usr/include/bits/sched.h /usr/include/libio.h -field.o: /usr/include/_G_config.h /usr/include/wchar.h -field.o: /usr/include/bits/wchar.h /usr/include/gconv.h -field.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/stdarg.h -field.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/va-mips.h -field.o: /usr/include/bits/stdio_lim.h /usr/include/stdlib.h -field.o: /usr/include/sys/types.h /usr/include/time.h /usr/include/endian.h -field.o: /usr/include/bits/endian.h /usr/include/sys/select.h -field.o: /usr/include/bits/select.h /usr/include/bits/sigset.h -field.o: /usr/include/bits/time.h /usr/include/sys/sysmacros.h -field.o: /usr/include/alloca.h /usr/local/include/libps2a/libps2.h -field.o: /usr/include/ps2gs.h /usr/include/sys/ioctl.h -field.o: /usr/include/bits/ioctls.h /usr/include/asm/ioctls.h -field.o: /usr/include/asm/ioctl.h /usr/include/bits/ioctl-types.h -field.o: /usr/include/sys/ttydefaults.h /usr/include/linux/ps2/dev.h -field.o: /usr/include/linux/ioctl.h /usr/include/asm/types.h -field.o: /usr/include/linux/autoconf.h /usr/include/linux/ps2/ee.h -field.o: /usr/include/linux/ps2/gs.h /usr/include/linux/ps2/pad.h -field.o: /usr/include/gs_vc.h /usr/include/libvu0.h /usr/include/ps2vpu.h -field.o: /usr/local/include/libps2a/sjoy.h -field.o: /usr/local/include/libps2a/sprite.h -field.o: /usr/local/include/libps2a/texture.h -field.o: /usr/local/include/libps2a/ps2dma.h /usr/include/ps2vpufile.h -field.o: /usr/local/include/libps2a/def.h /usr/local/include/libps2a/xml.h -field.o: /usr/local/include/libps2a/surface.h -field.o: /usr/local/include/libps2a/giftag.h -field.o: /usr/local/include/libps2a/material.h -field.o: /usr/local/include/libps2a/object.h -field.o: /usr/local/include/libps2a/malloc128.h -field.o: /usr/local/include/libps2a/debug.h -field.o: /usr/local/include/ps2util/ps2util.h mytype.h /usr/include/math.h -field.o: /usr/include/bits/huge_val.h /usr/include/bits/mathdef.h -field.o: /usr/include/bits/mathcalls.h col.h field.h car.h quotanion.h game.h -camera.o: /usr/include/stdlib.h /usr/include/features.h -camera.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h -camera.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/stddef.h -camera.o: /usr/include/sys/types.h /usr/include/bits/types.h -camera.o: /usr/include/bits/pthreadtypes.h /usr/include/bits/sched.h -camera.o: /usr/include/time.h /usr/include/endian.h -camera.o: /usr/include/bits/endian.h /usr/include/sys/select.h -camera.o: /usr/include/bits/select.h /usr/include/bits/sigset.h -camera.o: /usr/include/bits/time.h /usr/include/sys/sysmacros.h -camera.o: /usr/include/alloca.h /usr/local/include/libps2a/libps2.h -camera.o: /usr/include/ps2gs.h /usr/include/sys/ioctl.h -camera.o: /usr/include/bits/ioctls.h /usr/include/asm/ioctls.h -camera.o: /usr/include/asm/ioctl.h /usr/include/bits/ioctl-types.h -camera.o: /usr/include/sys/ttydefaults.h /usr/include/linux/ps2/dev.h -camera.o: /usr/include/linux/ioctl.h /usr/include/asm/types.h -camera.o: /usr/include/linux/autoconf.h /usr/include/linux/ps2/ee.h -camera.o: /usr/include/linux/ps2/gs.h /usr/include/linux/ps2/pad.h -camera.o: /usr/include/gs_vc.h /usr/include/libvu0.h /usr/include/ps2vpu.h -camera.o: /usr/local/include/libps2a/sjoy.h -camera.o: /usr/local/include/libps2a/sprite.h -camera.o: /usr/local/include/libps2a/texture.h -camera.o: /usr/local/include/libps2a/ps2dma.h /usr/include/ps2vpufile.h -camera.o: /usr/local/include/libps2a/def.h /usr/local/include/libps2a/xml.h -camera.o: /usr/local/include/libps2a/surface.h -camera.o: /usr/local/include/libps2a/giftag.h -camera.o: /usr/local/include/libps2a/material.h -camera.o: /usr/local/include/libps2a/object.h -camera.o: /usr/local/include/libps2a/malloc128.h -camera.o: /usr/local/include/libps2a/debug.h -camera.o: /usr/local/include/ps2util/ps2util.h car.h game.h controler.h -gSprite.o: /usr/include/stdio.h /usr/include/features.h -gSprite.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h -gSprite.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/stddef.h -gSprite.o: /usr/include/bits/types.h /usr/include/bits/pthreadtypes.h -gSprite.o: /usr/include/bits/sched.h /usr/include/libio.h -gSprite.o: /usr/include/_G_config.h /usr/include/wchar.h -gSprite.o: /usr/include/bits/wchar.h /usr/include/gconv.h -gSprite.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/stdarg.h -gSprite.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/va-mips.h -gSprite.o: /usr/include/bits/stdio_lim.h /usr/include/stdlib.h -gSprite.o: /usr/include/sys/types.h /usr/include/time.h /usr/include/endian.h -gSprite.o: /usr/include/bits/endian.h /usr/include/sys/select.h -gSprite.o: /usr/include/bits/select.h /usr/include/bits/sigset.h -gSprite.o: /usr/include/bits/time.h /usr/include/sys/sysmacros.h -gSprite.o: /usr/include/alloca.h /usr/local/include/libps2a/libps2.h -gSprite.o: /usr/include/ps2gs.h /usr/include/sys/ioctl.h -gSprite.o: /usr/include/bits/ioctls.h /usr/include/asm/ioctls.h -gSprite.o: /usr/include/asm/ioctl.h /usr/include/bits/ioctl-types.h -gSprite.o: /usr/include/sys/ttydefaults.h /usr/include/linux/ps2/dev.h -gSprite.o: /usr/include/linux/ioctl.h /usr/include/asm/types.h -gSprite.o: /usr/include/linux/autoconf.h /usr/include/linux/ps2/ee.h -gSprite.o: /usr/include/linux/ps2/gs.h /usr/include/linux/ps2/pad.h -gSprite.o: /usr/include/gs_vc.h /usr/include/libvu0.h /usr/include/ps2vpu.h -gSprite.o: /usr/local/include/libps2a/sjoy.h -gSprite.o: /usr/local/include/libps2a/sprite.h -gSprite.o: /usr/local/include/libps2a/texture.h -gSprite.o: /usr/local/include/libps2a/ps2dma.h /usr/include/ps2vpufile.h -gSprite.o: /usr/local/include/libps2a/def.h /usr/local/include/libps2a/xml.h -gSprite.o: /usr/local/include/libps2a/surface.h -gSprite.o: /usr/local/include/libps2a/giftag.h -gSprite.o: /usr/local/include/libps2a/material.h -gSprite.o: /usr/local/include/libps2a/object.h -gSprite.o: /usr/local/include/libps2a/malloc128.h -gSprite.o: /usr/local/include/libps2a/debug.h -gSprite.o: /usr/local/include/ps2util/ps2util.h col.h field.h car.h game.h -gSprite.o: gSprite.h -schedule.o: /usr/include/stdio.h /usr/include/features.h -schedule.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h -schedule.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/stddef.h -schedule.o: /usr/include/bits/types.h /usr/include/bits/pthreadtypes.h -schedule.o: /usr/include/bits/sched.h /usr/include/libio.h -schedule.o: /usr/include/_G_config.h /usr/include/wchar.h -schedule.o: /usr/include/bits/wchar.h /usr/include/gconv.h -schedule.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/stdarg.h -schedule.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/va-mips.h -schedule.o: /usr/include/bits/stdio_lim.h /usr/include/stdlib.h -schedule.o: /usr/include/sys/types.h /usr/include/time.h -schedule.o: /usr/include/endian.h /usr/include/bits/endian.h -schedule.o: /usr/include/sys/select.h /usr/include/bits/select.h -schedule.o: /usr/include/bits/sigset.h /usr/include/bits/time.h -schedule.o: /usr/include/sys/sysmacros.h /usr/include/alloca.h -schedule.o: /usr/include/string.h /usr/local/include/libps2a/libps2.h -schedule.o: /usr/include/ps2gs.h /usr/include/sys/ioctl.h -schedule.o: /usr/include/bits/ioctls.h /usr/include/asm/ioctls.h -schedule.o: /usr/include/asm/ioctl.h /usr/include/bits/ioctl-types.h -schedule.o: /usr/include/sys/ttydefaults.h /usr/include/linux/ps2/dev.h -schedule.o: /usr/include/linux/ioctl.h /usr/include/asm/types.h -schedule.o: /usr/include/linux/autoconf.h /usr/include/linux/ps2/ee.h -schedule.o: /usr/include/linux/ps2/gs.h /usr/include/linux/ps2/pad.h -schedule.o: /usr/include/gs_vc.h /usr/include/libvu0.h /usr/include/ps2vpu.h -schedule.o: /usr/local/include/libps2a/sjoy.h -schedule.o: /usr/local/include/libps2a/sprite.h -schedule.o: /usr/local/include/libps2a/texture.h -schedule.o: /usr/local/include/libps2a/ps2dma.h /usr/include/ps2vpufile.h -schedule.o: /usr/local/include/libps2a/def.h /usr/local/include/libps2a/xml.h -schedule.o: /usr/local/include/libps2a/surface.h -schedule.o: /usr/local/include/libps2a/giftag.h -schedule.o: /usr/local/include/libps2a/material.h -schedule.o: /usr/local/include/libps2a/object.h -schedule.o: /usr/local/include/libps2a/malloc128.h -schedule.o: /usr/local/include/libps2a/debug.h -schedule.o: /usr/local/include/ps2util/ps2util.h col.h field.h car.h -schedule.o: gSprite.h gFont.h game.h controler.h camera.h mytype.h -schedule.o: /usr/include/math.h /usr/include/bits/huge_val.h -schedule.o: /usr/include/bits/mathdef.h /usr/include/bits/mathcalls.h light.h -schedule.o: title_scene.h game_time.h /usr/include/sys/time.h -demo.o: /usr/include/stdio.h /usr/include/features.h /usr/include/sys/cdefs.h -demo.o: /usr/include/gnu/stubs.h -demo.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/stddef.h -demo.o: /usr/include/bits/types.h /usr/include/bits/pthreadtypes.h -demo.o: /usr/include/bits/sched.h /usr/include/libio.h -demo.o: /usr/include/_G_config.h /usr/include/wchar.h -demo.o: /usr/include/bits/wchar.h /usr/include/gconv.h -demo.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/stdarg.h -demo.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/va-mips.h -demo.o: /usr/include/bits/stdio_lim.h /usr/include/stdlib.h -demo.o: /usr/include/sys/types.h /usr/include/time.h /usr/include/endian.h -demo.o: /usr/include/bits/endian.h /usr/include/sys/select.h -demo.o: /usr/include/bits/select.h /usr/include/bits/sigset.h -demo.o: /usr/include/bits/time.h /usr/include/sys/sysmacros.h -demo.o: /usr/include/alloca.h /usr/local/include/libps2a/libps2.h -demo.o: /usr/include/ps2gs.h /usr/include/sys/ioctl.h -demo.o: /usr/include/bits/ioctls.h /usr/include/asm/ioctls.h -demo.o: /usr/include/asm/ioctl.h /usr/include/bits/ioctl-types.h -demo.o: /usr/include/sys/ttydefaults.h /usr/include/linux/ps2/dev.h -demo.o: /usr/include/linux/ioctl.h /usr/include/asm/types.h -demo.o: /usr/include/linux/autoconf.h /usr/include/linux/ps2/ee.h -demo.o: /usr/include/linux/ps2/gs.h /usr/include/linux/ps2/pad.h -demo.o: /usr/include/gs_vc.h /usr/include/libvu0.h /usr/include/ps2vpu.h -demo.o: /usr/local/include/libps2a/sjoy.h /usr/local/include/libps2a/sprite.h -demo.o: /usr/local/include/libps2a/texture.h -demo.o: /usr/local/include/libps2a/ps2dma.h /usr/include/ps2vpufile.h -demo.o: /usr/local/include/libps2a/def.h /usr/local/include/libps2a/xml.h -demo.o: /usr/local/include/libps2a/surface.h -demo.o: /usr/local/include/libps2a/giftag.h -demo.o: /usr/local/include/libps2a/material.h -demo.o: /usr/local/include/libps2a/object.h -demo.o: /usr/local/include/libps2a/malloc128.h -demo.o: /usr/local/include/libps2a/debug.h -demo.o: /usr/local/include/ps2util/ps2util.h col.h field.h car.h game.h -mytype.o: /usr/include/time.h /usr/include/bits/types.h -mytype.o: /usr/include/features.h /usr/include/sys/cdefs.h -mytype.o: /usr/include/gnu/stubs.h -mytype.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/stddef.h -mytype.o: /usr/include/bits/pthreadtypes.h /usr/include/bits/sched.h -mytype.o: /usr/include/stdio.h /usr/include/libio.h /usr/include/_G_config.h -mytype.o: /usr/include/wchar.h /usr/include/bits/wchar.h /usr/include/gconv.h -mytype.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/stdarg.h -mytype.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/va-mips.h -mytype.o: /usr/include/bits/stdio_lim.h /usr/local/include/libps2a/libps2.h -mytype.o: /usr/include/ps2gs.h /usr/include/sys/ioctl.h -mytype.o: /usr/include/bits/ioctls.h /usr/include/asm/ioctls.h -mytype.o: /usr/include/asm/ioctl.h /usr/include/bits/ioctl-types.h -mytype.o: /usr/include/sys/ttydefaults.h /usr/include/linux/ps2/dev.h -mytype.o: /usr/include/linux/ioctl.h /usr/include/asm/types.h -mytype.o: /usr/include/linux/autoconf.h /usr/include/linux/ps2/ee.h -mytype.o: /usr/include/linux/ps2/gs.h /usr/include/linux/ps2/pad.h -mytype.o: /usr/include/gs_vc.h /usr/include/libvu0.h /usr/include/ps2vpu.h -mytype.o: /usr/local/include/libps2a/sjoy.h -mytype.o: /usr/local/include/libps2a/sprite.h -mytype.o: /usr/local/include/libps2a/texture.h -mytype.o: /usr/local/include/libps2a/ps2dma.h /usr/include/ps2vpufile.h -mytype.o: /usr/local/include/libps2a/def.h /usr/local/include/libps2a/xml.h -mytype.o: /usr/local/include/libps2a/surface.h -mytype.o: /usr/local/include/libps2a/giftag.h -mytype.o: /usr/local/include/libps2a/material.h -mytype.o: /usr/local/include/libps2a/object.h -mytype.o: /usr/local/include/libps2a/malloc128.h -mytype.o: /usr/local/include/libps2a/debug.h -mytype.o: /usr/local/include/ps2util/ps2util.h mytype.h /usr/include/math.h -mytype.o: /usr/include/bits/huge_val.h /usr/include/bits/mathdef.h -mytype.o: /usr/include/bits/mathcalls.h -gFont.o: /usr/include/stdio.h /usr/include/features.h -gFont.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h -gFont.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/stddef.h -gFont.o: /usr/include/bits/types.h /usr/include/bits/pthreadtypes.h -gFont.o: /usr/include/bits/sched.h /usr/include/libio.h -gFont.o: /usr/include/_G_config.h /usr/include/wchar.h -gFont.o: /usr/include/bits/wchar.h /usr/include/gconv.h -gFont.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/stdarg.h -gFont.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/va-mips.h -gFont.o: /usr/include/bits/stdio_lim.h /usr/include/stdlib.h -gFont.o: /usr/include/sys/types.h /usr/include/time.h /usr/include/endian.h -gFont.o: /usr/include/bits/endian.h /usr/include/sys/select.h -gFont.o: /usr/include/bits/select.h /usr/include/bits/sigset.h -gFont.o: /usr/include/bits/time.h /usr/include/sys/sysmacros.h -gFont.o: /usr/include/alloca.h /usr/local/include/libps2a/libps2.h -gFont.o: /usr/include/ps2gs.h /usr/include/sys/ioctl.h -gFont.o: /usr/include/bits/ioctls.h /usr/include/asm/ioctls.h -gFont.o: /usr/include/asm/ioctl.h /usr/include/bits/ioctl-types.h -gFont.o: /usr/include/sys/ttydefaults.h /usr/include/linux/ps2/dev.h -gFont.o: /usr/include/linux/ioctl.h /usr/include/asm/types.h -gFont.o: /usr/include/linux/autoconf.h /usr/include/linux/ps2/ee.h -gFont.o: /usr/include/linux/ps2/gs.h /usr/include/linux/ps2/pad.h -gFont.o: /usr/include/gs_vc.h /usr/include/libvu0.h /usr/include/ps2vpu.h -gFont.o: /usr/local/include/libps2a/sjoy.h -gFont.o: /usr/local/include/libps2a/sprite.h -gFont.o: /usr/local/include/libps2a/texture.h -gFont.o: /usr/local/include/libps2a/ps2dma.h /usr/include/ps2vpufile.h -gFont.o: /usr/local/include/libps2a/def.h /usr/local/include/libps2a/xml.h -gFont.o: /usr/local/include/libps2a/surface.h -gFont.o: /usr/local/include/libps2a/giftag.h -gFont.o: /usr/local/include/libps2a/material.h -gFont.o: /usr/local/include/libps2a/object.h -gFont.o: /usr/local/include/libps2a/malloc128.h -gFont.o: /usr/local/include/libps2a/debug.h -gFont.o: /usr/local/include/ps2util/ps2util.h gSprite.h -carNode.o: /usr/include/stdio.h /usr/include/features.h -carNode.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h -carNode.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/stddef.h -carNode.o: /usr/include/bits/types.h /usr/include/bits/pthreadtypes.h -carNode.o: /usr/include/bits/sched.h /usr/include/libio.h -carNode.o: /usr/include/_G_config.h /usr/include/wchar.h -carNode.o: /usr/include/bits/wchar.h /usr/include/gconv.h -carNode.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/stdarg.h -carNode.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/va-mips.h -carNode.o: /usr/include/bits/stdio_lim.h /usr/include/stdlib.h -carNode.o: /usr/include/sys/types.h /usr/include/time.h /usr/include/endian.h -carNode.o: /usr/include/bits/endian.h /usr/include/sys/select.h -carNode.o: /usr/include/bits/select.h /usr/include/bits/sigset.h -carNode.o: /usr/include/bits/time.h /usr/include/sys/sysmacros.h -carNode.o: /usr/include/alloca.h /usr/local/include/libps2a/libps2.h -carNode.o: /usr/include/ps2gs.h /usr/include/sys/ioctl.h -carNode.o: /usr/include/bits/ioctls.h /usr/include/asm/ioctls.h -carNode.o: /usr/include/asm/ioctl.h /usr/include/bits/ioctl-types.h -carNode.o: /usr/include/sys/ttydefaults.h /usr/include/linux/ps2/dev.h -carNode.o: /usr/include/linux/ioctl.h /usr/include/asm/types.h -carNode.o: /usr/include/linux/autoconf.h /usr/include/linux/ps2/ee.h -carNode.o: /usr/include/linux/ps2/gs.h /usr/include/linux/ps2/pad.h -carNode.o: /usr/include/gs_vc.h /usr/include/libvu0.h /usr/include/ps2vpu.h -carNode.o: /usr/local/include/libps2a/sjoy.h -carNode.o: /usr/local/include/libps2a/sprite.h -carNode.o: /usr/local/include/libps2a/texture.h -carNode.o: /usr/local/include/libps2a/ps2dma.h /usr/include/ps2vpufile.h -carNode.o: /usr/local/include/libps2a/def.h /usr/local/include/libps2a/xml.h -carNode.o: /usr/local/include/libps2a/surface.h -carNode.o: /usr/local/include/libps2a/giftag.h -carNode.o: /usr/local/include/libps2a/material.h -carNode.o: /usr/local/include/libps2a/object.h -carNode.o: /usr/local/include/libps2a/malloc128.h -carNode.o: /usr/local/include/libps2a/debug.h -carNode.o: /usr/local/include/ps2util/ps2util.h car.h game.h -linda.o: /usr/include/stdio.h /usr/include/features.h -linda.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h -linda.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/stddef.h -linda.o: /usr/include/bits/types.h /usr/include/bits/pthreadtypes.h -linda.o: /usr/include/bits/sched.h /usr/include/libio.h -linda.o: /usr/include/_G_config.h /usr/include/wchar.h -linda.o: /usr/include/bits/wchar.h /usr/include/gconv.h -linda.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/stdarg.h -linda.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/va-mips.h -linda.o: /usr/include/bits/stdio_lim.h /usr/include/stdlib.h -linda.o: /usr/include/sys/types.h /usr/include/time.h /usr/include/endian.h -linda.o: /usr/include/bits/endian.h /usr/include/sys/select.h -linda.o: /usr/include/bits/select.h /usr/include/bits/sigset.h -linda.o: /usr/include/bits/time.h /usr/include/sys/sysmacros.h -linda.o: /usr/include/alloca.h /usr/include/math.h -linda.o: /usr/include/bits/huge_val.h /usr/include/bits/mathdef.h -linda.o: /usr/include/bits/mathcalls.h /usr/local/include/libps2a/libps2.h -linda.o: /usr/include/ps2gs.h /usr/include/sys/ioctl.h -linda.o: /usr/include/bits/ioctls.h /usr/include/asm/ioctls.h -linda.o: /usr/include/asm/ioctl.h /usr/include/bits/ioctl-types.h -linda.o: /usr/include/sys/ttydefaults.h /usr/include/linux/ps2/dev.h -linda.o: /usr/include/linux/ioctl.h /usr/include/asm/types.h -linda.o: /usr/include/linux/autoconf.h /usr/include/linux/ps2/ee.h -linda.o: /usr/include/linux/ps2/gs.h /usr/include/linux/ps2/pad.h -linda.o: /usr/include/gs_vc.h /usr/include/libvu0.h /usr/include/ps2vpu.h -linda.o: /usr/local/include/libps2a/sjoy.h -linda.o: /usr/local/include/libps2a/sprite.h -linda.o: /usr/local/include/libps2a/texture.h -linda.o: /usr/local/include/libps2a/ps2dma.h /usr/include/ps2vpufile.h -linda.o: /usr/local/include/libps2a/def.h /usr/local/include/libps2a/xml.h -linda.o: /usr/local/include/libps2a/surface.h -linda.o: /usr/local/include/libps2a/giftag.h -linda.o: /usr/local/include/libps2a/material.h -linda.o: /usr/local/include/libps2a/object.h -linda.o: /usr/local/include/libps2a/malloc128.h -linda.o: /usr/local/include/libps2a/debug.h -linda.o: /usr/local/include/ps2util/ps2util.h car.h game.h -linda.o: /usr/local/include/libps2a/lindaapi.h -light.o: /usr/include/stdio.h /usr/include/features.h -light.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h -light.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/stddef.h -light.o: /usr/include/bits/types.h /usr/include/bits/pthreadtypes.h -light.o: /usr/include/bits/sched.h /usr/include/libio.h -light.o: /usr/include/_G_config.h /usr/include/wchar.h -light.o: /usr/include/bits/wchar.h /usr/include/gconv.h -light.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/stdarg.h -light.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/va-mips.h -light.o: /usr/include/bits/stdio_lim.h /usr/local/include/libps2a/libps2.h -light.o: /usr/include/ps2gs.h /usr/include/sys/ioctl.h -light.o: /usr/include/bits/ioctls.h /usr/include/asm/ioctls.h -light.o: /usr/include/asm/ioctl.h /usr/include/bits/ioctl-types.h -light.o: /usr/include/sys/ttydefaults.h /usr/include/linux/ps2/dev.h -light.o: /usr/include/linux/ioctl.h /usr/include/asm/types.h -light.o: /usr/include/linux/autoconf.h /usr/include/linux/ps2/ee.h -light.o: /usr/include/linux/ps2/gs.h /usr/include/linux/ps2/pad.h -light.o: /usr/include/gs_vc.h /usr/include/libvu0.h /usr/include/ps2vpu.h -light.o: /usr/local/include/libps2a/sjoy.h -light.o: /usr/local/include/libps2a/sprite.h -light.o: /usr/local/include/libps2a/texture.h -light.o: /usr/local/include/libps2a/ps2dma.h /usr/include/ps2vpufile.h -light.o: /usr/local/include/libps2a/def.h /usr/local/include/libps2a/xml.h -light.o: /usr/local/include/libps2a/surface.h -light.o: /usr/local/include/libps2a/giftag.h -light.o: /usr/local/include/libps2a/material.h -light.o: /usr/local/include/libps2a/object.h -light.o: /usr/local/include/libps2a/malloc128.h -light.o: /usr/local/include/libps2a/debug.h light.h -title_scene.o: /usr/local/include/libps2a/libps2.h /usr/include/ps2gs.h -title_scene.o: /usr/include/sys/ioctl.h /usr/include/features.h -title_scene.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h -title_scene.o: /usr/include/bits/ioctls.h /usr/include/asm/ioctls.h -title_scene.o: /usr/include/asm/ioctl.h /usr/include/bits/ioctl-types.h -title_scene.o: /usr/include/sys/ttydefaults.h /usr/include/linux/ps2/dev.h -title_scene.o: /usr/include/linux/ioctl.h /usr/include/asm/types.h -title_scene.o: /usr/include/linux/autoconf.h /usr/include/linux/ps2/ee.h -title_scene.o: /usr/include/linux/ps2/gs.h /usr/include/linux/ps2/pad.h -title_scene.o: /usr/include/gs_vc.h /usr/include/libvu0.h -title_scene.o: /usr/include/ps2vpu.h /usr/local/include/libps2a/sjoy.h -title_scene.o: /usr/local/include/libps2a/sprite.h -title_scene.o: /usr/local/include/libps2a/texture.h -title_scene.o: /usr/local/include/libps2a/ps2dma.h /usr/include/ps2vpufile.h -title_scene.o: /usr/local/include/libps2a/def.h -title_scene.o: /usr/local/include/libps2a/xml.h -title_scene.o: /usr/local/include/libps2a/surface.h -title_scene.o: /usr/local/include/libps2a/giftag.h -title_scene.o: /usr/local/include/libps2a/material.h -title_scene.o: /usr/local/include/libps2a/object.h -title_scene.o: /usr/local/include/libps2a/malloc128.h -title_scene.o: /usr/local/include/libps2a/debug.h -title_scene.o: /usr/local/include/ps2util/ps2util.h title_scene.h -game_time.o: game_time.h /usr/include/sys/time.h /usr/include/features.h -game_time.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h -game_time.o: /usr/include/bits/types.h -game_time.o: /usr/lib/gcc-lib/mipsEEel-linux/2.95.2/include/stddef.h -game_time.o: /usr/include/bits/pthreadtypes.h /usr/include/bits/sched.h -game_time.o: /usr/include/time.h /usr/include/bits/time.h -game_time.o: /usr/include/sys/select.h /usr/include/bits/select.h -game_time.o: /usr/include/bits/sigset.h
--- a/linda.c Thu Jun 02 23:28:31 2011 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,729 +0,0 @@ -#include <stdio.h> -#include <stdlib.h> -#include <stdbool.h> -#include <string.h> -#include <math.h> -#include <arpa/inet.h> -#include "libps2.h" -#include "ps2util.h" - -#include "car.h" -#include "game.h" -#include "Linda/lindaapi.h" -#include "linda.h" - -extern void psx_free(unsigned char *); -extern void carNode_append(CarPtr); -extern FILE *main_fp; -static int my_id; -static CarPtr linda_carlist[CLIENT_MAX+1]; -static int linda_seq[CLIENT_MAX+1]; - -static bool (*sche_func)(int); - -static void -set_header(unsigned int data, char *pkt, int offset) -{ - int *ipkt; - int ndata = htonl(data); - - ipkt = (int*)pkt; - ipkt[offset/4] = ndata; -} - -static unsigned int -get_header(char *pkt, int offset) -{ - int *ipkt; - int data; - unsigned int header; - - ipkt = (int *)pkt; - data = ipkt[offset/4]; - header = (unsigned int)ntohl(data); - - return header; -} - -static char* -make_packet(unsigned int mode, unsigned int carid, - unsigned int courseid, char *data) -{ - char *packet; - unsigned int len = 0; - - if (data) len += sizeof(FMATRIX); - - packet = (char*)malloc(PKT_HEADER_SIZE+len); - - set_header(mode, packet, PKT_MODE_OFFSET); - set_header(carid, packet, PKT_CARID_OFFSET); - set_header(courseid, packet, PKT_COURSEID_OFFSET); - - if (data) - memcpy(packet+PKT_DATA_OFFSET, data, len); - - return packet; -} - - -static void -send_packet(unsigned int dest, unsigned int mode, unsigned int car, - unsigned int course, char *data) -{ - char *pkt; - char *reply; - int len = PKT_HEADER_SIZE; - - if (data) len += sizeof(FMATRIX); - - reply = psx_reply(linda_seq[dest]); - - if (linda_seq[dest] == 0) { - pkt = make_packet(mode, car, course, data); - psx_out(dest, pkt, len); - free(pkt); - } else if (reply = psx_reply(linda_seq[dest])) { - pkt = make_packet(mode, car, course, data); - psx_out(dest, pkt, len); - free(pkt); - psx_free(reply); - } - - pkt = make_packet(mode, car, course, data); - psx_out(dest, pkt, len); - free(pkt); -} - -static void -get_packet(int id, int *flg, int *mode, int *car, int *course, char *data) -{ - char *reply = NULL; - char *pkt = NULL; - - reply = psx_reply(linda_seq[id]); - if (reply) { - pkt = reply+LINDA_HEADER_SIZE; - - if (flg) *flg = 1; - if (mode) *mode = get_header(pkt, PKT_MODE_OFFSET); - if (car) *car = get_header(pkt, PKT_CARID_OFFSET); - if (course) *course = get_header(pkt, PKT_COURSEID_OFFSET); - if (data) memcpy(data, pkt+PKT_DATA_OFFSET, sizeof(FMATRIX)); - psx_free(reply); - linda_seq[id] = psx_rd(id); - } -} - -static void -linda_set_schedule(void *func, int mode, Game *game) -{ - int id = game->play_id; - - linda_seq[id] = psx_in(id); - sche_func = func; - send_packet(id, mode, game->car_id, game->course_id, NULL); -} - -static bool linda_sche_wait0(int p, Game *game) -{ - int i, flg=0; - int mode = 0; - int id = game->play_id; - int connect = 1; // 接続済みユーザ数 - - for (i=1; i<=CLIENT_MAX; i++) { - if (i == id) continue; - get_packet(i, &flg, &mode, NULL, NULL, NULL); - if (flg == 1 && mode == MODE_WAIT) { - connect++; - flg = 0; - } - } - - if (p == 1 && connect == CLIENT_MAX) { - linda_set_schedule(linda_sche_wait_ready0, MODE_WAIT_READY,game); - return true; - } else { - return false; - } -} - -static bool -linda_sche_wait1(int p, Game *game) -{ - int mode; - - get_packet(PLAYER_1P, NULL, &mode, NULL, NULL, NULL); - - if (mode == MODE_WAIT_READY) { - linda_set_schedule(linda_sche_wait_ready1, MODE_WAIT_READY, game); - return true; - } else { - return false; - } -} - -static bool -linda_sche_wait_ready0(int p, Game *game) -{ - int i, flg, mode; - int id = game->play_id; - int connect = 1; - - for (i=1; i<=CLIENT_MAX; i++) { - if (i == id) continue; - get_packet(i, &flg, &mode, NULL, NULL, NULL); - if (i == id) { - flg = 0; - continue; - } - if (flg == 1 && mode == MODE_WAIT_READY) { - connect++; - flg = 0; - } - } - - if (p == 1 && connect == CLIENT_MAX) { - linda_set_schedule(linda_sche_opening0, MODE_OPENING,game); - return true; - } else { - return false; - } - -} - -static bool -linda_sche_wait_ready1(int p, Game *game) -{ - int mode; - - get_packet(PLAYER_1P, NULL, &mode, NULL, NULL, NULL); - - if (mode == MODE_OPENING) { - linda_set_schedule(linda_sche_opening1, MODE_OPENING,game); - return true; - } else { - return false; - } -} - -static bool -linda_sche_opening0(int p, Game *game) -{ - int i, flg, mode; - int id = game->play_id; - int connect = 1; - - for (i=1; i<=CLIENT_MAX; i++) { - if (i == id) continue; - get_packet(i, &flg, &mode, NULL, NULL, NULL); - if (flg == 1 && mode == MODE_OPENING) { - connect++; - flg = 0; - } - } - - if (p == 1 && connect == CLIENT_MAX) { - linda_set_schedule(linda_sche_select_car0, MODE_SELECT_CAR, game); - return true; - } else { - return false; - } -} - -static bool -linda_sche_opening1(int p, Game *game) -{ - int mode; - - get_packet(PLAYER_1P, NULL, &mode, NULL, NULL, NULL); - - if (mode == MODE_SELECT_CAR) { - linda_set_schedule(linda_sche_select_car1, MODE_SELECT_CAR, game); - return true; - } else { - return false; - } -} - -static bool -linda_sche_select_car0(int p, Game *game) -{ - int i, flg, mode; - int id = game->play_id; - int connect = 1; - - for (i=1; i<=CLIENT_MAX; i++) { - if (i == id) continue; - get_packet(i, &flg, &mode, NULL, NULL, NULL); - if (flg == 1 && mode == MODE_SELECT_CAR) { - connect++; - flg = 0; - } - } - - if (p == 1 && connect == CLIENT_MAX) { - linda_set_schedule(linda_sche_select_course0, MODE_SELECT_COURSE, game); - return true; - } else { - return false; - } -} - -static bool -linda_sche_select_car1(int p, Game *game) -{ - int mode; - - get_packet(PLAYER_1P, NULL, &mode, NULL, NULL, NULL); - - if (mode == MODE_SELECT_COURSE) { - linda_set_schedule(linda_sche_select_course1, MODE_SELECT_COURSE, game); - return true; - } else { - return false; - } -} - -static bool -linda_sche_select_course0(int p, Game *game) -{ - int i; - int flg, mode; - int connect = 1; - int id = game->play_id; - static int course_id = 1; - - if (course_id != game->course_id) { - course_id = game->course_id; - linda_seq[id] = psx_in(id); - send_packet(id, MODE_SELECT_COURSE, 0, course_id, NULL); - return false; - } - - for (i=1; i<=CLIENT_MAX; i++) { - if (i == id) continue; - get_packet(i, &flg, &mode, NULL, NULL, NULL); - if (flg == 1 && mode == MODE_SELECT_COURSE) { - connect++; - flg = 0; - } - - } - - if (p == 1 && connect == CLIENT_MAX) { - linda_set_schedule(linda_sche_ready0, MODE_READY, game); - return true; - } else { - return false; - } -} - -static bool -linda_sche_select_course1(int p, Game *game) -{ - int mode, course_id; - - get_packet(PLAYER_1P, NULL, &mode, NULL, &course_id, NULL); - - if (mode == MODE_SELECT_COURSE) { - game->course_id = course_id; - return false; - } else if (mode == MODE_READY) { - linda_set_schedule(linda_sche_ready1, MODE_READY, game); - return true; - } else { - return false; - } -} - - -static bool -linda_sche_ready0(int p, Game *game) -{ - int i, flg, mode; - int id = game->play_id; - int connect = 1; - - for (i=1; i<=CLIENT_MAX; i++) { - if (i == id) continue; - get_packet(i, &flg, &mode, NULL, NULL, NULL); - if (flg == 1 && mode == MODE_READY) { - connect++; - flg = 0; - } - } - - if (p == 1 && connect == CLIENT_MAX) { - linda_set_schedule(linda_sche_main_init, MODE_MAIN_INIT, game); - return true; - } else { - return false; - } -} - -static bool -linda_sche_ready1(int p, Game *game) -{ - int mode; - - get_packet(PLAYER_1P, NULL, &mode, NULL, NULL, NULL); - - if (mode == MODE_MAIN_INIT) { - linda_set_schedule(linda_sche_main_init, MODE_MAIN_INIT, game); - return true; - } else { - return false; - } -} - -static bool -linda_sche_main_init(int p, Game *game) -{ - int i, flg, mode, car_id; - int id = game->play_id; - int connect = 1; - CarPtr car = NULL; - - for (i=1; i<=CLIENT_MAX; i++) { - if (i == id) continue; - get_packet(i, &flg, &mode, &car_id, NULL, NULL); - - if (flg == 1 && mode == MODE_MAIN_INIT) { - if (linda_carlist[i] == NULL) { - car = car_init(car_id); - carNode_append(car); - linda_carlist[i] = car; - } - connect++; - flg = 0; - } - } - - if (p == 1 && connect == CLIENT_MAX) { - if (id == PLAYER_1P) - linda_set_schedule(linda_sche_main_ready0, MODE_MAIN_READY, game); - else - linda_set_schedule(linda_sche_main_ready1, MODE_MAIN_READY, game); - return true; - } else { - return false; - } -} - - -static bool -linda_sche_main_ready0(int p, Game *game) -{ - int i, flg, mode; - int id = game->play_id; - int connect = 1; - - for (i=1; i<=CLIENT_MAX; i++) { - if (i == id) continue; - get_packet(i, &flg, &mode, NULL, NULL, NULL); - if (flg == 1 && mode == MODE_MAIN_READY) { - connect++; - flg = 0; - } - } - - if (p == 1 && connect == CLIENT_MAX) { - linda_set_schedule(linda_sche_main, MODE_MAIN, game); - return true; - } else { - return false; - } -} - -static bool -linda_sche_main_ready1(int p, Game *game) -{ - int mode; - - get_packet(PLAYER_1P, NULL, &mode, NULL, NULL, NULL); - - if (mode == MODE_MAIN) { - linda_set_schedule(linda_sche_main, MODE_MAIN, game); - return true; - } else { - return false; - } -} - -static bool -linda_sche_main(int p, Game *game) -{ - int i, flg, mode; - int id = game->play_id; - int connect = 1; - FMATRIX po; - CarPtr mycar = game->jiki; - CarPtr enemy = NULL; - - for (i=1; i<=CLIENT_MAX; i++) { - ps2_vu0_unit_matrix(po); - get_packet(i, &flg, &mode, NULL, NULL, (char*)po); - - if (i == id) { - ps2_vu0_copy_matrix(po, mycar->body->transfer); - ps2_vu0_copy_vector(po[3], mycar->location); - - linda_seq[i] = psx_in(i); - send_packet(i, MODE_MAIN, 0, 0, (char*)po); - } else { - enemy = linda_carlist[i]; - if (flg == 1 && mode == MODE_MAIN) { - ps2_vu0_copy_matrix(enemy->body->transfer, po); - enemy->body->transfer[3][0] -= mycar->location[0]; - enemy->body->transfer[3][1] -= mycar->location[1]; - enemy->body->transfer[3][2] -= mycar->location[2]; - enemy->body->transfer[3][3] = 1; - } - } - } - - if (p == 1 && connect == CLIENT_MAX) { - if (id == PLAYER_1P) - linda_set_schedule(linda_sche_main_ready0, MODE_MAIN_READY, game); - else - linda_set_schedule(linda_sche_main_ready1, MODE_MAIN_READY, game); - return true; - } else { - return false; - } - - - return false; -} - -bool -linda_update(int p, Game *game) -{ - return sche_func(p); -} - -#if 0 - -/* - * 位置が同じなら1を返す。 - * もっと良い比較方法があるんでは... - */ -static int -linda_jiki_compareLocation(Game *game) -{ - float x,y,z; - double d; - - if (common_state == GAME_MAIN || common_state == GAME_GOAL) { - x = jiki.position[3][0] - game.jiki->location[0]; - y = jiki.position[3][1] - game.jiki->location[1]; - z = jiki.position[3][2] - game.jiki->location[2]; - d = sqrt(x*x+y*y+z*z); - - if (d < 1.0) { - return 1; - } else { - return 0; - } - } else { - return 1; - } -} - - -/* - * 自機情報が更新されていなければ - * 0を返す(psx_outしない) - */ -static int -linda_jiki_compare() -{ - if ((jiki.car_id == game.car_id) && - (jiki.course_id == game.course_id) && - (jiki.create_flg == ((game.jiki) ? 1:0)) && - (jiki.state == common_state) && - (linda_jiki_compareLocation())) { - return 0; - } else { - return 1; - } -} - -static void -linda_jiki_update() -{ - int i,j; - - - jiki.car_id = game.car_id; - jiki.course_id = game.course_id; - jiki.create_flg = (game.jiki) ? 1 : 0; - jiki.state = common_state; - - if (common_state == GAME_MAIN || common_state == GAME_GOAL) { - for (i=0; i<3; i++) { - for (j=0; j<4; j++) { - jiki.position[i][j] - = game.jiki->body->transfer[i][j]; - } - } - jiki.position[3][0] = game.jiki->location[0]; - jiki.position[3][1] = game.jiki->location[1]; - jiki.position[3][2] = game.jiki->location[2]; - jiki.position[3][3] = 1; - } -} - -void -linda_update() -{ - int i; - int barrier = 1; // バリア同期(?)用 - int connect = 1; - int mode, id, flg; - char* reply; - char* pkt; - CarPtr car = NULL; - - for (i=1; i<=CLIENT_MAX; i++) { - reply = psx_reply(linda_seq[i]); - if (reply) { - pkt = reply+LINDA_HEADER_SIZE; - mode = get_header(pkt, PKT_MODE_OFFSET); - id = get_header(pkt, PKT_ID_OFFSET); - flg = get_header(pkt, PKT_FLG_OFFSET); - - if (i != game.play_id) { - connect++; - - car = linda_carlist[i]; - if (common_state == GAME_MAIN && !car && p->create_flg == 1) { - car = car_init(p->car_id); - carNode_append(car); - linda_carlist[i] = car; - } - linda_enemy_update(i, car, p); - if (common_state == p->state) { - barrier++; - } - } - psx_free(reply); - linda_seq[i] = psx_rd(i); - } - } - - if (connect == CLIENT_MAX) { - if (game->state == GAME_WAIT) { - gFont_SetString("CONNECT OK!!", 170, 300); - if (game->play_id == 1) - gFont_SetString(" PUSH START ", 170, 400); - } - - // ごちゃごちゃしてる... - // なんか無駄な処理がありそうだ - if (game->play_id == 1) { - // 全員のフラグ成立 - if (common_state == GAME_GOAL) { - if (game->state == GAME_FINISH) { - common_state = game->state; - } else { - game->state = common_state; - } - } else if (barrier == CLIENT_MAX) { - common_state = game->state; - } else { - game->state = common_state; - } - } else { - if (game->state == GAME_GOAL) { - if (common_state != GAME_FINISH) { - common_state = game->state; - } else { - game->state = common_state; - } - } else { - game->state = common_state; - } - } - } else { - if (game->state == GAME_WAIT) { - gFont_SetString("WAITING...", 200, 100); - } - game->state = common_state; - } - - if (linda_jiki_compare()) { -#ifdef DEBUG - // どのタイミングでoutされてるか見る - // 必要なときだけoutしないと重いですね当然だけど - fprintf(main_fp, "psx_out() jiki\n"); -#endif - linda_jiki_update(); - // 無理矢理 - // 古いものを消すだけなんだけど - // 正しいやり方が他に有るのかな? - // 実行し続けてると最終的に激重になるので - // ここら辺に問題が有るのだろうか。 - psx_free(psx_reply(psx_in(game->play_id))); - linda_seq[my_id]=psx_in(game->play_id); - psx_out(game->play_id, (char*)&jiki, sizeof(CarInfo)); - } -} -#endif - -static int -get_id() -{ - unsigned char * reply; - int seq; - int id; - - //ユーザIDが格納されているTUPLE SpaceのIDへアクセス - seq = psx_in(LINDA_ASK_ID); - - // IDが取得できるまでループ - while((reply = psx_reply(seq)) == 0) psx_sync_n(); - - id = atoi(reply+LINDA_HEADER_SIZE); - psx_free(reply); - return id; -} - -void linda_env_init( void ) -{ - int i; - - for (i=0; i<CLIENT_MAX+1; i++) { - linda_carlist[i] = NULL; - } -} - - - -int -linda_init(Game *game) -{ - int i; - - start_linda(LINDA_HOST); - my_id = get_id(); - - for (i=1; i<=CLIENT_MAX; i++) { - if (i == my_id) { - send_packet(i, MODE_WAIT, i, 0, NULL); - } - linda_seq[i] = psx_rd(i); - } - psx_sync_n(); - - if (my_id == PLAYER_1P) { - sche_func = &linda_sche_wait0; - } else { - sche_func = &linda_sche_wait1; - } - send_packet(game->play_id, MODE_WAIT, 1, 1, NULL); - - return my_id; -}
--- a/test_vector.c Thu Jun 02 23:28:31 2011 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,189 +0,0 @@ -#include <stdio.h> -#include "ps2util.h" -#include "libps2.h" - -void init_FVECTOR(FVECTOR v, float num); -void init_FMATRIX(FMATRIX m, float num); -void output_FVECTOR(FVECTOR v); -void output_FMATRIX(FMATRIX m); -void all_init(FVECTOR v0, FVECTOR v1, FMATRIX m0, FMATRIX m1, float num); - - -/* - ps2util.c にある、vector 計算のテスト用処理です。 -*/ - -int main(){ - - FVECTOR resultV; - FMATRIX resultM; - float resultf; - - FVECTOR v0,v1; - FMATRIX m0,m1; - - float f0 = 0.5; - float num = 0.1; - - int i,j; - int lim1 = 4; - - //v0,v1,m0,m1 を初期化 - all_init(v0, v1, m0, m1, num); - - printf("v0\n"); - output_FVECTOR(v0); - - printf("v1\n"); - output_FVECTOR(v1); - - printf("m0\n"); - output_FMATRIX(m0); - - printf("m1\n"); - output_FMATRIX(m1); - - printf("\n"); - printf("\n"); - - - - - /*-----------ps2util.c test----------*/ - - ps2_vu0_copy_vector(v0, v1); - printf("ps2_vu0_copy_vector(v0, v1)\n"); - output_FVECTOR(v0); - output_FVECTOR(v1); - printf("\n"); - all_init(v0, v1, m0, m1, num); - - ps2_vu0_unit_matrix(m0); - printf("ps2_vu0_unit_matrix(m0)\n"); - output_FMATRIX(m0); - printf("\n"); - all_init(v0, v1, m0, m1, num); - - ps2_vu0_rot_matrix_y(resultM, m0, f0); - printf("ps2_vu0_rot_matrix_y(resultM, m0, f0)\n"); - output_FMATRIX(resultM); - printf("\n"); - all_init(v0, v1, m0, m1, num); - - ps2_vu0_apply_matrix(resultV, m0, v0); - printf("ps2_vu0_apply_matrix(resultV, m0, v0)\n"); - output_FVECTOR(resultV); - printf("\n"); - all_init(v0, v1, m0, m1, num); - - ps2_vu0_scale_vector(resultV, v0, f0); - printf("ps2_vu0_sacle_vector(resultV, v0, f0)\n"); - output_FVECTOR(resultV); - printf("\n"); - all_init(v0, v1, m0, m1, num); - - ps2_vu0_add_vector(resultV, v0, v1); - printf("ps2_vu0_add_vector(resultV, v0, v1)\n"); - output_FVECTOR(resultV); - printf("\n"); - all_init(v0, v1, m0, m1, num); - - ps2_vu0_outer_product(resultV, v0, v1); - printf("ps2_vu0_outer_product(resultV, v0, v1)\n"); - output_FVECTOR(resultV); - printf("\n"); - all_init(v0, v1, m0, m1, num); - - resultf = ps2_vu0_inner_product(v0, v1); - printf("ps2_vu0_inner_product(v0, v1)\n"); - printf("resultf = %10f\n",resultf); - printf("\n"); - all_init(v0, v1, m0, m1, num); - - ps2_vu0_mul_matrix(resultM, m0, m1); - printf("ps2_vu0_mul_matrix(resultM, m0, m1)\n"); - output_FMATRIX(resultM); - printf("\n"); - all_init(v0, v1, m0, m1, num); - - ps2_vu0_copy_matrix(m0, m1); - printf("ps2_vu0_copy_matrix(m0, m1)\n"); - output_FMATRIX(m0); - output_FMATRIX(m0); - printf("\n"); - all_init(v0, v1, m0, m1, num); - - ps2_vu0_sub_vector(resultV, v0, v1); - printf("ps2_vu0_sub_vector(resultV, v0, v1)\n"); - output_FVECTOR(resultV); - printf("\n"); - all_init(v0, v1, m0, m1, num); - - ps2_vu0_normalize(resultV, v0); - printf("ps2_vu0_normalize(result, v0)\n"); - output_FVECTOR(resultV); - printf("\n"); - all_init(v0, v1, m0, m1, num); - - -} - - - -//使用する値の初期化 FVECTOR -void init_FVECTOR(FVECTOR v, float num){ - int i; - int lim1=4; - for ( i=0; i<lim1; i++ ) { - v[i] = num + ( (float)i * num * 0.3 ) ; - } - v[3] = 1; -} - -//使用する値の初期化 FMATRIX -void init_FMATRIX(FMATRIX m, float num){ - int i,j; - int lim1=4; - for ( i=0; i<lim1; i++ ) { - for ( j=0; j<lim1; j++ ) { - m[i][j] = ( num * (float)j ) + ( (float)i * num*4.0 ) ; - } - } - m[0][3] = m[1][3] = m[2][3] = 0; - - m[3][0] = m[3][1] = m[3][2] = 0; - m[3][3] = 1; -} - -//--------出力--------- -void output_FVECTOR(FVECTOR v){ - int i; - int lim1 = 4; - for ( i=0; i<lim1; i++ ) { - printf("%10f ",v[i]); - } - printf("\n\n"); -} - -//--------出力--------- -void output_FMATRIX(FMATRIX m){ - int i,j; - int lim1 = 4; - for ( i=0; i<lim1; i++ ) { - for ( j=0; j<lim1; j++ ) { - printf("%10f",m[i][j]); - } - printf("\n"); - } - printf("\n"); -} - - - -//全部を初期値に戻す。 -void all_init(FVECTOR v0, FVECTOR v1, FMATRIX m0, FMATRIX m1, float num){ - init_FVECTOR(v0, num); - init_FVECTOR(v1, num*2); - init_FMATRIX(m0, num); - init_FMATRIX(m1, num*2); -}