-
Notifications
You must be signed in to change notification settings - Fork 3
/
.Makefile.in
48 lines (36 loc) · 1.18 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
#-------------------------------------------------
# Makefile for 7keV
#-------------------------------------------------
#-------------------------------------------------
# Environment variables -- Change if needed
#-------------------------------------------------
FC =gfortran
FFLAGS =-g -Wall -fbacktrace
# Library directory (if any)
LDIR = lib
# Subdirectory with object files
ODIR = obj
# compiler dependent flag to place module files in include directory,
# if possible
MSFLAGS =-J$(ODIR)
# compiler dependent flag to load module files from include directory,
# if possible
MLFLAGS =-I$(ODIR)
#-------------------------------------------------
# Dependent variables
#-------------------------------------------------
# list of all library files that will be included
LIBF = $(patsubst lib%.a, %, $(notdir $(wildcard $(LDIR)/lib*.a)))
# link any libraries needed
ifeq ($(LIBF),)
LFLAGS=-lm
else
LFLAGS=-L$(LDIR) -lm $(addprefix -l,$(LIBF))
endif
#-------------------------------------------------
# Actions
#-------------------------------------------------
include ./deps
clean:
rm -f sterile-nu $(ODIR)/*.o $(ODIR)/*.mod *.mod
#-------------------------------------------------