summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..0d06904
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,18 @@
+CXX = g++
+PYTHON_VERSION = 3.10
+
+CXXFLAGS = -I$(shell python$(PYTHON_VERSION)-config --includes)
+LDFLAGS = $(shell python$(PYTHON_VERSION)-config --ldflags --embed)
+
+SRCDIR = src
+
+all: rv
+
+rv: $(SRCDIR)/rv.cc
+ $(CXX) $(CXXFLAGS) -o rv $(SRCDIR)/rv.cc $(LDFLAGS)
+
+test:
+ @echo "foo"
+
+clean:
+ rm -f rv