Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
37 lines (26 sloc) 640 Bytes
CPP=g++
GTEST_DIR=./gtest-1.7.0
GTEST_LIB=$(GTEST_DIR)/gtest-all.o
INCLUDES=-I $(GTEST_DIR) \
-I . \
-isystem $(GTEST_DIR)/include
LIBS=$(GTEST_LIB)
OPT_LEVEL=-O0
CPPFLAGS=-g -pthread -D_DEBUG=1 -w -std=c++11 $(OPT_LEVEL) $(INCLUDES) $(LIBS)
PROGRAM=dynamicbitset_test
SRC=ds.DynamicBitset.cpp \
dynamicbitset_test.cpp
OBJ=$(SRC:.cpp=.o)
all : $(PROGRAM)
$(PROGRAM) : $(OBJ)
$(CPP) $(CPPFLAGS) -o $@ $(OBJ)
%.o : %.cpp %.h
$(CPP) $(CPPFLAGS) -c $< -o $@
clean:
@echo "Removing objects..."
rm -f $(PROGRAM) *.o *~
install: $(PROGRAM)
cp $(PROGRAM) ../bin
ar:
make clean
tar -czvf ../$(PROGRAM)"(`date`)".tar.gz *
You can’t perform that action at this time.