-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.common
More file actions
126 lines (98 loc) · 4.02 KB
/
Makefile.common
File metadata and controls
126 lines (98 loc) · 4.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
#PCD++ Makefile.common
export CPP=g++
export CC=gcc
export AR=ar
export YACPP=yacc
#export DEFINES_CPP += -DNEWCOORDIN
#===========================================================================
#PCD++ Directory Details
export MAINDIR=/home/grupo5/cd++
#If running parallel simulation, uncomment the following lines
#export DEFINES_CPP += -DMPI
#export LIBMPI = -lmpich
#===========================================================================
#===========================================================================
#MPI Directory Details
export MPIDIR=/home/atroccol/mpich-1.2.0
export LDFLAGS +=-L$(MPIDIR)/lib/
export INCLUDES_CPP += -I$(MPIDIR)/include
#===========================================================================
#===========================================================================
#WARPED CONFIGURATION
#===========================================================================
#Warped Directory Details
#For the TimeWarp kernel uncomment the following
#export DEFINES_CPP += -DKERNEL_TIMEWARP
#export TWDIR=$(MAINDIR)/warped/TimeWarp/src
#export PLIBS += -lTW $(LIBMPI)
#export TWLIB = libTW.a
#For the NoTimeKernel, uncomment the following
export DEFINES_CPP += -DKERNEL_NOTIME
export TWDIR=$(MAINDIR)/warped/NoTime/src
export PLIBS += -lNoTime $(LIBMPI)
export TWLIB = libNoTime.a
#Common defines
export TWOBJ=$(TWDIR)/obj
export COMMON=./warped/common
export DEFINES_CPP += -DUSE_USER_VTIME -DHAS_BOOLEAN
export INCLUDES_CPP += -I$(TWDIR) -I$(TWDIR)/../../common/include
export LDFLAGS += -L$(TWOBJ)/
#export DEPENDINC = -I/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include
#===========================================================================
#############################################################################################################
#MODELS
#Let's define here which models we would like to include in our distribution
#begin airport
#Uncomment these lines to include the airport models
#export DEFINES_CPP += -DDEVS_AIRPORT
#export INCLUDES_CPP += -I./models/airport
#export MODELLIBS += ./models/libairport.a
#export LDFLAGS += -L./models/airport
#export LIBS += -lairport
#end airport
#begin net
#Uncomment these lines to include the net models
#export DEFINES_CPP += -DDEVS_NET
#export INCLUDES_CPP += -I./models/net
#export MODELLIBS += ./models/libnet.a
#export LDFLAGS += -L./models/net
#export LIBS += -lnet
#end net
############################################################################################################
#############################################################################################################
#TESTING
#export DEFINES_CPP += -DDEVS_DELAY_INTERNAL
#export DEFINES_CPP += -DDEVS_DELAY_EXTERNAL
#export DEFINES_CPP += -DDEVS_NOTRANDOM
#export DEFINES_CPP += -DDEVS_LOGSENT
#############################################################################################################
#============================================================================
# Optimized Code - Requires more virtual memory.
export CPPFLAGS += -O3
#============================================================================
# gcc < 2.8.x
#export DEFINES_CPP +=-D_G_NO_EXTERN_TEMPLATES
#export CPPFLAGS += -fhandle-exceptions
#============================================================================
# gcc 2.8.x (y superiores):
# -------------------------
# Ver warnings:
export CPPFLAGS += -Wall
# Ignorar warnings:
#export CPPFLAGS += -w
# Include information for GDB:
#export CPPFLAGS += -g
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# The next flag must be actived ONLY if we are compiling under Windows 95 !!!!
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
#export CPPFLAGS += -D__WINDOWS__
#============================================================================
export DEFINES_C=
# If we are compiling for Unix
export INCLUDES_CPP += -I/usr/include -I.
# or if we are compiling for Windows 95
#INCLUDES_CPP= -I.
export INCLUDES_C=
export CFLAGS=
export DEBUGFLAGS=
export LDFLAGS+=-L.