• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/usr/bin/make -f
2
3GTEST_INCLUDE_DIR = ..
4GTEST_SRC = $(wildcard ./*.cc)
5GTEST_OBJ = $(GTEST_SRC:.cc=.o)
6
7GTEST_LIB = libgtest.a
8
9$(GTEST_OBJ): %.o: %.cc
10	$(CXX) -o $@ -c $(CXXFLAGS) $(GTEST_DEFINES) -I$(GTEST_INCLUDE_DIR) $<
11
12$(GTEST_LIB): $(GTEST_OBJ)
13	$(AR) rc $@ $^
14	$(RANLIB) $@
15
16build: all
17
18all: $(GTEST_LIB)
19
20install:
21
22clean:
23	rm -f $(GTEST_OBJ) $(GTEST_LIB)
24