aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..0a81f62
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,19 @@
+CXXFLAGS += -I. -std=c++14 -Wall -Wextra -Wno-unused-parameter
+
+HEADERS = $(wildcard Hilbert/*.hpp)
+TESTS = test/test_fsb
+
+all: $(TESTS)
+
+clean:
+ rm -f $(TESTS)
+
+test/%: test/%.cpp $(HEADERS)
+ $(CXX) $(CXXFLAGS) -o $@ $@.cpp
+
+FORCE:
+
+test/%.test: test/test_fsb FORCE
+ @test/$*
+
+test: $(addsuffix .test, $(TESTS))