Skip to content

Commit

Permalink
updated Makefile.default file
Browse files Browse the repository at this point in the history
  • Loading branch information
Leandro Martinez committed Apr 9, 2017
1 parent d5f3ff6 commit c94eb77
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# configure generated Makefile
# configure generated Makefile
#
# Makefile for Packmol: Read the comments if you have some
# problem while compiling.
Expand Down
14 changes: 10 additions & 4 deletions Makefile.default
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# configure generated Makefile
#
# Makefile for Packmol: Read the comments if you have some
# problem while compiling.
Expand All @@ -20,7 +21,7 @@ FORTRAN = AUTO
#
# Change the flags of the compilation if you want:
#
FLAGS= -O3 -ffast-math
FLAGS= -O3 --fast-math

###################################################################
# #
Expand All @@ -41,6 +42,10 @@ ifeq ($(MAKECMDGOALS),devel)
FLAGS = -Wall -fcheck=bounds -g -fbacktrace -ffpe-trap=zero,overflow,underflow
GENCANFLAGS = -fcheck=bounds -g -fbacktrace -ffpe-trap=zero,overflow,underflow
endif
ifeq ($(MAKECMDGOALS),perf)
FLAGS = -g -pg
GENCANFLAGS = -g -pg
endif
#
# Files required
#
Expand All @@ -64,6 +69,7 @@ oall = cenmass.o \
polartocart.o \
resetboxes.o \
tobar.o \
setijk.o \
setibox.o \
restmol.o \
swaptype.o \
Expand All @@ -80,7 +86,6 @@ oall = cenmass.o \
computef.o \
computeg.o \
input.o

#
# Linking
#
Expand All @@ -97,6 +102,7 @@ all : $(oall)
#
# Compiling with flags for development
#
perf : devel
devel : $(oall)
@echo " ------------------------------------------------------ "
@echo " Compiling packmol with $(FORTRAN) "
Expand Down Expand Up @@ -163,6 +169,8 @@ resetboxes.o : resetboxes.f90 $(modules)
@$(FORTRAN) $(FLAGS) -c resetboxes.f90
tobar.o : tobar.f90 $(modules)
@$(FORTRAN) $(FLAGS) -c tobar.f90
setijk.o : setijk.f90 $(modules)
@$(FORTRAN) $(FLAGS) -c setijk.f90
setibox.o : setibox.f90 $(modules)
@$(FORTRAN) $(FLAGS) -c setibox.f90
restmol.o : restmol.f90 $(modules)
Expand All @@ -185,7 +193,6 @@ computef.o : computef.f90 $(modules)
@$(FORTRAN) $(FLAGS) -c computef.f90
computeg.o : computeg.f90 $(modules)
@$(FORTRAN) $(FLAGS) -c computeg.f90

#
# Clean build files
#
Expand All @@ -196,4 +203,3 @@ clean:
#
cleanall:
@\rm -f ./packmol ./*.o ./*.mod

0 comments on commit c94eb77

Please sign in to comment.