Config.pp 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514
  1. //
  2. // Config.pp
  3. //
  4. // This file defines certain configuration variables that are written
  5. // into the various make scripts. It is processed by ppremake (along
  6. // with the Sources.pp files in each of the various directories) to
  7. // generate build scripts appropriate to each environment.
  8. //
  9. // ppremake is capable of generating makefiles for Unix compilers such
  10. // as gcc or SGI's MipsPRO compiler, as well as for Windows
  11. // environments like Microsoft's Visual C++. It can also,
  12. // potentially, generate Microsoft Developer's Studio project files
  13. // directly, although we haven't written the scripts to do this yet.
  14. // In principle, it can be extended to generate suitable build script
  15. // files for any number of different build environments.
  16. //
  17. // All of these build scripts can be tuned for a particular
  18. // environment via this file. This is the place for the user to
  19. // specify which external packages are installed and where, or to
  20. // enable or disable certain optional features. However, it is
  21. // suggested that rather than modify this file directly, you create a
  22. // custom file in your home directory and there redefine whatever
  23. // variables are appropriate, and set the environment variable
  24. // PPREMAKE_CONFIG to refer to it. In this way, you can easily get an
  25. // updated source tree (including a new Config.pp) without risking
  26. // accidentally losing your customizations. This also avoids having
  27. // to redefine the same variables in different packages (for instance,
  28. // in dtool and in panda).
  29. //
  30. // The syntax in this file resembles some hybrid between C++
  31. // preprocessor declarations and GNU make variables. This is the same
  32. // syntax used in the various ppremake system configure files; it's
  33. // designed to be easy to use as a macro language to generate
  34. // makefiles and their ilk.
  35. //
  36. // Some of the variables below are defined using the #define command,
  37. // and others are defined using #defer. The two are very similar in
  38. // their purpose; the difference is that, if the variable definition
  39. // includes references to other variables (e.g. $[varname]), then
  40. // #define will evaluate all of the other variable references
  41. // immediately and store the resulting expansion, while #defer will
  42. // store only the variable references themselves, and expand them when
  43. // the variable is later referenced. It is very similar to the
  44. // relationship between := and = in GNU Make.
  45. //
  46. // In general, #defer is used in this file, to allow the user to
  47. // redefine critical variables in his or her own Config.pp file.
  48. // What kind of build scripts are we generating? This selects a
  49. // suitable template file from the ppremake system files. The
  50. // allowable choices, at present, are:
  51. //
  52. // unix - Generate makefiles suitable for most Unix platforms.
  53. // msvc - Generate makefiles suitable for building on Windows platforms
  54. // (e.g. Windows NT, Windows 2000) using the Microsoft Visual C++
  55. // command-line compiler and Microsoft nmake.
  56. // gmsvc - Generate makefiles similar to the above, using Microsoft
  57. // Visual C++, but uses the Cygwin-supplied GNU make
  58. // instead of Microsoft nmake. This is potentially
  59. // faster if you have multiple CPU's, since it supports
  60. // distributed make. It's a tiny bit slower if you're
  61. // not taking advantage of distributed make, because of
  62. // the overhead associated with Cygwin fork() calls.
  63. //
  64. #if $[eq $[PLATFORM],Win32]
  65. #define BUILD_TYPE msvc
  66. #else
  67. #define BUILD_TYPE unix
  68. #endif
  69. // What is the default install directory for all trees in the Panda
  70. // suite? You may also override this for a particular tree by
  71. // defining a variable name like DTOOL_INSTALL or PANDA_INSTALL. This
  72. // variable will have no effect when you are using the cttools to
  73. // control your attachment to the trees; in this case, the install
  74. // directory for each tree will by default be the root of the tree
  75. // itself (although this may be overridden).
  76. #define INSTALL_DIR /usr/local/panda
  77. // What level of compiler optimization/debug symbols should we build?
  78. // The various optimize levels are defined as follows:
  79. //
  80. // 1 - No compiler optimizations, full debug symbols
  81. // 2 - Full compiler optimizations, full debug symbols
  82. // (if the compiler supports this)
  83. // 3 - Full compiler optimizations, no debug symbols
  84. // 4 - Full optimizations, no debug symbols, and asserts removed
  85. //
  86. // NOTE: In the following, to indicate "yes" to a yes/no question,
  87. // define the variable to be a nonempty string. To indicate "no",
  88. // define the variable to be an empty string.
  89. // Many of the HAVE_* variables are defined in terms of expressions
  90. // based on the paths and library names, etc., defined above. These
  91. // are defined using the "defer" command, so that they are not
  92. // evaluated right away, giving the user an opportunity to redefine
  93. // the variables they depend on, or to redefine the HAVE_* variables
  94. // themselves (you can explicitly define a HAVE_* variable to some
  95. // nonempty string to force the package to be marked as installed).
  96. // Do you want to generate a Python-callable interrogate interface?
  97. // This is only necessary if you plan to make calls into Panda from a
  98. // program written in Python. This is done only if HAVE_PYTHON,
  99. // below, is also true.
  100. #define INTERROGATE_PYTHON_INTERFACE 1
  101. // Do you want to generate a C-callable interrogate interface? This
  102. // generates an interface similar to the Python interface above, with
  103. // a C calling convention. It should be useful for most other kinds
  104. // of scripting language; the VR Studio used to use this to make calls
  105. // into Panda from Squeak. This is not presently used by any VR
  106. // Studio code.
  107. #define INTERROGATE_C_INTERFACE
  108. // What additional options should be passed to interrogate when
  109. // generating either of the above two interfaces? Generally, you
  110. // probably don't want to mess with this.
  111. #define INTERROGATE_OPTIONS -fnames -string -refcount -assert
  112. // Is Python installed, and should Python interfaces be generated? If
  113. // Python is installed, which directory is it in? (If the directory
  114. // is someplace standard like /usr/include, you may leave it blank.)
  115. #define PYTHON_IPATH /usr/local/include/python1.6
  116. #define PYTHON_LPATH
  117. #defer HAVE_PYTHON $[isdir $[PYTHON_IPATH]]
  118. // Is NSPR installed, and where? This is the Netscape Portable
  119. // Runtime library, downloadable as part of the Mozilla package from
  120. // mozilla.org. It provides portable threading and networking
  121. // services to Panda. Panda should compile without it, although
  122. // without any threading or networking capabilities; eventually,
  123. // native support for these capabilities may be added for certain
  124. // platforms. See also HAVE_IPC and HAVE_NET.
  125. #define NSPR_IPATH /usr/include/nspr
  126. #define NSPR_LPATH
  127. #define NSPR_LIBS nspr4
  128. #defer HAVE_NSPR $[libtest $[NSPR_LPATH],$[NSPR_LIBS]]
  129. // Is a third-party STL library installed, and where? This is only
  130. // necessary if the default include and link lines that come with the
  131. // compiler don't provide adequate STL support. At least some form of
  132. // STL is absolutely required in order to build Panda.
  133. #define STL_IPATH
  134. #define STL_LPATH
  135. #define STL_CFLAGS
  136. #define STL_LIBS
  137. // Is Crypto++ installed, and where?
  138. #define CRYPTO_IPATH /usr/include/crypto++
  139. #define CRYPTO_LPATH /usr/lib
  140. #define CRYPTO_LIBS cryptlib
  141. #defer HAVE_CRYPTO $[libtest $[CRYPTO_LPATH],$[CRYPTO_LIBS]]
  142. // Is libjpeg installed, and where?
  143. #define JPEG_IPATH
  144. #define JPEG_LPATH
  145. #define JPEG_LIBS jpeg
  146. #defer HAVE_JPEG $[libtest $[JPEG_LPATH],$[JPEG_LIBS]]
  147. // Is libtiff installed, and where?
  148. #define TIFF_IPATH
  149. #define TIFF_LPATH
  150. #define TIFF_LIBS tiff
  151. #defer HAVE_TIFF $[libtest $[TIFF_LPATH],$[TIFF_LIBS]]
  152. // Is libfftw installed, and where?
  153. #define FFTW_IPATH /usr/local/include
  154. #define FFTW_LPATH /usr/local/lib
  155. #define FFTW_LIBS rfftw fftw
  156. #defer HAVE_FFTW $[libtest $[FFTW_LPATH],$[FFTW_LIBS]]
  157. // Is NURBS++ installed, and where?
  158. #define NURBSPP_IPATH /usr/local/include/nurbs++
  159. #define NURBSPP_LPATH /usr/local/lib
  160. #define NURBSPP_LIBS nurbsf matrixN matrixI matrix
  161. #defer HAVE_NURBSPP $[libtest $[NURBSPP_LPATH],$[NURBSPP_LIBS]]
  162. // Is VRPN installed, and where?
  163. #define VRPN_IPATH
  164. #define VRPN_LPATH
  165. #define VRPN_LIBS
  166. #defer HAVE_VRPN $[libtest $[VRPN_LPATH],$[VRPN_LIBS]]
  167. // Is ZLIB installed, and where?
  168. #define ZLIB_IPATH
  169. #define ZLIB_LPATH
  170. #define ZLIB_LIBS z
  171. #defer HAVE_ZLIB $[libtest $[ZLIB_LPATH],$[ZLIB_LIBS]]
  172. // Is the sox libst library installed, and where?
  173. #define SOXST_IPATH
  174. #define SOXST_LPATH
  175. #define SOXST_LIBS st
  176. #defer HAVE_SOXST $[libtest $[SOXST_LPATH],$[SOXST_LIBS]]
  177. // Is OpenGL installed, and where? This should include libGL as well
  178. // as libGLU, if they are in different places.
  179. #define GL_IPATH
  180. #define GL_LPATH /usr/X11R6/lib
  181. #if $[eq $[PLATFORM],Win32]
  182. #define GL_LIBS \
  183. opengl32.lib glu32.lib winmm.lib kernel32.lib \
  184. oldnames.lib mswsock.lib wsock32.lib \
  185. advapi32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib
  186. #else
  187. #define GL_LIBS GL GLU
  188. #endif
  189. #defer HAVE_GL $[libtest $[GL_LPATH],$[GL_LIBS]]
  190. // How about GLX?
  191. #define GLX_IPATH
  192. #define GLX_LPATH
  193. #if $[eq $[PLATFORM],Win32]
  194. #defer HAVE_GLX
  195. #else
  196. #defer HAVE_GLX $[HAVE_GL]
  197. #endif
  198. // Glut?
  199. #define GLUT_IPATH
  200. #define GLUT_LPATH
  201. #define GLUT_LIBS glut
  202. #defer HAVE_GLUT $[libtest $[GLUT_LPATH],$[GLUT_LIBS]]
  203. // Should we try to build the WGL interface?
  204. #define HAVE_WGL $[eq $[PLATFORM],Win32]
  205. // Should we try to build the SGI-specific glxdisplay?
  206. #define HAVE_SGIGL $[eq $[PLATFORM],Irix]
  207. // Should we try to build the DirectX interface? What additional
  208. // libraries do we need?
  209. #define DX_IPATH /mspsdk/Include
  210. #define DX_LPATH /mspsdk/Lib
  211. #define DX_LIBS \
  212. dxguid.lib winmm.lib kernel32.lib gdi32.lib comdlg32.lib winspool.lib \
  213. user32.lib advapi32.lib ddraw.lib d3dim.lib
  214. #defer HAVE_DX $[libtest $[DX_LPATH],$[DX_LIBS]]
  215. // Do you want to build the Renderman interface?
  216. #define HAVE_RIB
  217. // Is Mikmod installed? How should we run the libmikmod-config program?
  218. #define MIKMOD_CONFIG libmikmod-config
  219. #defer HAVE_MIKMOD $[bintest $[MIKMOD_CONFIG]]
  220. // Do you want to build in support for threading (inter-process
  221. // control)? What additional libraries are required? Currently, this
  222. // requires NSPR to compile correctly.
  223. #define IPC_IPATH
  224. #define IPC_LPATH
  225. #define IPC_LIBS
  226. #defer HAVE_IPC $[HAVE_NSPR]
  227. // Do you want to build the network interface? What additional libraries
  228. // are required? Currently, this requires NSPR.
  229. #define NET_IPATH
  230. #define NET_LPATH
  231. #if $[eq $[PLATFORM],Win32]
  232. #define NET_LIBS wsock32.lib
  233. #else
  234. #define NET_LIBS
  235. #endif
  236. #defer HAVE_NET $[HAVE_NSPR]
  237. // Do you want to build the PStats interface, for graphical run-time
  238. // performance statistics? This requires NET to be available. By
  239. // default, we don't build PStats when OPTIMIZE = 4, although this is
  240. // possible.
  241. #defer DO_PSTATS $[and $[HAVE_NET],$[< $[OPTIMIZE], 4]]
  242. // Do you want to include the "debug" and "spam" Notify messages?
  243. // Normally, these are stripped out when we build with OPTIMIZE = 4, but
  244. // sometimes it's useful to keep them around. Redefine this in your
  245. // own Config.pp to achieve that.
  246. #defer NOTIFY_DEBUG $[< $[OPTIMIZE], 4]
  247. // Do you want to build the audio interface? What additional
  248. // libraries are required?
  249. #define AUDIO_IPATH /mspsdk/Include
  250. #define AUDIO_LPATH /mspsdk/Lib
  251. #if $[eq $[PLATFORM],Win32]
  252. #define AUDIO_LIBS winmm.lib dsound.lib user32.lib ole32.lib dxguid.lib
  253. #else
  254. #define AUDIO_LIBS
  255. #endif
  256. #define HAVE_AUDIO 1
  257. // Is Gtk-- installed? How should we run the gtkmm-config program?
  258. // This matters only to programs in PANDATOOL.
  259. #define GTKMM_CONFIG gtkmm-config
  260. #defer HAVE_GTKMM $[bintest $[GTKMM_CONFIG]]
  261. // Is Maya installed? This matters only to programs in PANDATOOL.
  262. #define MAYA_LOCATION /usr/aw/maya2.5
  263. #defer HAVE_MAYA $[isdir $[MAYA_LOCATION]]
  264. // Define this to generate static libraries and executables, rather than
  265. // dynamic libraries.
  266. //#define LINK_ALL_STATIC yes
  267. // Define this to export the templates from the DLL. This is only
  268. // meaningful if LINK_ALL_STATIC is not defined, and we are building
  269. // on Windows. Some Windows compilers may not support this syntax.
  270. #defer EXPORT_TEMPLATES yes
  271. // Define this to explicitly link in the various external drivers, which
  272. // are normally separate, as part of the Panda library.
  273. //#define LINK_IN_GL yes
  274. //#define LINK_IN_DX yes
  275. //#define LINK_IN_EGG yes
  276. //#define LINK_IN_PHYSICS yes
  277. // Define USE_COMPILER to switch the particular compiler that should
  278. // be used. A handful of tokens are recognized, depending on BUILD_TYPE.
  279. // This may also be further customized within Global.$[BUILD_TYPE].pp.
  280. // If BUILD_TYPE is "unix", this may be one of:
  281. // GCC (gcc/g++)
  282. // MIPS (Irix MIPSPro compiler)
  283. //
  284. // If BUILD_TYPE is "msvc" or "gmsvc", this may be one of:
  285. // MSVC (Microsoft Visual C++)
  286. // BOUNDS (BoundsChecker)
  287. // INTEL (Intel C/C++ compiler)
  288. #if $[eq $[PLATFORM], Irix]
  289. #define USE_COMPILER MIPS
  290. #elif $[eq $[PLATFORM], Linux]
  291. #define USE_COMPILER GCC
  292. #elif $[eq $[PLATFORM], Win32]
  293. #if $[eq $[USE_COMPILER],]
  294. #define USE_COMPILER MSVC
  295. #endif
  296. #endif
  297. ///////////////////////////////////////////////////////////////////////
  298. // The following variables are meaningful when BUILD_TYPE is "unix" or
  299. // "msvc". They define a few environmental things.
  300. //////////////////////////////////////////////////////////////////////
  301. // How to invoke bison and flex. Panda takes advantage of some
  302. // bison/flex features, and therefore specifically requires bison and
  303. // flex, not some other versions of yacc and lex. You can build Panda
  304. // without having bison or flex, but only if you obtained Panda from a
  305. // tarball or zip archive that included the source files generated by
  306. // bison and flex, and only if you do not modify any bison or flex
  307. // sources.
  308. #defer BISON bison
  309. #defer FLEX flex
  310. // How to invoke sed. A handful of make rules use this. Since some
  311. // platforms (specifically, non-Unix platforms like Windows) don't
  312. // have any kind of sed, ppremake performs some limited sed-like
  313. // functions. The default is to use ppremake in this capacity. In
  314. // this variable, $[source] is the name of the file to read, $[target]
  315. // is the name of the file to generate, and $[script] is the one-line
  316. // sed script to run.
  317. #defer SED ppremake -s '$[script]' <$[source] >$[target]
  318. // What directory name (within each source directory) should the .o
  319. // (or .obj) files be written to, for both shared and static sources?
  320. // In general, it is safe to define these to be the same. However,
  321. // don't define these to be '.', or you will be very sad the next time
  322. // you run 'make clean'.
  323. //#defer ODIR Opt$[OPTIMIZE]-$[PLATFORM]$[USE_COMPILER]
  324. #defer ODIR Opt$[OPTIMIZE]-$[PLATFORM]
  325. #defer ODIR_SHARED $[ODIR]
  326. #defer ODIR_STATIC $[ODIR]
  327. ///////////////////////////////////////////////////////////////////////
  328. // The following variables are only meaningful when BUILD_TYPE is
  329. // "unix". These define the commands to invoke the compiler, linker,
  330. // etc.
  331. //////////////////////////////////////////////////////////////////////
  332. // How to invoke the C and C++ compilers.
  333. #defer CC gcc
  334. #defer CXX g++
  335. // How to compile a C or C++ file into a .o file. $[target] is the
  336. // name of the .o file, $[source] is the name of the source file,
  337. // $[ipath] is a space-separated list of directories to search for
  338. // include files, and $[flags] is a list of additional flags to pass
  339. // to the compiler.
  340. #defer COMPILE_C $[CC] -c -o $[target] $[ipath:%=-I%] $[flags] $[source]
  341. #defer COMPILE_C++ $[CXX] -c -o $[target] $[ipath:%=-I%] $[flags] $[source]
  342. // What flags should be passed to both C and C++ compilers to enable
  343. // compiler optimizations? This will be supplied when OPTIMIZE
  344. // (above) is set to 2, 3, or 4.
  345. #defer OPTFLAGS -O2
  346. // What define variables should be passed to the compilers for each
  347. // value of OPTIMIZE? We separate this so we can pass these same
  348. // options to interrogate, guaranteeing that the correct interfaces
  349. // are generated. Do not include -D here; that will be supplied
  350. // automatically.
  351. #defer CDEFINES_OPT1 _DEBUG
  352. #defer CDEFINES_OPT2 _DEBUG
  353. #defer CDEFINES_OPT3
  354. #defer CDEFINES_OPT4 NDEBUG
  355. // What additional flags should be passed for each value of OPTIMIZE
  356. // (above)? We separate out the compiler-optimization flags, above,
  357. // so we can compile certain files that give optimizers trouble (like
  358. // the output of lex and yacc) without them, but with all the other
  359. // relevant flags.
  360. #defer CFLAGS_OPT1 $[CDEFINES_OPT1:%=-D%] -Wall -g
  361. #defer CFLAGS_OPT2 $[CDEFINES_OPT2:%=-D%] -Wall -g
  362. #defer CFLAGS_OPT3 $[CDEFINES_OPT3:%=-D%]
  363. #defer CFLAGS_OPT4 $[CDEFINES_OPT4:%=-D%]
  364. // What additional flags should be passed to both compilers when
  365. // building shared (relocatable) sources? Some architectures require
  366. // special support for this.
  367. #defer CFLAGS_SHARED -fPIC
  368. // How to generate a C or C++ executable from a collection of .o
  369. // files. $[target] is the name of the binary to generate, and
  370. // $[sources] is the list of .o files. $[libs] is a space-separated
  371. // list of dependent libraries, and $[lpath] is a space-separated list
  372. // of directories in which those libraries can be found.
  373. #defer LINK_BIN_C $[CC] -o $[target] $[sources] $[lpath:%=-L%] $[libs:%=-l%]
  374. #defer LINK_BIN_C++ $[CXX] -o $[target] $[sources] $[lpath:%=-L%] $[libs:%=-l%]
  375. // How to generate a static C or C++ library. $[target] is the
  376. // name of the library to generate, and $[sources] is the list of .o
  377. // files that will go into the library.
  378. #defer STATIC_LIB_C ar cru $[target] $[sources]
  379. #defer STATIC_LIB_C++ ar cru $[target] $[sources]
  380. // How to run ranlib, if necessary, after generating a static library.
  381. // $[target] is the name of the library. Set this to the empty string
  382. // if ranlib is not necessary on your platform.
  383. #defer RANLIB ranlib $[target]
  384. // How to generate a shared C or C++ library. $[source] and $[target]
  385. // as above, and $[libs] is a space-separated list of dependent
  386. // libraries, and $[lpath] is a space-separated list of directories in
  387. // which those libraries can be found.
  388. #defer SHARED_LIB_C $[CC] -shared -o $[target] $[sources] $[lpath:%=-L%] $[libs:%=-l%]
  389. #defer SHARED_LIB_C++ $[CXX] -shared -o $[target] $[sources] $[lpath:%=-L%] $[libs:%=-l%]
  390. // How to install a data file or executable file. $[local] is the
  391. // local name of the file to install, and $[dest] is the name of the
  392. // directory to put it in.
  393. #defer INSTALL install -m 666 $[local] $[dest]
  394. #defer INSTALL_PROG install -m 777 $[local] $[dest]
  395. // When building under Irix, we assume you want to use the MIPSPro
  396. // compiler. Comment this bit out (or redefine the variables
  397. // yourself) if you'd rather use gcc or some other compiler.
  398. #if $[eq $[PLATFORM],Irix]
  399. #defer CC cc -n32 -mips3
  400. #defer CXX CC -n32 -mips3
  401. // Turn off a few annoying warning messages.
  402. // 1174 - function 'blah' was declared but never used
  403. // 1201 - trailing comma is nonstandard.
  404. // 1209 - controlling expression is constant, e.g. if (0) { ... }
  405. // 1234 - access control not specified, 'public' by default
  406. // 1355 - extra ";" ignored
  407. // 1375 - destructor for base class is not virtual.
  408. // this one actually is bad. But we got alot of them from the classes
  409. // that we've derived from STL collections. Beware of this.
  410. // 3322 - omission of explicit type is nonstandard ("int" assumed)
  411. #define WOFF_LIST -woff 1174,1201,1209,1234,1355,1375,3322
  412. // Linker warnings
  413. // 85 - definition of SOMESYMBOL in SOMELIB preempts that of definition in
  414. // SOMEOTHERLIB.
  415. #define WOFF_LIST $[WOFF_LIST] -Wl,-LD_MSG:off=85
  416. #defer OPTFLAGS -O2 -OPT:Olimit=2500
  417. #defer CFLAGS_OPT1 $[CDEFINES_OPT1:%=-D%] $[WOFF_LIST] -g
  418. #defer CFLAGS_OPT2 $[CDEFINES_OPT2:%=-D%] $[WOFF_LIST]
  419. #defer CFLAGS_OPT3 $[CDEFINES_OPT3:%=-D%] $[WOFF_LIST]
  420. #defer CFLAGS_OPT4 $[CDEFINES_OPT4:%=-D%] $[WOFF_LIST]
  421. #defer CFLAGS_SHARED
  422. #defer STATIC_LIB_C $[CC] -ar -o $[target] $[sources]
  423. #defer STATIC_LIB_C++ $[CXX] -ar -o $[target] $[sources]
  424. #defer RANLIB
  425. #define SHARED_FLAGS -Wl,-none -Wl,-update_registry,$[TOPDIR]/so_locations
  426. #defer SHARED_LIB_C $[CC] -shared $[SHARED_FLAGS] -o $[target] $[sources] $[lpath:%=-L%] $[libs:%=-l%]
  427. #defer SHARED_LIB_C++ $[CXX] -shared $[SHARED_FLAGS] -o $[target] $[sources] $[lpath:%=-L%] $[libs:%=-l%]
  428. #endif
  429. //////////////////////////////////////////////////////////////////////
  430. // There are also some additional variables that control specific
  431. // compiler/platform features or characteristics, defined in the
  432. // platform specific file Config.platform.pp. Be sure to inspect
  433. // these variables for correctness too.
  434. //////////////////////////////////////////////////////////////////////