include ../common.mk CXXFLAGS+=\ -I/usr/src/googletest/googletest/include \ -I/usr/src/googletest/googlemock/include \ -I/usr/src/googletest/googletest \ -I/usr/src/googletest/googlemock \ -I.. test: unittests ./unittests unittests: libgmock.a unittests.o ../config.o ../file.o ../storage.o $(CXX) $(LDFLAGS) $^ $(LDLIBS) $(LIBS) -o $@ unittests.o: unittests.cpp $(CXX) $(CXXFLAGS) -o $@ -c unittests.cpp libgmock.a: $(CXX) $(CXXFLAGS) -c /usr/src/googletest/googletest/src/gtest-all.cc $(CXX) $(CXXFLAGS) -c /usr/src/googletest/googlemock/src/gmock-all.cc $(CXX) $(CXXFLAGS) -c /usr/src/googletest/googlemock/src/gmock_main.cc ar -rv libgmock.a gmock-all.o gtest-all.o gmock_main.o clean: -rm -f *.o *.a unittests