Add Makefile
authornickolas360 <nickolas360@users.noreply.github.com>
Sat, 12 Nov 2016 10:42:27 +0000 (10:42 +0000)
committernickolas360 <nickolas360@users.noreply.github.com>
Sat, 12 Nov 2016 10:42:27 +0000 (10:42 +0000)
Makefile [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..81eac95
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,10 @@
+%.o: %.cpp
+       g++ -c -fPIC -Wall -Wextra -Werror -pedantic $<
+
+libmarkov.so: markov.o
+       g++ -shared -fPIC -o $@ $<
+
+.PHONY: install
+install: libmarkov.so markov.h
+       cp libmarkov.so /usr/local/lib/
+       cp markov.h /usr/local/include/
This page took 0.023013 seconds and 4 git commands to generate.