RetroShare/rsctrl/src/Makefile
drbob e833fd1aaa Updated protobuf definitions to include ChatHistory,
added YOURSELF to friends options,
Improved Search Results Interface.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-rpc-b1@6136 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2013-02-22 20:51:24 +00:00

34 lines
944 B
Makefile

EXEC = protoc
#PROTO = core.proto peers.proto system.proto chat.proto search.proto files.proto gxs.proto msgs.proto
PROTO = core.proto peers.proto system.proto chat.proto search.proto files.proto
PROTOPATH = ./definition
#CDESTPATH = ./gencc
CDESTPATH = ../../retroshare-nogui/src/rpc/proto/gencc
PYDESTPATH = ./genpy
#PYDESTPATH = ../../../../github/pyrs/pyrs/proto
CLIST = $(PROTO:%.proto=%.cc)
CCODE = $(patsubst %.proto,$(CDESTPATH)/%.pb.cc, $(PROTO))
HCODE = $(patsubst %.proto,$(CDESTPATH)/%.pb.h, $(PROTO))
PYCODE = $(patsubst %.proto,$(PYDESTPATH)/%_pb2.py, $(PROTO))
all: allc python_proto
allc: $(CCODE)
echo $(CCODE)
python_proto: $(PYCODE)
echo $(PYCODE)
$(CDESTPATH)/%.pb.cc : $(PROTOPATH)/%.proto
$(EXEC) --proto_path=$(PROTOPATH) --cpp_out=$(CDESTPATH) $<
$(PYDESTPATH)/%_pb2.py : $(PROTOPATH)/%.proto
$(EXEC) --proto_path=$(PROTOPATH) --python_out=$(PYDESTPATH) $<
clean:
-/bin/rm $(CCODE) $(HCODE) $(PYCODE)