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