github.com/jlmucb/cloudproxy@v0.0.0-20170830161738-b5aa0b619bc4/src/standalone/tmake.mak (about) 1 # 2 3 # Make libtao.a 4 5 #ifndef GOOGLE_INCLUDE 6 GOOGLE_INCLUDE=/usr/local/include/google 7 #endif 8 #ifndef LOCAL_LIB 9 LOCAL_LIB=/usr/local/lib 10 #endif 11 12 TS= $(SRC_DIR)/src/tao 13 LIBDEST=/Domains 14 INCLUDEDEST= $(LIBDEST)/include 15 LD_LIBRARY_PATH=/usr/local/lib 16 INCLUDE= -I$(SRC_DIR)/src -I$(TS) -I/usr/local/include -I$(GOOGLE_INCLUDE) -I$(INCLUDEDEST) -I/usr/local/ssl/include 17 18 CFLAGS=$(INCLUDE) -DOS_POSIX -O3 -g -Wall -std=c++11 -Wno-strict-aliasing -Wno-deprecated # -DGFLAGS_NS=google 19 CFLAGS1=$(INCLUDE) -DOS_POSIX -O1 -g -Wall -std=c++11 20 21 CC=g++ 22 LINK=g++ 23 PROTO=protoc 24 AR=ar 25 26 dobj_tlib=$(O)/message_channel.o $(O)/tao_rpc.o $(O)/fd_message_channel.o \ 27 $(O)/util.o $(O)/tao_rpc.pb.o $(O)/tao_rpc.pb.o 28 29 all: $(LIBDEST)/libtao.a 30 31 clean: 32 @echo "removing object files" 33 rm $(O)/*.o 34 @echo "removing libtao.a" 35 rm $(LIBDEST)/libtao.a 36 37 $(LIBDEST)/libtao.a: $(dobj_tlib) 38 @echo "linking tao library" 39 $(AR) -r $(LIBDEST)/libtao.a $(dobj_tlib) 40 41 $(O)/message_channel.o: $(TS)/message_channel.cc 42 @echo "compiling message_channel.cc" 43 $(CC) $(CFLAGS) $(INCLUDE) -c -o $(O)/message_channel.o $(TS)/message_channel.cc 44 45 $(O)/tao_rpc.pb.o: $(TS)/tao_rpc.pb.cc 46 @echo "proto 2" 47 $(CC) $(CFLAGS) $(INCLUDE) -c -o $(O)/tao_rpc.pb.o $(TS)/tao_rpc.pb.cc 48 49 #$(TS)/tao_rpc.pb.cc: $(TS)/tao_rpc.proto 50 # @echo "proto 1" 51 # @echo "$(PROTO) --cpp_out=$(TS) $(TS)/tao_rpc.proto" 52 # $(PROTO) --cpp_out=$(TS) $(TS)/tao_rpc.proto 53 54 $(O)/tao_rpc.o: $(TS)/tao_rpc.cc 55 @echo "compiling tao_rpc.cc" 56 $(CC) $(CFLAGS) $(INCLUDE) -c -o $(O)/tao_rpc.o $(TS)/tao_rpc.cc 57 58 $(O)/fd_message_channel.o: $(TS)/fd_message_channel.cc 59 @echo "compiling fd_message_channel.cc" 60 $(CC) $(CFLAGS) $(INCLUDE) -c -o $(O)/fd_message_channel.o $(TS)/fd_message_channel.cc 61 62 $(O)/util.o: $(TS)/util.cc 63 @echo "compiling util.cc" 64 $(CC) $(CFLAGS) $(INCLUDE) -c -o $(O)/util.o $(TS)/util.cc 65