CXX ?= c++

# The upstream test suite uses the public libbdsg headers and also calls
# functions from libhandlegraph and SDSL directly.
CXXFLAGS ?= -O2 -g -std=c++20 -fopenmp
LDLIBS = -lbdsg -lhandlegraph -lsdsl

.PHONY: all check clean

all: test_libbdsg

test_libbdsg: test_libbdsg.cpp
	$(CXX) $(CPPFLAGS) $(CXXFLAGS) -o $@ $< $(LDFLAGS) $(LDLIBS)

check: test_libbdsg
	./test_libbdsg

clean:
	rm -f test_libbdsg test.dat tmp??????
