forked from sirocco-rt/sirocco
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
75 lines (58 loc) · 1.85 KB
/
Makefile.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#
# This is the makefile for the python related programs
#
# Make sure you have defined $PYTHON as this directory first
# then type
# ./configure
# make install
#
# if this fails, consult https://github.com/agnwinds/python/wiki/Installing-Python
# for manual install.
CMAKE = mpicc
GSL = $(PYTHON)/software/gsl-2.6
LIBS = True
MAKE_SOURCE = cd $(PYTHON)/source; make CC=$(CMAKE) INDENT=no python; make CC=$(CMAKE) INDENT=no py_wind; make CC=$(CMAKE) INDENT=no windsave2table
ifeq (True, $(LIBS))
INSTALL_GSL = cd $(GSL); ./configure --disable-shared --prefix=$(GSL) CC=gcc CCP=ccp; make -i; make check 2>&1; make -i install; make clean;
INSTALL_GSL_NOCHECK = cd $(GSL); ./configure --disable-shared --prefix=$(GSL) CC=gcc CCP=ccp; make -i; make -i install; make clean;
MOVE_GSL = mkdir $(PYTHON)/include/gsl/; mv $(GSL)/include/gsl/* $(PYTHON)/include/gsl; mv $(GSL)/lib/lib* $(PYTHON)/lib/;
else
INSTALL_GSL =
MOVE_GSL =
endif
# install for travis
travis_install:
@echo 'Installing Python. the radiative transfer code'
@echo 'Installing in directory '$(PYTHON)
# Then make GSL library
@echo 'Installing GSL library...'
$(INSTALL_GSL_NOCHECK)
$(MOVE_GSL)
#finally, make the latest release
@echo 'Making source code...'
$(MAKE_SOURCE)
@echo 'all done'
install:
@echo 'Installing Python. the radiative transfer code'
@echo 'Installing in directory '$(PYTHON)
# Then make GSL library
@echo 'Installing GSL library...'
$(INSTALL_GSL)
$(MOVE_GSL)
#finally, make the latest release
@echo 'Making source code...'
$(MAKE_SOURCE)
@echo 'all done'
clean:
rm -f *.o *~
cd $(GSL); make clean;
cd $(PYTHON)/source/; make clean
# runs a more rigorous clean in gsl
distclean:
rm -f *.o *~
cd $(GSL); make distclean
cd $(PYTHON)/source/; make clean
# actually removes the compiled libraries
rm_lib:
rm -rf $(PYTHON)/include/gsl/
rm -f $(PYTHON)/lib/lib*