comparison Renderer/Test/Makefile.macosx @ 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 fdc24fbeaedc
children 58d426cece23
comparison
equal deleted inserted replaced
863:c26aa4e52258 864:8323230d766b
1 include ./Makefile.def 1 include ./Makefile.def
2
3 PROTO = protoc
4 PROTODIR = ./protobuf
5 PROTOFLAGS = -I=$(PROTODIR) --cpp_out=./
6 PROTOLIBS = -lprotobuf
7
2 8
3 LIBS += -lCerium -lFifoManager 9 LIBS += -lCerium -lFifoManager
4 10
5 CFLAGS += `sdl-config --cflags` `xml2-config --cflags` $(INCLUDE) 11 CFLAGS += `sdl-config --cflags` `xml2-config --cflags` $(INCLUDE)
6 LIBS += `sdl-config --libs` `xml2-config --libs` -lSDL_image -Wl,-framework,OpenGL 12 LIBS += `sdl-config --libs` `xml2-config --libs` -lSDL_image -Wl,-framework,OpenGL
7 13
8 .SUFFIXES: .cc .o .xml .xml.h .xml.cc 14 .SUFFIXES: .proto .pb.o .pb.cc .cc .o .xml .xml.h .xml.cc
9 15
10 .cc.o: 16 .cc.o:
11 $(CC) $(CFLAGS) -c $< -o $@ 17 $(CC) $(CFLAGS) -c $< -o $@
18
19 %.pb.cc: $(PROTODIR)/%.proto
20 $(PROTO) $(PROTOFLAGS) $<
12 21
13 ALL = ball_bound boss1_action direction gaplant ieshoot node panel universe untitled vacuum property_test send_linda dynamic writer chain_old SgRootChange viewer aquarium 22 ALL = ball_bound boss1_action direction gaplant ieshoot node panel universe untitled vacuum property_test send_linda dynamic writer chain_old SgRootChange viewer aquarium
14 23
15 oFLAGS=-g -O2 24 oFLAGS=-g -O2
16 CFLAGt=-g -O2 25 CFLAGt=-g -O2
82 91
83 VIEWER_OBJ = viewer.o 92 VIEWER_OBJ = viewer.o
84 viewer : $(VIEWER_OBJ) 93 viewer : $(VIEWER_OBJ)
85 $(CC) -o $@ $? $(LIBS) 94 $(CC) -o $@ $? $(LIBS)
86 95
87 AQUARIUM_OBJ = aquarium.o 96 AQUARIUM_OBJ = aquarium.pb.o aquarium.o
88 aquarium : $(AQUARIUM_OBJ) 97 aquarium : $(AQUARIUM_OBJ)
89 $(CC) -o $@ $? $(LIBS) 98 $(CC) -o $@ $? $(LIBS) $(PROTOLIBS)
90 99
91 100
92 run: $(TARGET) 101 run: $(TARGET)
93 sudo ./$(TARGET) -width 576 -height 384 -bpp 32 102 sudo ./$(TARGET) -width 576 -height 384 -bpp 32
94 103
101 110
102 clean: 111 clean:
103 rm -f $(TARGET) $(OBJS) $(TASK_OBJS) *.o 112 rm -f $(TARGET) $(OBJS) $(TASK_OBJS) *.o
104 rm -f *~ \#* $(ALL) 113 rm -f *~ \#* $(ALL)
105 rm -f $(BALL_BOUND_XML).cc $(BALL_BOUND_XML).h $(BALL_BOUND_OBJ) 114 rm -f $(BALL_BOUND_XML).cc $(BALL_BOUND_XML).h $(BALL_BOUND_OBJ)
106 115 rm -f *.pb.{cc,h}
116
107 -include depend.inc 117 -include depend.inc