You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.2 KiB
44 lines
1.2 KiB
FC=ifort
|
|
FFLAGS=-mcmodel=large -g -O0 -stand f08 -fpe0 -traceback -check bounds,uninit -warn all -implicitnone -no-wrap-margin -heap-arrays
|
|
#FFLAGS=-mcmodel=large -Ofast -no-wrap-margin -heap-arrays
|
|
MODES=mode_create.o mode_merge.o mode_convert.o
|
|
OPTIONS=opt_disl.o opt_group.o opt_orient.o opt_delete.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) subroutines.o io.o : atoms.o box.o
|
|
$(MODES) main.o : io.o
|
|
testfuncs.o elements.o mode_create.o $(OPTIONS) $(MODES): subroutines.o
|