-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·37 lines (26 loc) · 918 Bytes
/
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
FC=gfortran
##$ Extends the implicit support of the Makefile to .f90 files
.SUFFIXES: .f90
GLOB_INC:=$(shell pkg-config --cflags scifor)
GLOB_LIB:=$(shell pkg-config --libs scifor)
OBJS = COMMON_VARS.o AUX_FUNX.o
ifeq ($(FC),ifort)
FFLAG=-O2 -ftz
DFLAG=-p -O0 -g -fpe0 -warn -warn errors -debug extended -traceback -check all,noarg_temp_created
endif
ifeq ($(FC),gfortran)
FFLAG = -O2 -ffree-line-length-none
DFLAG = -O2 -p -g -fimplicit-none -Wsurprising -Waliasing -fwhole-file -fcheck=all -pedantic -fbacktrace -ffree-line-length-none
endif
all: FLAG:=${FFLAG}
all: $(OBJS)
${FC} ${FLAG} ${OBJS} main.f90 -o test/testRDM_ED_NupNdw ${GLOB_INC} ${GLOB_LIB}
debug: FLAG:=${DFLAG}
debug: ${OBJS}
${FC} ${FLAG} ${OBJS} main.f90 -o test/testRDM_ED_NupNdw ${GLOB_INC} ${GLOB_LIB}
clean:
@echo "Cleaning:"
@rm -fv *.mod *.o *~ test/testRDM_ED_NupNdw
@echo ""
.f90.o:
$(FC) $(FLAG) -c $< ${GLOB_INC}