6 |
-Wreorder -Wwrite-strings -Wsynth -Wchar-subscripts \ |
-Wreorder -Wwrite-strings -Wsynth -Wchar-subscripts \ |
7 |
-Wuninitialized -W -pedantic |
-Wuninitialized -W -pedantic |
8 |
|
|
9 |
#DEFINE_FLAGS = -D DEBUG -D INTERRUPT_HANDLER -g -O |
#DEFINE_FLAGS = -D DEBUG -D INTERRUPT_HANDLER -g -O3 |
10 |
DEFINE_FLAGS = -D NDEBUG -D INTERRUPT_HANDLER -O3 |
DEFINE_FLAGS = -D NDEBUG -D INTERRUPT_HANDLER -O3 |
11 |
|
#DEFINE_FLAGS = -D NDEBUG -D INTERRUPT_HANDLER -O3 -pg |
12 |
#-s |
#-s |
13 |
|
|
14 |
########################################################################## |
########################################################################## |
25 |
#CXXFLAGS = $(GCCWARNINGS) $(DEFINE_FLAGS) -D GADGET_NETWORK |
#CXXFLAGS = $(GCCWARNINGS) $(DEFINE_FLAGS) -D GADGET_NETWORK |
26 |
#OBJECTS = $(GADGETINPUT) $(GADGETOBJECTS) $(SLAVEOBJECTS) |
#OBJECTS = $(GADGETINPUT) $(GADGETOBJECTS) $(SLAVEOBJECTS) |
27 |
########################################################################## |
########################################################################## |
28 |
# 2. Linux, Mac, Cgwin or Solaris, without MPI, using g++ compiler |
# 2. Linux, Mac, Cgwin or Solaris, without MPI, using g++ compiler - sequential |
29 |
|
#CXX = g++ |
30 |
|
#LIBDIRS = -L. -L/usr/local/lib |
31 |
|
#LIBRARIES = -lm |
32 |
|
#CXXFLAGS = $(DEFINE_FLAGS) -D NO_OPENMP |
33 |
|
#OBJECTS = $(GADGETINPUT) $(GADGETOBJECTS) |
34 |
|
########################################################################## |
35 |
|
# 2,5. Linux, Mac, Cgwin or Solaris, without MPI, using g++ compiler and OpenMP Reproducible |
36 |
CXX = g++ |
CXX = g++ |
37 |
LIBDIRS = -L. -L/usr/local/lib |
LIBDIRS = -L. -L/usr/local/lib |
38 |
LIBRARIES = -lm |
LIBRARIES = -lm |
39 |
CXXFLAGS = $(DEFINE_FLAGS) |
CXXFLAGS = $(DEFINE_FLAGS) -fopenmp |
40 |
OBJECTS = $(GADGETINPUT) $(GADGETOBJECTS) |
OBJECTS = $(GADGETINPUT) $(GADGETOBJECTS) |
41 |
########################################################################## |
########################################################################## |
42 |
|
# 2,6. Linux, Mac, Cgwin or Solaris, without MPI, using g++ compiler and OpenMP Speculative |
43 |
|
#CXX = g++ |
44 |
|
#LIBDIRS = -L. -L/usr/local/lib |
45 |
|
#LIBRARIES = -lm |
46 |
|
#CXXFLAGS = $(DEFINE_FLAGS) -fopenmp -D GADGET_OPENMP |
47 |
|
#OBJECTS = $(GADGETINPUT) $(GADGETOBJECTS) |
48 |
|
########################################################################## |
49 |
# 3. Solaris, without pvm3, using CC compiler |
# 3. Solaris, without pvm3, using CC compiler |
50 |
#CXX = CC |
#CXX = CC |
51 |
#LIBDIRS = -L. -L/usr/local/lib |
#LIBDIRS = -L. -L/usr/local/lib |
65 |
area.o time.o keeper.o maininfo.o printinfo.o runid.o global.o stochasticdata.o \ |
area.o time.o keeper.o maininfo.o printinfo.o runid.o global.o stochasticdata.o \ |
66 |
timevariable.o formula.o readaggregation.o readfunc.o readmain.o readword.o \ |
timevariable.o formula.o readaggregation.o readfunc.o readmain.o readword.o \ |
67 |
actionattimes.o livesonareas.o lengthgroup.o conversionindex.o selectfunc.o \ |
actionattimes.o livesonareas.o lengthgroup.o conversionindex.o selectfunc.o \ |
68 |
suitfunc.o suits.o popinfo.o popinfomemberfunctions.o popratio.o popstatistics.o \ |
suitfunc.o suits.o popinfomemberfunctions.o popratio.o popstatistics.o \ |
69 |
interruptinterface.o agebandmatrix.o agebandmatrixmemberfunctions.o tags.o \ |
interruptinterface.o agebandmatrix.o agebandmatrixmemberfunctions.o tags.o \ |
70 |
interrupthandler.o agebandmatrixratio.o agebandmatrixratiomemberfunctions.o \ |
interrupthandler.o agebandmatrixratio.o agebandmatrixratiomemberfunctions.o \ |
71 |
migrationarea.o rectangle.o ludecomposition.o multinomial.o regressionline.o \ |
migrationarea.o rectangle.o ludecomposition.o multinomial.o regressionline.o \ |
97 |
tagptrvector.o optinfoptrvector.o errorhandler.o modelvariablevector.o \ |
tagptrvector.o optinfoptrvector.o errorhandler.o modelvariablevector.o \ |
98 |
stockvariable.o modelvariable.o migrationproportion.o matrix.o |
stockvariable.o modelvariable.o migrationproportion.o matrix.o |
99 |
|
|
100 |
|
GADGETCLASSES = agebandmatrixmemberfunctions.cc grow.cc growermemberfunctions.cc |
101 |
|
|
102 |
SLAVEOBJECTS = netdata.o slavecommunication.o pvmconstants.o |
SLAVEOBJECTS = netdata.o slavecommunication.o pvmconstants.o |
103 |
|
|
104 |
GADGETINPUT = intvector.o doublevector.o charptrvector.o initialinputfile.o \ |
GADGETINPUT = intvector.o doublevector.o charptrvector.o initialinputfile.o \ |
106 |
|
|
107 |
LDFLAGS = $(CXXFLAGS) $(LIBDIRS) $(LIBRARIES) |
LDFLAGS = $(CXXFLAGS) $(LIBDIRS) $(LIBRARIES) |
108 |
|
|
109 |
|
partial : $(OBJECTS) |
110 |
|
$(CXX) -c $(LDFLAGS) $(GADGETCLASSES) |
111 |
|
|
112 |
gadget : $(OBJECTS) |
gadget : $(OBJECTS) |
113 |
$(CXX) -o $(GADGET) $(OBJECTS) $(LDFLAGS) |
$(CXX) -o $(GADGET) $(OBJECTS) $(LDFLAGS) |
114 |
|
|