VMProtect/third-party/mac_google.Tests.mak

25 lines
821 B
Makefile
Raw Normal View History

2023-05-14 16:21:09 +03:00
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)