File: ivcommondefs

package info (click to toggle)
inventor 2.1.5-10-21
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 36,312 kB
  • sloc: ansic: 33,864; lisp: 7,361; cpp: 3,874; yacc: 369; sh: 359; perl: 234; awk: 141; makefile: 81; csh: 35; sed: 11
file content (249 lines) | stat: -rw-r--r-- 4,879 bytes parent folder | download | duplicates (3)
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
include $(IVDEPTH)/make/system
include $(IVDEPTH)/make/commondefs

IVCOMMONRULES = $(IVDEPTH)/make/ivcommonrules



#
# Settings for systems without single-precision math functions.
#

MATHDEFS = -D_DOUBLE_MATH_ONLY



#
# Settings for IRIX systems.
#

ifeq ($(usingIrix), 1)

# Define this to have menus appear in the popup planes instead of the normal
# planes. You lose menu colors, but don't have to redraw the scene just to see
# a menu.
LCXXDEFS += -DMENUS_IN_POPUP

LD = $(TOOLROOT)/usr/bin/CC
LLDDSOOPTS += -Wl,-full_transitive_link
LLDOPTS += -Wl,-full_transitive_link
LD_QUICKSTART_INFO =

endif



#
# Assume FreeBSD options are the same as those for Linux.
#

ifeq ($(usingFreeBSD), 1)
usingLinux = 1
endif



#
# Override variables in commondefs when building on Linux systems.
#

ifeq ($(usingLinux), 1)

CC  = /usr/bin/gcc
C++ = /usr/bin/g++
LD  = /usr/bin/g++

INSTALL = /usr/bin/install
LN_S = ln -sf

# MKDEPOPT = -MD

# The linker flag '-z defs' enforces symbol resolution at build time,
# with the goal of catching any missing library reference [Policy 10.2].
#

GLDDSOOPTS = -shared -Wl,--whole-archive -Wl,-z,defs
ifneq ($(DSONAME),)
GLDDSOOPTS += -Wl,-soname=$(DSONAME) 
endif
POST_LDDSOOPTS = -Wl,--no-whole-archive

endif



#
# Additional settings for Linux systems and GNU compilers.
#

ifeq ($(usingLinux), 1)

LINUXOPTS = -fPIC
LCXXOPTS += $(LINUXOPTS)
LCOPTS += $(LINUXOPTS)

X11DIR = /usr/X11R6
X11INCDIR = $(X11DIR)/include
X11LIBDIR = $(X11DIR)/lib

LCXXINCS += -I$(X11INCDIR)
LCINCS += -I$(X11INCDIR)

LDDSOOPTS += -L$(X11LIBDIR)
LDOPTS += -L$(X11LIBDIR)

LLDLIBSCOMMON = -lXm -lXt -lGLw -lGL -lX11
endif



#
# Settings for Apple Darwin (Mac OS X) systems.
#

ifeq ($(usingDarwin), 1)

FREETYPE = 1

CC  = /usr/bin/gcc
C++ = /usr/bin/g++
LD  = /usr/bin/libtool

ARFLAGS = vrs
INSTALL = /usr/bin/install

LCXXDEFS += $(MATHDEFS)
LCDEFS += $(MATHDEFS)

DARWINOPTS = -dynamic -fno-common
LCXXOPTS += $(DARWINOPTS)
LCOPTS += $(DARWINOPTS)

X11DIR = /usr/X11R6
X11INCDIR = $(X11DIR)/include
X11LIBDIR = $(X11DIR)/lib

LCXXINCS += -I$(X11INCDIR)
LCINCS += -I$(X11INCDIR) -I$(X11INCDIR)/freetype2

LDDSOOPTS += -dynamic -all_load -L$(X11LIBDIR)
LDOPTS += -multiply_defined suppress -L$(X11LIBDIR)
CXXDSOOPTS += -bundle -flat_namespace -undefined suppress -L$(X11LIBDIR)

LOCALRULES = $(IVDEPTH)/make/localrules.apple

endif



#
# Determine optimization from LIBTYPE.
#

OPTIMIZER = -O -DNDEBUG
ifneq (, $(findstring debug, $(LIBTYPE)))
OPTIMIZER = -g
endif



#
# Inventor library include directories.
#

