AGA V1
Asexual Genetic Algorithm Version 1.0
makefile
00001 # makefile for AGA-V1
00002 #
00003 # Copyright (c) 2011 Ary Rodriguez and Alejandro Esquivel
00004 #
00005 # This file is part of AGA-V1.
00006 #
00007 # AGA-V1 is free software; you can redistribute it and/or modify
00008 # it under the terms of the GNU General Public License as published by
00009 # the Free Software Foundation; either version 3 of the License, or
00010 # (at your option) any later version.
00011 #
00012 # This program is distributed in the hope that it will be useful,
00013 # but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00015 # GNU General Public License for more details.
00016 #
00017 # You should have received a copy of the GNU General Public License
00018 # along with this program.  If not, see http://www.gnu.org/licenses/.
00019 #=======================================================================
00020 #---------------------------------------------------
00021 #   MPI paralalelization (Y/N)?
00022 MPIP = N
00023 #   OpenMP paralalelization (Y/N)?
00024 #   This is experimental only
00025 OMP = N
00026 #---------------------------------------------------
00027 OBJECTS = extfunc.o modules.o aga-v1.o main.o
00028 #---------------------------------------------------
00029 #  mame of the program
00030 PROGRAM=agav1
00031 #
00032 #   enter f90 compiler
00033 #COMPILER=g77
00034 COMPILER=ifort 
00035 #COMPILER=mpif90
00036 #
00037 #   compiler options
00038 FLAGS=-O3 -cpp -vec-report0 -r8
00039 #---------------------------------------------------
00040 ifeq ($(MPIP),Y)
00041 FLAGS += -DMPIP
00042 COMPILER=mpif90
00043 endif
00044 ifeq ($(OMP),Y)
00045 FLAGS += -openmp
00046 endif
00047 
00048 $(PROGRAM)  : ${OBJECTS}
00049         $(COMPILER) $(FLAGS) -o $@ $(OBJECTS)
00050 
00051 %.o:%.f90
00052         $(COMPILER) $(FLAGS) -c $^ -o $@
00053 %.o:%.f
00054         $(COMPILER) $(FLAGS) -c $^ -o $@
00055 
00056 .PHONY : clean
00057 clean :
00058         rm -f *.o *.mod 
00059         rm -f $(PROGRAM)
 All Namespaces Files Functions Variables