From bceb2ee40e9ca9265bd2f20640c0d0f82a7c48f4 Mon Sep 17 00:00:00 2001 From: heck Date: Tue, 22 Feb 2022 22:36:50 +0100 Subject: [PATCH] Build: more warnings etc... --- Makefile.conf | 2 +- test/Makefile | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile.conf b/Makefile.conf index 4a802af..de3a9f4 100644 --- a/Makefile.conf +++ b/Makefile.conf @@ -13,7 +13,7 @@ PREFIX?=$(HOME) PREFIX_GTEST=/opt/local/ LANG_VERSION=c++17 -CXXFLAGS+=-fPIC +CXXFLAGS+=-fPIC -Wall -Wextra -ansi -pedantic ifneq (,$(findstring g++,$(CXX))) CXXFLAGS+=-fdiagnostics-color=always diff --git a/test/Makefile b/test/Makefile index 6aaab13..64b076f 100644 --- a/test/Makefile +++ b/test/Makefile @@ -7,12 +7,15 @@ CXXFLAGS:=-I../src $(CXXFLAGS) -I$(PREFIX_GTEST)/include TEST_SOURCE=$(wildcard *.cc) TEST_OBJECTS=$(subst .cc,.o,$(TEST_SOURCE)) +.PHONY: all, clean + all: unittests unittests: $(TEST_OBJECTS) ../src/libpEpDatatypes.a $(CXX) $(LDFLAGS) -o $@ $^ $(LDLIBS) -lgtest -lgtest_main -.PHONY: clean + + clean: rm -f unittests