github.com/jlmucb/cloudproxy@v0.0.0-20170830161738-b5aa0b619bc4/src/standalone/cmake.mak (about) 1 # 2 3 # 4 # Make libchromium.a 5 # 6 7 #ifndef GOOGLE_INCLUDE 8 GOOGLE_INCLUDE=/usr/local/include/google 9 #endif 10 #ifndef LOCAL_LIB 11 LOCAL_LIB=/usr/local/lib 12 #endif 13 14 LIBDEST=/Domains 15 INCLUDEDEST= $(LIBDEST)/include 16 CS= $(SRC_DIR)/src/third_party/chromium/src/base 17 INCLUDE= -I$(CS) -I/usr/local/include -I$(GOOGLE_INCLUDE) -I$(INCLUDEDEST) -I$(INCLUDEDEST)/chromium 18 19 CFLAGS=$(INCLUDE) -DOS_POSIX -O3 -g -Wall -std=c++11 -Wno-strict-aliasing -Wno-deprecated # -DGFLAGS_NS=google 20 CFLAGS1=$(INCLUDE) -DOS_POSIX -O1 -g -Wall -std=c++11 21 22 CC=g++ 23 LINK=g++ 24 PROTO=protoc 25 AR=ar 26 export LD_LIBRARY_PATH=/usr/local/lib 27 LDFLAGS= -lprotobuf -lgtest -lgflags -lpthread -lcrypto -lssl -lchromium -lglog -lmodp 28 29 dobj_clib= $(O)/file_path_constants.o $(O)/file_util_posix.o $(O)/file_path.o $(O)/file_util.o 30 31 32 all: $(LIBDEST)/libchromium.a 33 34 clean: 35 @echo "removing object files" 36 rm $(O)/*.o 37 @echo "removing libchromium.a" 38 rm $(LIBDEST)/libchromium.a 39 40 $(LIBDEST)/libchromium.a: $(dobj_clib) 41 @echo "linking libchromium.a" 42 $(AR) -r $(LIBDEST)/libchromium.a $(dobj_clib) 43 44 $(O)/file_path_constants.o: $(CS)/file_path_constants.cc 45 @echo "compiling file_path_constants.cc" 46 echo "$(CC) $(CFLAGS) -c -o $(O)/file_path_constants.o $(CS)/file_path_constants.cc" 47 $(CC) $(CFLAGS) -c -o $(O)/file_path_constants.o $(CS)/file_path_constants.cc 48 49 $(O)/file_util_posix.o: $(CS)/file_util_posix.cc 50 @echo "compiling file_util_posix.cc" 51 $(CC) $(CFLAGS) -c -o $(O)/file_util_posix.o $(CS)/file_util_posix.cc 52 53 $(O)/file_path.o: $(CS)/file_path.cc 54 @echo "compiling file_path.cc" 55 $(CC) $(CFLAGS) -c -o $(O)/file_path.o $(CS)/file_path.cc 56 57 $(O)/file_util.o: $(CS)/file_util.cc 58 @echo "compiling file_util.cc" 59 $(CC) $(CFLAGS) -c -o $(O)/file_util.o $(CS)/file_util.cc 60