-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
40 lines (29 loc) · 1.03 KB
/
Makefile
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
# You can get a compiler binary from http://gcc.gnu.org/wiki/GFortranBinaries
# or http://ftp.g95.org/ or ftp://download.intel.com/software/products/compilers/downloads/
# Causes run-time error (end of file reading offset file)
#FC = gfortran
FC = g95
#FC = ifort
FFLAGS = -g
all: pdstrip
pdstrip: pdstrip.f90
nice $(FC) -o $@ $(FFLAGS) $^
#%.o : %.f90
# nice $(FC) -c $(FFLAGS) $^
clean:
$(RM) *.mod
dist-clean: clean
$(RM) *~ svn-commit.tmp pdstrip
cd examples; $(MAKE) $@
cd windows; $(MAKE) $@
# Archives are created in the parent directory
dist:
svn update # Seems necessary to kick svn info into the right revision
REVISION=`svn info|egrep "^Revision"|sed "s/Revision: //"`;\
$(MAKE) "pdstrip-bin_rev"$$REVISION".tar.gz";\
$(MAKE) "pdstrip-src_rev"$$REVISION".tar.gz"
pdstrip-src_rev%.tar.gz: dist-clean
cd ..; tar -cvzf $@ --exclude *.svn* pdstrip
pdstrip-bin_rev%.tar.gz: pdstrip
cd ..; tar -cvzf $@ --exclude *.svn* --exclude *Makefile pdstrip/doc \
pdstrip/examples pdstrip/README pdstrip/LICENSE pdstrip/pdstrip