Log In | Get Help   
Home My Page Projects Code Snippets Project Openings Mareframe
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files
[mareframe] Annotation of /trunk/gadget/Makefile
[mareframe] / trunk / gadget / Makefile Repository:
ViewVC logotype

Annotation of /trunk/gadget/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 19 - (view) (download)

1 : agomez 1 ##########################################################################
2 :     # Common for all architecture and compiler options
3 :     ##########################################################################
4 :     GCCWARNINGS = -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wformat \
5 :     -Wparentheses -Wpointer-arith -Wcast-qual -Wconversion \
6 :     -Wreorder -Wwrite-strings -Wsynth -Wchar-subscripts \
7 : ulcessvp 11 -Wuninitialized -W -pedantic
8 : agomez 1
9 : ulcessvp 11 #DEFINE_FLAGS = -D DEBUG -D INTERRUPT_HANDLER -g -O3
10 : ulcessvp 19 DEFINE_FLAGS = -D NDEBUG -O3#-D INTERRUPT_HANDLER -O3
11 : ulcessvp 11 #DEFINE_FLAGS = -D NDEBUG -D INTERRUPT_HANDLER -O3 -pg
12 : agomez 1 #-s
13 :    
14 :     ##########################################################################
15 :     # The name of the final executable (eg gadget-paramin or gadget.exe)
16 :     #GADGET = gadget-paramin
17 : ulcessvp 17 GADGET = gadget
18 :     #GADGET = gadget-ompRepro
19 : ulcessvp 14 #GADGET = gadget-ompSpec
20 : agomez 1 ##########################################################################
21 :     # Pick the appropriate compiler from the following switches
22 :     ##########################################################################
23 :     # 1. Linux, or Cygwin, or Solaris, with MPI, mpic++ compiler
24 :     #CXX = mpic++
25 :     #LIBDIRS = -L. -L/usr/local/lib
26 :     #LIBRARIES = -lm
27 :     #CXXFLAGS = $(GCCWARNINGS) $(DEFINE_FLAGS) -D GADGET_NETWORK
28 :     #OBJECTS = $(GADGETINPUT) $(GADGETOBJECTS) $(SLAVEOBJECTS)
29 :     ##########################################################################
30 : ulcessvp 11 # 2. Linux, Mac, Cgwin or Solaris, without MPI, using g++ compiler - sequential
31 :     #CXX = g++
32 :     #LIBDIRS = -L. -L/usr/local/lib
33 :     #LIBRARIES = -lm
34 : ulcessvp 16 #CXXFLAGS = $(DEFINE_FLAGS)
35 : ulcessvp 11 #OBJECTS = $(GADGETINPUT) $(GADGETOBJECTS)
36 :     ##########################################################################
37 :     # 2,5. Linux, Mac, Cgwin or Solaris, without MPI, using g++ compiler and OpenMP Reproducible
38 : ulcessvp 19 #CXX = g++
39 :     #LIBDIRS = -L. -L/usr/local/lib
40 :     #LIBRARIES = -lm
41 :     #CXXFLAGS = $(DEFINE_FLAGS) -fopenmp
42 :     #OBJECTS = $(GADGETINPUT) $(GADGETOBJECTS)
43 :     ##########################################################################
44 :     # 2,6. Linux, Mac, Cgwin or Solaris, without MPI, using g++ compiler and OpenMP Speculative
45 : ulcessvp 12 CXX = g++
46 :     LIBDIRS = -L. -L/usr/local/lib
47 : ulcessvp 19 LIBRARIES = -lm
48 :     CXXFLAGS = $(DEFINE_FLAGS) -fopenmp -DSPECULATIVE
49 : ulcessvp 12 OBJECTS = $(GADGETINPUT) $(GADGETOBJECTS)
50 :     ##########################################################################
51 : agomez 1 # 3. Solaris, without pvm3, using CC compiler
52 :     #CXX = CC
53 :     #LIBDIRS = -L. -L/usr/local/lib
54 :     #LIBRARIES = -lm
55 :     #CXXFLAGS = $(DEFINE_FLAGS)
56 :     #OBJECTS = $(GADGETINPUT) $(GADGETOBJECTS)
57 :     ##########################################################################
58 :     # 4. Linux or Solaris, without pvm3, g++ compiler running CONDOR
59 :     #CXX = condor_compile g++
60 :     #LIBDIRS = -L. -L/usr/local/lib
61 :     #LIBRARIES = -lm
62 :     #CXXFLAGS = $(GCCWARNINGS) $(DEFINE_FLAGS)
63 :     #OBJECTS = $(GADGETINPUT) $(GADGETOBJECTS)
64 :     ##########################################################################
65 :    
66 :     GADGETOBJECTS = gadget.o ecosystem.o initialize.o simulation.o fleet.o otherfood.o \
67 :     area.o time.o keeper.o maininfo.o printinfo.o runid.o global.o stochasticdata.o \
68 :     timevariable.o formula.o readaggregation.o readfunc.o readmain.o readword.o \
69 :     actionattimes.o livesonareas.o lengthgroup.o conversionindex.o selectfunc.o \
70 : ulcessvp 5 suitfunc.o suits.o popinfomemberfunctions.o popratio.o popstatistics.o \
71 : agomez 1 interruptinterface.o agebandmatrix.o agebandmatrixmemberfunctions.o tags.o \
72 :     interrupthandler.o agebandmatrixratio.o agebandmatrixratiomemberfunctions.o \
73 :     migrationarea.o rectangle.o ludecomposition.o multinomial.o regressionline.o \
74 :     stock.o stockmemberfunctions.o renewal.o spawner.o stray.o transition.o \
75 :     grow.o grower.o growermemberfunctions.o growthcalc.o taggrow.o maturity.o \
76 :     initialcond.o migration.o naturalm.o lengthprey.o prey.o stockprey.o \
77 :     effortpredator.o lengthpredator.o linearpredator.o numberpredator.o \
78 :     quotapredator.o predator.o poppredator.o stockpredator.o totalpredator.o \
79 :     recaggregator.o predatorpreyaggregator.o stockpreyaggregator.o \
80 :     predatoraggregator.o predatoroveraggregator.o preyoveraggregator.o \
81 :     fleetpreyaggregator.o stockaggregator.o fleeteffortaggregator.o stockstdprinter.o \
82 :     predatorprinter.o predatoroverprinter.o predatorpreyprinter.o preyoverprinter.o \
83 :     stockfullprinter.o stockpreyfullprinter.o stockpreyprinter.o stockprinter.o \
84 :     likelihoodprinter.o summaryprinter.o boundlikelihood.o migrationpenalty.o \
85 :     catchdistribution.o catchinkilos.o catchstatistics.o understocking.o \
86 :     recapture.o recstatistics.o stockdistribution.o stomachcontent.o \
87 :     surveydistribution.o surveyindices.o sionstep.o sibyacousticonstep.o \
88 :     sibyageonstep.o sibyfleetonstep.o sibylengthonstep.o sibyeffortonstep.o \
89 :     optinfobfgs.o optinfohooke.o optinfosimann.o bfgs.o hooke.o simann.o \
90 :     addresskeepervector.o addresskeepermatrix.o intmatrix.o doublematrix.o \
91 :     agebandmatrixptrvector.o agebandmatrixptrmatrix.o agebandmatrixratioptrvector.o \
92 :     doublematrixptrvector.o doublematrixptrmatrix.o timevariablevector.o \
93 :     formulavector.o formulamatrix.o formulamatrixptrvector.o charptrmatrix.o \
94 :     popinfovector.o popinfomatrix.o popinfoindexvector.o suitfuncptrvector.o \
95 :     popratiovector.o popratiomatrix.o popratioindexvector.o fleetptrvector.o \
96 :     baseclassptrvector.o conversionindexptrvector.o likelihoodptrvector.o \
97 :     predatorptrvector.o preyptrvector.o printerptrvector.o stockptrvector.o \
98 :     migrationareaptrvector.o rectangleptrvector.o otherfoodptrvector.o \
99 :     tagptrvector.o optinfoptrvector.o errorhandler.o modelvariablevector.o \
100 : ulcessvp 2 stockvariable.o modelvariable.o migrationproportion.o matrix.o
101 : ulcessvp 11
102 :     GADGETCLASSES = agebandmatrixmemberfunctions.cc grow.cc growermemberfunctions.cc
103 : agomez 1
104 :     SLAVEOBJECTS = netdata.o slavecommunication.o pvmconstants.o
105 :    
106 :     GADGETINPUT = intvector.o doublevector.o charptrvector.o initialinputfile.o \
107 :     commentstream.o parameter.o parametervector.o strstack.o
108 :    
109 :     LDFLAGS = $(CXXFLAGS) $(LIBDIRS) $(LIBRARIES)
110 :    
111 : ulcessvp 11 partial : $(OBJECTS)
112 :     $(CXX) -c $(LDFLAGS) $(GADGETCLASSES)
113 :    
114 : agomez 1 gadget : $(OBJECTS)
115 :     $(CXX) -o $(GADGET) $(OBJECTS) $(LDFLAGS)
116 :    
117 :     ## you need root permission to be able to do this ...
118 :     install : $(GADGET)
119 :     strip $(GADGET)
120 :     cp $(GADGET) /usr/local/bin/
121 :     cp gadget.1 /usr/local/man/man1/
122 :    
123 :     ##########################################################################
124 :     # The following line is needed to create the gadget input library
125 :     # for newer versions of paramin. To create this library, you need
126 :     # to type "make libgadgetinput.a" *before* you compile paramin
127 :     ##########################################################################
128 :     EXTRAINPUT = optinfoptrvector.o doublematrix.o runid.o global.o errorhandler.o
129 :     libgadgetinput.a : $(GADGETINPUT) $(EXTRAINPUT)
130 :     ar rs libgadgetinput.a $?
131 :    
132 :     clean :
133 :     rm -f $(OBJECTS) libgadgetinput.a
134 :    
135 :     depend :
136 :     $(CXX) -M -MM $(CXXFLAGS) *.cc
137 :    
138 :     # DO NOT DELETE THIS LINE -- make depend depends on it.

root@forge.cesga.es
ViewVC Help
Powered by ViewVC 1.0.0  

Powered By FusionForge