Browse Source

Build: more warnings etc...

master
heck 4 months ago
parent
commit
bceb2ee40e
2 changed files with 5 additions and 2 deletions
  1. +1
    -1
      Makefile.conf
  2. +4
    -1
      test/Makefile

+ 1
- 1
Makefile.conf View File

@ -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


+ 4
- 1
test/Makefile View File

@ -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


Loading…
Cancel
Save