Line | |
---|
1 | |
---|
2 | bindir = @bindir@ |
---|
3 | datadir = @datadir@ |
---|
4 | datarootdir = @datarootdir@ |
---|
5 | exec_prefix = @exec_prefix@ |
---|
6 | includedir = @includedir@ |
---|
7 | libdir = @libdir@ |
---|
8 | mandir = @mandir@ |
---|
9 | prefix = @prefix@ |
---|
10 | srcdir = @srcdir@ |
---|
11 | |
---|
12 | destdir = $(prefix)/examples/app-fermi/fortran |
---|
13 | |
---|
14 | INSTALL = @INSTALL@ |
---|
15 | MKDIR_P = @MKDIR_P@ |
---|
16 | |
---|
17 | FC = @F77@ |
---|
18 | FCFLAGS = @CFLAGS@ |
---|
19 | FCDEBUGFLAGS = -Wall -g |
---|
20 | VPATH = $(srcdir) |
---|
21 | |
---|
22 | INCLUDES = -I$(srcdir)/../../../src/core |
---|
23 | LIBS = -L../../../src/core -lrappture \ |
---|
24 | -L$(libdir) -lexpat -lz -lm |
---|
25 | |
---|
26 | FC_SWITCHES = $(FCFLAGS) $(FCDEBUGFLAGS) $(DEFINES) $(INCLUDES) |
---|
27 | |
---|
28 | FILES = \ |
---|
29 | Makefile \ |
---|
30 | $(srcdir)/fermi.f \ |
---|
31 | $(srcdir)/tool.xml |
---|
32 | |
---|
33 | all: fermi |
---|
34 | |
---|
35 | fermi: $(srcdir)/fermi.f |
---|
36 | $(FC) $(FC_SWITCHES) $< -o $@ $(LIBS) |
---|
37 | |
---|
38 | install: fermi |
---|
39 | $(MKDIR_P) -m 0755 $(destdir) |
---|
40 | for i in $(FILES) ; do \ |
---|
41 | $(INSTALL) -m 0444 $$i $(destdir) ; \ |
---|
42 | done |
---|
43 | $(INSTALL) -m 0555 fermi $(destdir) |
---|
44 | |
---|
45 | |
---|
46 | clean: |
---|
47 | $(RM) fermi run*.xml |
---|
48 | |
---|
49 | distclean: clean |
---|
50 | $(RM) Makefile |
---|
Note: See
TracBrowser
for help on using the repository browser.