Mercurial > hg > Members > kono > Cerium
changeset 864:8323230d766b
edit Renderer/Test/Makefile for ProtocolBuffers (please install ProtocolBuffers)
author | kazz <kazz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 22 Jun 2010 12:08:14 +0900 |
parents | c26aa4e52258 |
children | dd2fbc35e570 |
files | Renderer/Test/Makefile.macosx |
diffstat | 1 files changed, 15 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/Renderer/Test/Makefile.macosx Tue Jun 22 10:44:58 2010 +0900 +++ b/Renderer/Test/Makefile.macosx Tue Jun 22 12:08:14 2010 +0900 @@ -1,15 +1,24 @@ include ./Makefile.def +PROTO = protoc +PROTODIR = ./protobuf +PROTOFLAGS = -I=$(PROTODIR) --cpp_out=./ +PROTOLIBS = -lprotobuf + + LIBS += -lCerium -lFifoManager CFLAGS += `sdl-config --cflags` `xml2-config --cflags` $(INCLUDE) LIBS += `sdl-config --libs` `xml2-config --libs` -lSDL_image -Wl,-framework,OpenGL -.SUFFIXES: .cc .o .xml .xml.h .xml.cc +.SUFFIXES: .proto .pb.o .pb.cc .cc .o .xml .xml.h .xml.cc .cc.o: $(CC) $(CFLAGS) -c $< -o $@ +%.pb.cc: $(PROTODIR)/%.proto + $(PROTO) $(PROTOFLAGS) $< + ALL = ball_bound boss1_action direction gaplant ieshoot node panel universe untitled vacuum property_test send_linda dynamic writer chain_old SgRootChange viewer aquarium oFLAGS=-g -O2 @@ -84,9 +93,9 @@ viewer : $(VIEWER_OBJ) $(CC) -o $@ $? $(LIBS) -AQUARIUM_OBJ = aquarium.o -aquarium : $(AQUARIUM_OBJ) - $(CC) -o $@ $? $(LIBS) +AQUARIUM_OBJ = aquarium.pb.o aquarium.o +aquarium : $(AQUARIUM_OBJ) + $(CC) -o $@ $? $(LIBS) $(PROTOLIBS) run: $(TARGET) @@ -103,5 +112,6 @@ rm -f $(TARGET) $(OBJS) $(TASK_OBJS) *.o rm -f *~ \#* $(ALL) rm -f $(BALL_BOUND_XML).cc $(BALL_BOUND_XML).h $(BALL_BOUND_OBJ) - + rm -f *.pb.{cc,h} + -include depend.inc