github.com/jlmucb/cloudproxy@v0.0.0-20170830161738-b5aa0b619bc4/src/standalone/amake.mak (about)

     1  #
     2  
     3  #
     4  # Make libauth.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  AS= $(S)
    15  INCLUDE= -I$(S) -I/usr/local/include -I$(GOOGLE_INCLUDE)
    16  
    17  CFLAGS=$(INCLUDE) -DOS_POSIX -O3 -g -Wall -std=c++11 -Wno-strict-aliasing -Wno-deprecated # -DGFLAGS_NS=google
    18  CFLAGS1=$(INCLUDE) -DOS_POSIX -O1 -g -Wall -std=c++11
    19  
    20  CC=g++
    21  LINK=g++
    22  PROTO=protoc
    23  AR=ar
    24  export LD_LIBRARY_PATH=/usr/local/lib
    25  
    26  dobj_alib=$(O)/auth.o 
    27  
    28  all: $(LIBDEST)/libauth.a
    29  
    30  clean:
    31  	@echo "removing object files"
    32  	rm $(O)/*.o
    33  	@echo "removing libauth.a"
    34  	rm $(LIBDEST)/libauth.a
    35  
    36  $(LIBDEST)/libauth.a: $(dobj_alib)
    37  	@echo "linking libauth.a"
    38  	$(AR) -r $(LIBDEST)/libauth.a $(dobj_alib) 
    39  
    40  $(O)/auth.o: $(AS)/auth.cc
    41  	@echo "compiling auth.cc"
    42  	@echo "$O"
    43  	$(CC) $(CFLAGS) -c -o $(O)/auth.o $(AS)/auth.cc