summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-02-24 12:46:43 -0500
committerbd <bdunahu@operationnull.com>2025-02-24 12:46:43 -0500
commit42c03e2ad6110625b54c8aab5960a5d3723e54b0 (patch)
tree0df2f4cc266ecd2f2fc6d773d776dbd5a7989336 /Makefile
initial commit
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