IVLIBHDRDIRS = \
	-I. \
	-I$(IVDEPTH)/lib/database/include \
	-I$(IVDEPTH)/lib/interaction/include \
	-I$(IVDEPTH)/lib/nodekits/include \
	-I$(IVDEPTH)/libSoXt/include

LCXXINCS += $(IVLIBHDRDIRS)
LCINCS += $(IVLIBHDRDIRS)



#
# Font library directories.
#

FLDIR = $(IVDEPTH)/libFL/src
FLLIB = -lFL
ifdef FREETYPE
FLDIR = $(IVDEPTH)/libFL/freetype
FLLIB += -lfreetype
endif



#
# Tools for generating Inventor man pages.
#

IVPPPDIR = $(IVDEPTH)/tools/ppp
IVPPP = $(IVPPPDIR)/ppp
IVMANDIR = $(shell dirname $(IVDEPTH))/doc/man/ivman
IVMAN = $(IVMANDIR)/ivman
MAKEMANDIRS = $(IVMANDIR)/makeManDirs



#
# Inventor install directories.
#

IVPREFIX = /usr
_BINDIR = $(IVPREFIX)/bin
_LIBDIR = $(IVPREFIX)/lib
_HDRTOP = $(IVPREFIX)/include/Inventor
_MAN1DIR = $(IVPREFIX)/share/man/man1
_MAN3DIR = $(IVPREFIX)/share/man/man3
_FONTPATH = $(IVPREFIX)/share/inventor/fonts
_HELPDIR = $(IVPREFIX)/share/inventor/help
_DATADIR = $(IVPREFIX)/share/inventor/data/models
_MATERIALSDIR = $(IVPREFIX)/share/inventor/data/materials
_TEXTURESDIR = $(IVPREFIX)/share/inventor/data/textures
_DEMOBINDIR = $(IVPREFIX)/lib/inventor
_DEMODATADIR = $(IVPREFIX)/share/inventor/data/demos

IVBINDIR = $(IVROOT)$(_BINDIR)
IVLIBDIR = $(IVROOT)$(_LIBDIR)
IVDLIBDIR = $(IVLIBDIR)/InventorDebug
IVHDRTOP = $(IVROOT)$(_HDRTOP)
IVHDRDIR = $(IVHDRTOP)/$(HDRSUBDIR)
IVMAN1DIR = $(IVROOT)$(_MAN1DIR)
IVMAN3DIR = $(IVROOT)$(_MAN3DIR)
IVHELPDIR = $(IVROOT)$(_HELPDIR)
IVDATADIR = $(IVROOT)$(_DATADIR)
IVMATERIALSDIR = $(IVROOT)$(_MATERIALSDIR)
IVTEXTURESDIR = $(IVROOT)$(_TEXTURESDIR)
IVDEMOBINDIR = $(IVROOT)$(_DEMOBINDIR)
IVDEMODATADIR = $(IVROOT)$(_DEMODATADIR)

# Set "local" C++ defines to specify pathnames.
#
LCXXDEFS = -DIVBINDIR=\"$(_BINDIR)\" \
	-DIVLIBDIR=\"$(_LIBDIR)\" \
	-DIVHDRTOP=\"$(_HDRTOP)\" \
	-DIVFONTPATH=\"$(_FONTPATH)\" \
	-DIVHELPDIR=\"$(_HELPDIR)\" \
	-DIVDATADIR=\"$(_DATADIR)\" \
	-DIVMATERIALSDIR=\"$(_MATERIALSDIR)\" \
	-DIVTEXTURESDIR=\"$(_TEXTURESDIR)\" \
	-DIVDEMOBINDIR=\"$(_DEMOBINDIR)\" \
	-DIVDEMODATADIR=\"$(_DEMODATADIR)\" \
	-DPDFVIEWER=\"xdg-open\"

#
# Locate installed Inventor libraries when linking applications.
#

ifneq (, $(findstring debug, $(LIBTYPE)))
LLDDSOOPTS += -L$(IVDLIBDIR)
LLDOPTS += -L$(IVDLIBDIR)
CXXDSOOPTS += -L$(IVDLIBDIR)
else
LLDDSOOPTS += -L$(IVLIBDIR)
LLDOPTS += -L$(IVLIBDIR)
CXXDSOOPTS += -L$(IVLIBDIR)
endif