Skip to content
Permalink
78b590d614
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
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 *