Skip to content

Commit 49e6a1e

Browse files
committed
Moved installation to Makefile
1 parent dd68e14 commit 49e6a1e

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

Makefile

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# HASHpype Makefile
2+
#
3+
# - Mark Williams 2012.320
4+
# Based on HASH Makefile
5+
6+
SRCF= fmech_subs.f uncert_subs.f util_subs.f \
7+
pol_subs.f vel_subs.f station_subs.f vel_subs2.f
8+
9+
SRC= $(addprefix hashpy/src/, $(SRCF))
10+
11+
# HASHpype library module:
12+
hashpy: libhashpy.so
13+
14+
libhashpy.so: Makefile $(SRC)
15+
f2py -c -m libhashpy $(SRC)
16+
mv libhashpy.so hashpy
17+
18+
.PHONY : install
19+
install : libhashpy.so
20+
python setup.py install
21+

0 commit comments

Comments
 (0)