Files
openpgp/gtest/makefile
2019-10-14 23:09:14 +03:00

27 lines
465 B
Makefile

GOOGLE_TEST_LIB = gtest
GOOGLE_TEST_INCLUDE = /usr/local/include
G++ = g++
G++_FLAGS = -c -Wall -std=c++17 -I $(GOOGLE_TEST_INCLUDE)
LD_FLAGS = -L /usr/local/lib -l $(GOOGLE_TEST_LIB) -l pthread
OBJECTS = ptest.o bstrcheck.o tlvcheck.o dolcheck.o
TARGET = ptest
all: $(TARGET)
$(TARGET): $(OBJECTS)
$(G++) -o $(TARGET) $(OBJECTS) $(LD_FLAGS)
%.o : %.cpp
$(G++) $(G++_FLAGS) $<
clean:
rm -f $(TARGET) $(OBJECTS)
test: all
./ptest
.PHONY: all clean test