Mercurial > hg > Members > kono > tree_dandy2
changeset 17:3c14f64cbd31
compile on ps3
author | tkaito@henri |
---|---|
date | Tue, 07 Dec 2010 19:06:36 +0900 |
parents | b0f057171e18 |
children | 47101546f030 |
files | Makefile.mac Makefile.ps3 sgoex.h |
diffstat | 3 files changed, 36 insertions(+), 21 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile.mac Wed Dec 08 06:25:29 2010 +0900 +++ b/Makefile.mac Tue Dec 07 19:06:36 2010 +0900 @@ -1,20 +1,26 @@ # Makefile to build the SDL tests +include ./Makefile.def srcdir = . +ABI = -m32 -CC = gcc -CFLAGS = -g -m32 -O2 -Wall `sdl-config --cflags` -LIBS = `sdl-config --libs`,-framework,OpenGL -lSDL_mixer -TARGET = my_dandy -OBJS = sgoex.o Enemy.o bom.o tokuten.o atari.o count2.o move.o schedule.o tama.o syokika.o Ss.o sound.o main.o profile.o debug.o trace.o LoadSprite.o #back.o +CFLAGS += -g $(ABI) -O2 -Wall `sdl-config --cflags` `xml2-config --cflags` $(INCLUDE) +LIBS += `sdl-config --libs`,-framework,OpenGL -lSDL_mixer -lSDL_image `xml2-config --libs` +LIBS += -lCerium -lFifoManager + +TARGET = demo dandy +OBJS = Character.o Bom.o tokuten.o collision.o count2.o Character_state.o schedule3.o tama2.o syokika.o Ss.o sound.o profile.o debug.o trace.o LoadSprite.o xml.o b64_de.o tree_controll.o object.o sys.o all: $(TARGET) test: $(TARGET) - ./$(TARGET) -test + ./demo -test -$(TARGET): $(OBJS) - $(CC) -o $@ $(OBJS) $(LIBS) +demo: $(OBJS) sgoex.o main.o + $(CC) $(ABI) -o $@ main.o sgoex.o $(OBJS) $(LIBS) + +dandy: $(OBJS) Dandy.o + $(CC) $(ABI) -o $@ $(OBJS) Dandy.o $(LIBS) clean: rm -f $(TARGET) $(OBJS) @@ -22,4 +28,7 @@ .c.o: $(CC) $(CFLAGS) $(INCLUDES) -c $< +.cc.o: + $(CC) $(CFLAGS) $(INCLUDES) -c $< + debug.o:debug.h
--- a/Makefile.ps3 Wed Dec 08 06:25:29 2010 +0900 +++ b/Makefile.ps3 Tue Dec 07 19:06:36 2010 +0900 @@ -1,20 +1,27 @@ # Makefile to build the SDL tests +include ./Makefile.def srcdir = . +ABI = -m32 -CC = gcc -CFLAGS = -g -O2 -Wall `sdl-config --cflags` `xml2-config --cflags` -LIBS = `sdl-config --libs` -lGL -lGLU -lSDL_mixer -lSDL_image `xml2-config --libs` -TARGET = demo -OBJS = sankaku.o sgoex.o Character.o Bom.o tokuten.o collision.o count2.o Character_state.o schedule3.o tama2.o syokika.o Ss.o sound.o main.o profile.o debug.o trace.o LoadSprite.o xml.o b64_de.o tree_controll.o object.o sys.o #back.o +CFLAGS += -g $(ABI) -O2 -Wall `/usr/bin/sdl-config --cflags` `xml2-config --cflags` $(INCLUDE) +LIBS += `/usr/bin/sdl-config --libs` -lGL -lGLU -lSDL_mixer -lSDL_image `xml2-config --libs` +LIBS += -lCerium -lCellManager -lspe2 + + +TARGET = demo dandy +OBJS = Character.o Bom.o tokuten.o collision.o count2.o Character_state.o schedule3.o tama2.o syokika.o Ss.o sound.o profile.o debug.o trace.o LoadSprite.o xml.o b64_de.o tree_controll.o object.o sys.o all: $(TARGET) test: $(TARGET) - ./$(TARGET) -test + ./demo -test -$(TARGET): $(OBJS) - $(CC) -o $@ $(OBJS) $(LIBS) +demo: $(OBJS) sgoex.o main.o + $(CC) $(ABI) -o $@ main.o sgoex.o $(OBJS) $(LIBS) + +dandy: $(OBJS) Dandy.o + $(CC) $(ABI) -o $@ $(OBJS) Dandy.o $(LIBS) clean: rm -f $(TARGET) $(OBJS) @@ -22,8 +29,7 @@ .c.o: $(CC) $(CFLAGS) $(INCLUDES) -c $< -debug.o:debug.h +.cc.o: + $(CC) $(CFLAGS) $(INCLUDES) -c $< -depend: - makedepend -- $(CFLAGS) -- $(OBJS:.o=.c) - +debug.o:debug.h