aboutsummaryrefslogtreecommitdiff
path: root/math/multichoose/files
diff options
context:
space:
mode:
authorJason W. Bacon <jwb@FreeBSD.org>2018-04-16 18:31:42 +0000
committerJason W. Bacon <jwb@FreeBSD.org>2018-04-16 18:31:42 +0000
commit29f4e93c879e68a184b9ca88142a504095a68de5 (patch)
tree6609e31582dd5ec0b5b5a088591d9bfa86e6522d /math/multichoose/files
parent1dfb1d60047d01f32318525b7c34439d313f5f1e (diff)
Notes
Diffstat (limited to 'math/multichoose/files')
-rw-r--r--math/multichoose/files/Makefile46
1 files changed, 46 insertions, 0 deletions
diff --git a/math/multichoose/files/Makefile b/math/multichoose/files/Makefile
new file mode 100644
index 000000000000..4a34304a228a
--- /dev/null
+++ b/math/multichoose/files/Makefile
@@ -0,0 +1,46 @@
+
+# Use ?= to allow overriding from the env or command-line, e.g.
+#
+# make CXXFLAGS="-O3 -fPIC" install
+#
+# Package managers will override many of these variables automatically, so
+# this is aimed at making it easy to create packages (Debian packages,
+# FreeBSD ports, MacPorts, pkgsrc, etc.)
+
+CC ?= cc
+CXX ?= c++
+DESTDIR ?= stage
+PREFIX ?= /usr/local
+MKDIR ?= mkdir
+INSTALL ?= install -c
+STRIP ?= strip
+AR ?= ar
+
+BINS = multichoose cmultichoose multipermute
+
+all: ${BINS}
+
+#multichoose_recursive: multichoose_recursive.cpp
+# ${CXX} multichoose_recursive.cpp -o multichoose_recursive
+
+multichoose: multichoose.cpp multichoose.h
+ ${CXX} multichoose.cpp -o multichoose
+
+multipermute: multipermute.cpp multipermute.h
+ ${CXX} multipermute.cpp -o multipermute
+
+cmultichoose: multichoose.c
+ ${CC} multichoose.c -o cmultichoose
+
+install: all
+ ${MKDIR} -p ${DESTDIR}${PREFIX}/bin
+ ${MKDIR} -p ${DESTDIR}${PREFIX}/include/multichoose
+ ${INSTALL} ${BINS} ${DESTDIR}${PREFIX}/bin
+ ${INSTALL} *.py ${DESTDIR}${PREFIX}/bin
+ ${INSTALL} *.h ${DESTDIR}${PREFIX}/include/multichoose
+
+install-strip: install
+ ${STRIP} ${DESTDIR}${PREFIX}/bin/*e
+
+clean:
+ rm -rf ${BINS} ${DESTDIR}