|
|
|
FC=ifort
|
|
|
|
FFLAGS=-mcmodel=large -g -O0 -stand f08 -fpe0 -traceback -check bounds,uninit -warn all -implicitnone -no-wrap-margin
|
|
|
|
#FFLAGS=-mcmodel=large -Ofast -no-wrap-margin
|
|
|
|
MODES=mode_create.o mode_merge.o mode_convert.o
|
|
|
|
OPTIONS=opt_disl.o opt_group.o
|
|
|
|
OBJECTS=main.o elements.o io.o subroutines.o functions.o atoms.o call_mode.o box.o $(MODES) $(OPTIONS) call_option.o
|
|
|
|
|
|
|
|
.SUFFIXES:
|
|
|
|
.SUFFIXES: .c .f .f90 .F90 .o
|
|
|
|
|
|
|
|
cacmb: $(OBJECTS)
|
|
|
|
$(FC) $(FFLAGS) $(OBJECTS) parameters.o -o $@
|
|
|
|
|
|
|
|
.f90.o:
|
|
|
|
$(FC) $(FFLAGS) -c $<
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
$(RM) cacmb *.o
|
|
|
|
|
|
|
|
testfuncs: testfuncs.o functions.o subroutines.o
|
|
|
|
$(FC) testfuncs.o functions.o subroutines.o box.o elements.o -o $@
|
|
|
|
|
|
|
|
.PHONY: cleantest
|
|
|
|
cleantest:
|
|
|
|
$(RM) testfuncs testfuncs.o
|
|
|
|
|
|
|
|
.PHONY: test
|
|
|
|
test: testfuncs
|
|
|
|
./testfuncs
|
|
|
|
|
|
|
|
.PHONY: install
|
|
|
|
install: cacmb
|
|
|
|
cp ./cacmb /usr/local/bin
|
|
|
|
|
|
|
|
$(OBJECTS) : parameters.o
|
|
|
|
atoms.o subroutines.o testfuncs.o box.o : functions.o
|
|
|
|
main.o io.o $(MODES) $(OPTIONS) : elements.o
|
|
|
|
call_mode.o : $(MODES)
|
|
|
|
call_option.o : $(OPTIONS)
|
|
|
|
$(MODES) $(OPTIONS) io.o : atoms.o box.o
|
|
|
|
$(MODES) main.o : io.o
|
|
|
|
testfuncs.o elements.o mode_create.o $(OPTIONS): subroutines.o
|