25 lines
821 B
Makefile
25 lines
821 B
Makefile
SOURCES := gtest/src/gtest-all.cc gmock/src/gmock-all.cc
|
|
|
|
PROJECT := gtests
|
|
TARGET := $(PROJECT).a
|
|
BIN_DIR := ../bin/$(ARCH_DIR)/Release
|
|
TMP_DIR := ../tmp/mac/gtests/$(ARCH_DIR)/$(PROJECT)
|
|
DEFINES :=
|
|
LFLAGS :=
|
|
LIBS :=
|
|
OBJCOMP :=
|
|
INCFLAGS := -I ../third-party/gmock/include/ -I ../third-party/gtest/include/ -I ../third-party/gmock/ -I ../third-party/gtest/
|
|
OBJECTS := $(addprefix $(TMP_DIR)/, $(SOURCES:.cc=.o))
|
|
|
|
include ../mac_common.mak
|
|
|
|
clean:
|
|
-$(DEL_FILE) $(abspath $(OBJECTS))
|
|
-$(DEL_FILE) $(BIN_TARGET)
|
|
|
|
$(TMP_DIR)/%.o: %.cc $(TMP_DIR)/%/../.sentinel
|
|
$(CXX) -c $(CXXFLAGS) $(INCFLAGS) -o $(abspath $@) $(abspath $<)
|
|
|
|
$(BIN_TARGET): $(OBJECTS) $(BIN_DIR)/.sentinel $(OBJCOMP)
|
|
libtool $(SLIBFLAGS) -o $(BIN_TARGET) $(abspath $(OBJECTS)) $(OBJCOMP)
|