1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
PKG_CONFIG?=pkg-config
CXXFLAGS+=-Wall -std=c++17 -DSI_CONVERT_ICU -DSI_SUPPORT_IOSTREAMS
LDFLAGS+=-lpthread -lgtest -lgtest_main -lpthread -lsimpleini $(shell $(PKG_CONFIG) --libs icu-io) -L.. -Wl,-rpath-link=$(pwd)
OBJS=ts-bugfix.o ts-noconvert.o ts-quotes.o ts-roundtrip.o ts-snippets.o ts-utf8.o ts-numeric.o ts-boolean.o ts-sections.o ts-deletion.o ts-edgecases.o ts-multiline.o ts-casesensitivity.o ts-generic.o
BIN=./tests
all: test
$(BIN): $(OBJS)
$(CXX) -o $(BIN) $(OBJS) $(LDFLAGS)
clean:
rm -f core $(OBJS) $(BIN)
test: $(BIN)
$(BIN)
$(OBJS): ../SimpleIni.h
|