Unverified Commit 74df1bcf authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

update makefiles and add dependencies for parallel compile

parent 4868f5fd
Loading
Loading
Loading
Loading

lib/mesont/.depend

0 → 100644
+13 −0
Original line number Diff line number Diff line
CNTPot.o: CNTPot.f90 TPMLib.o
ExportCNT.o: ExportCNT.f90 CNTPot.o TPMLib.o TubePotMono.o TPMForceField.o
LinFun2.o: LinFun2.f90
Spline1.o: Spline1.f90
Spline2.o: Spline2.f90 Spline1.o
TPMForceField.o: TPMForceField.f90 CNTPot.o TPMM0.o TPMM1.o
TPMGeom.o: TPMGeom.f90 TPMLib.o
TPMLib.o: TPMLib.f90
TPMM0.o: TPMM0.f90 TubePotMono.o
TPMM1.o: TPMM1.f90 TubePotMono.o
TubePotBase.o: TubePotBase.f90 TPMLib.o
TubePotMono.o: TubePotMono.f90 TPMLib.o TPMGeom.o TubePotBase.o TubePotTrue.o LinFun2.o Spline2.o
TubePotTrue.o: TubePotTrue.f90 TPMGeom.o TubePotBase.o

lib/mesont/.gitignore

0 → 100644
+1 −0
Original line number Diff line number Diff line
*.mod
+2 −11
Original line number Diff line number Diff line
@@ -19,12 +19,9 @@ OBJ = $(SRC:.f90=.o)
# ------ SETTINGS ------

F90 =           gfortran
CC  =		gcc
F90FLAGS =      -O3 -fPIC -ffast-math -ftree-vectorize -fexpensive-optimizations -fno-second-underscore -g -ffree-line-length-none 
F90FLAGS =      -O3 -fPIC -ftree-vectorize -g -Wall
ARCHIVE =	ar
ARCHFLAG =	-rc
LINK =         	g++
LINKFLAGS =	-O
USRLIB =
SYSLIB =

@@ -36,15 +33,9 @@ lib: $(OBJ)

# ------ COMPILE RULES ------

%.o:%.F
	$(F90) $(F90FLAGS) -c $<

%.o:%.f90
	$(F90) $(F90FLAGS) -c $<

%.o:%.c
	$(CC) $(F90FLAGS) -c $<

include .depend
# ------ CLEAN ------

+1 −7
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@ OBJ = $(SRC:.f90=.o)
# ------ SETTINGS ------

F90 =           ifort
F90FLAGS =      -Ofast -fPIC -ipo
F90FLAGS =      -O3 -fPIC -g
ARCHIVE =	ar
ARCHFLAG =	-rc
USRLIB =
@@ -33,15 +33,9 @@ lib: $(OBJ)

# ------ COMPILE RULES ------

%.o:%.F
	$(F90) $(F90FLAGS) -c $<

%.o:%.f90
	$(F90) $(F90FLAGS) -c $<
	
%.o:%.c
	$(CC) $(F90FLAGS) -c $<

include .depend
# ------ CLEAN ------

+1 −0
Original line number Diff line number Diff line
Makefile.gfortran
 No newline at end of file
Loading