home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / config / config.mk < prev    next >
Encoding:
Text File  |  1998-04-08  |  14.0 KB  |  563 lines

  1. #
  2. # The contents of this file are subject to the Netscape Public License
  3. # Version 1.0 (the "NPL"); you may not use this file except in
  4. # compliance with the NPL.  You may obtain a copy of the NPL at
  5. # http://www.mozilla.org/NPL/
  6. #
  7. # Software distributed under the NPL is distributed on an "AS IS" basis,
  8. # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  9. # for the specific language governing rights and limitations under the
  10. # NPL.
  11. #
  12. # The Initial Developer of this code under the NPL is Netscape
  13. # Communications Corporation.  Portions created by Netscape are
  14. # Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  15. # Reserved.
  16. #
  17.  
  18. #
  19. # config.mk
  20. #
  21. # Determines the platform and builds the macros needed to load the
  22. # appropriate platform-specific .mk file, then defines all (most?)
  23. # of the generic macros.
  24. #
  25.  
  26. # This wastes time.
  27. include $(DEPTH)/config/common.mk
  28.  
  29. #
  30. # Important internal static macros
  31. #
  32. OS_ARCH        := $(subst /,_,$(shell uname -s))
  33. OS_RELEASE    := $(shell uname -r)
  34. OS_TEST        := $(shell uname -m)
  35.  
  36. #
  37. # Tweak the default OS_ARCH and OS_RELEASE macros as needed.
  38. #
  39. ifeq ($(OS_ARCH),AIX)
  40. OS_RELEASE    := $(shell uname -v).$(shell uname -r)
  41. endif
  42. ifeq ($(OS_ARCH),BSD_386)
  43. OS_ARCH        := BSD_OS
  44. endif
  45. ifeq ($(OS_ARCH),IRIX64)
  46. OS_ARCH        := IRIX
  47. endif
  48. ifeq ($(OS_ARCH),UNIX_SV)
  49. ifneq ($(findstring NCR,$(shell grep NCR /etc/bcheckrc | head -1 )),)
  50. OS_ARCH        := NCR
  51. else
  52. OS_ARCH        := UNIXWARE
  53. OS_RELEASE    := $(shell uname -v)
  54. endif
  55. endif
  56. ifeq ($(OS_ARCH),ncr)
  57. OS_ARCH        := NCR
  58. endif
  59. # This is the only way to correctly determine the actual OS version on NCR boxes.
  60. ifeq ($(OS_ARCH),NCR)
  61. OS_RELEASE    := $(shell awk '{print $$3}' /etc/.relid | sed 's/^\([0-9]\)\(.\)\(..\)\(.*\)$$/\2.\3/')
  62. endif
  63. ifeq ($(OS_ARCH),UNIX_System_V)
  64. OS_ARCH        := NEC
  65. endif
  66. ifeq ($(OS_ARCH),SCO_SV)
  67. OS_ARCH        := SCOOS
  68. OS_RELEASE    := 5.0
  69. endif
  70. ifeq ($(OS_ARCH),SINIX-N)
  71. OS_ARCH        := SINIX
  72. endif
  73. # SINIX changes name to ReliantUNIX with 5.43
  74. ifeq ($(OS_ARCH),ReliantUNIX-N)
  75. OS_ARCH        := SINIX
  76. endif
  77. ifeq ($(OS_ARCH),UnixWare)
  78. OS_ARCH        := UNIXWARE
  79. endif
  80.  
  81. #
  82. # Strip off the excessively long version numbers on these platforms,
  83. # but save the version to allow multiple versions of the same base
  84. # platform to be built in the same tree.
  85. #
  86. ifneq (,$(filter FreeBSD HP-UX IRIX Linux OSF1 SunOS,$(OS_ARCH)))
  87. OS_VERS        := $(suffix $(OS_RELEASE))
  88. OS_RELEASE    := $(basename $(OS_RELEASE))
  89. OS_VERSION    := $(shell echo $(OS_VERS) | sed 's/-.*//')
  90. endif
  91.  
  92. OS_CONFIG    := $(OS_ARCH)$(OS_RELEASE)
  93.  
  94. #
  95. # Personal makefile customizations go in these optional make include files.
  96. #
  97. MY_CONFIG    := $(DEPTH)/config/myconfig.mk
  98. MY_RULES    := $(DEPTH)/config/myrules.mk
  99.  
  100. #
  101. # Relative pathname from top-of-tree to current source directory
  102. #
  103. ifneq (,$(filter-out OS2 WINNT,$(OS_ARCH)))
  104. REVDEPTH    := $(DEPTH)/config/revdepth
  105. SRCDIR        = $(shell $(PERL) $(REVDEPTH).pl $(DEPTH))
  106. endif
  107.  
  108. #
  109. # Define an include-at-most-once flag
  110. #
  111. NS_CONFIG_MK    = 1
  112.  
  113. #
  114. # Provide the means to easily override our tool directory locations.
  115. #
  116. ifdef NETSCAPE_HIERARCHY
  117. CONTRIB_BIN    := /tools/contrib/bin/
  118. JAVA_BIN    := /usr/local/java/bin/
  119. LOCAL_BIN    := /usr/local/bin/
  120. LOCAL_SUN4    := /usr/local/sun4/bin/
  121. NS_BIN        := /tools/ns/bin/
  122. NS_LIB        := /tools/ns/lib
  123. JAVA_LIB    := /usr/local/netscape/java/lib
  124. XFEPRIVDIR    := $(DEPTH)/../ns_priv/xfe/
  125. else
  126. NS_LIB        := .
  127. JAVA_LIB    := .
  128. endif
  129.  
  130. #
  131. # Default command macros; can be overridden in <arch>.mk.
  132. #
  133. AS        = $(CC)
  134. ASFLAGS        = $(CFLAGS)
  135. BSDECHO        = echo
  136. CC        = gcc
  137. CCC        = g++
  138. CCF        = $(CC) $(CFLAGS)
  139. LINK_EXE    = $(LINK) $(OS_LFLAGS) $(LFLAGS)
  140. LINK_DLL    = $(LINK) $(OS_DLLFLAGS) $(DLLFLAGS)
  141. NFSPWD        = $(DEPTH)/config/nfspwd
  142. PURIFY        = purify $(PURIFYOPTIONS)
  143. QUANTIFY    = quantify $(QUANTIFYOPTIONS)
  144. RANLIB        = /bin/true
  145. SDKINSTALL    = $(NSINSTALL) -t
  146. UNZIP_PROG    = $(LOCAL_BIN)/unzip
  147. ZIP_PROG    = $(LOCAL_BIN)/zip
  148. ZIP_FLAGS    = -0rq
  149.  
  150. ifeq ($(OS_ARCH),OS2)
  151. EMPTY        :=
  152. SLASH        := /$(EMPTY)
  153. BSLASH        := \$(EMPTY)
  154. SEMICOLON    := ;$(EMPTY)
  155. SPACE        := $(EMPTY) $(EMPTY)
  156. PATH_SEPARATOR    := \;
  157. RC        = flipper rc$(BIN_SUFFIX)
  158. XP_DEFINE    = -DXP_PC
  159. LIB_SUFFIX    = lib
  160. DLL_SUFFIX    = dll
  161. MAP_SUFFIX    = map
  162. BIN_SUFFIX    = .exe
  163. AR        = flipper ILibo //noignorecase //nologo $@
  164. IMPLIB        = flipper ILibo //noignorecase //nologo $@
  165. DLLFLAGS    = -DLL -OUT:$@ $(XLFLAGS) -MAP:$(@:.dll=.map)
  166. LFLAGS        = $(OBJS) -OUT:$@ $(XLFLAGS) $(DEPLIBS) $(EXTRA_LIBS) -MAP:$(@:.dll=.map) $(DEF_FILE)
  167. NSINSTALL    = nsinstall
  168. INSTALL        = $(NSINSTALL)
  169. JAVA_PROG    = flipper java -norestart
  170. JAVAC_ZIP    = $(subst $(BSLASH),$(SLASH),$(JAVA_HOME))/lib/classes.zip
  171. else
  172. ifeq ($(OS_ARCH),WINNT)
  173. PATH_SEPARATOR    := :
  174. RC        = rc$(BIN_SUFFIX)
  175. XP_DEFINE    = -DXP_PC
  176. LIB_SUFFIX    = lib
  177. DLL_SUFFIX    = dll
  178. BIN_SUFFIX    = .exe
  179. AR        = lib -NOLOGO -OUT:"$@"
  180. DLLFLAGS    = $(XLFLAGS) -OUT:"$@"
  181. LFLAGS        = $(OBJS) $(DEPLIBS) $(EXTRA_LIBS) -OUT:"$@"
  182. NSINSTALL    = nsinstall
  183. INSTALL        = $(NSINSTALL)
  184. JAVA_PROG    = java
  185. else
  186. PATH_SEPARATOR    := :
  187. XP_DEFINE    = -DXP_UNIX
  188. AR        = ar cr $@
  189. DLL_SUFFIX    = so
  190. LIB_SUFFIX    = a
  191. ifeq ($(AWT_11),1)
  192. JAVA_PROG    = $(NS_BIN)java
  193. JAVAC_ZIP    = $(NS_LIB)/classes.zip
  194. else
  195. JAVA_PROG    = $(LOCAL_BIN)java
  196. JAVAC_ZIP    = $(JAVA_LIB)/javac.zip
  197. endif
  198. PERL        = $(NS_BIN)perl
  199. TAR        = tar
  200. EMACS        = xemacs
  201. WHOAMI        = /usr/bin/whoami
  202. endif
  203. endif
  204.  
  205. #
  206. # Debug by default.
  207. #
  208. OBJDIR_TAG    = _DBG
  209. OPTIMIZER    = -g
  210. JAVA_OPTIMIZER    = -g
  211. XBCFLAGS    = -FR$*
  212. XCFLAGS        = $(LCFLAGS)
  213. XLFLAGS        = $(LLFLAGS)
  214.  
  215. ifeq ($(OS_ARCH),OS2)
  216. OPTIMIZER    = -Ti+
  217. XLFLAGS        += -DEBUG
  218. ifdef BUILD_PROFILE
  219. OPTIMIZER    += -Gh+ 
  220. OBJDIR_TAG    = _PRF
  221. else
  222. OPTIMIZER    += -DDEBUG
  223. ifdef BUILD_MEMDBG
  224. OPTIMIZER    += -Tm+ -DXP_OS2_MEMDEBUG=1
  225. OBJDIR_TAG    = _MEM
  226. endif
  227. endif
  228. else
  229. ifeq ($(OS_ARCH),WINNT)
  230. OPTIMIZER    = -Od -Z7
  231. JAVA_OPTIMIZER    = $(OPTIMIZER)
  232. XLFLAGS        += -DEBUG
  233. else
  234. DEFINES        = -DDEBUG -UNDEBUG -DDEBUG_$(shell $(WHOAMI)) -DTRACING
  235. endif
  236. endif
  237.  
  238. ifdef BUILD_OPT
  239. OBJDIR_TAG    = _OPT
  240. XBCFLAGS    =
  241. ifeq ($(OS_ARCH),OS2)
  242. OPTIMIZER    = -O+ -Oi -DNDEBUG
  243. else
  244. ifeq ($(OS_ARCH),WINNT)
  245. OPTIMIZER    = -O2
  246. else
  247. OPTIMIZER    = -O
  248. DEFINES        = -UDEBUG -DNDEBUG -DTRIMMED
  249. endif
  250. endif
  251. endif
  252.  
  253. #
  254. # XXX For now, we're including $(DEPTH)/include directly instead of
  255. # getting this stuff from dist. This stuff is old and will eventually
  256. # be put in the library directories where it belongs so that it can
  257. # get exported to dist properly.
  258. #
  259. INCLUDES    = $(LOCAL_PREINCLUDES) $(MODULE_PREINCLUDES) -I$(DEPTH)/include $(LOCAL_INCLUDES) $(OS_INCLUDES)
  260.  
  261. LIBNT        = $(DIST)/lib/libnt.$(LIB_SUFFIX)
  262. LIBAWT        = $(DIST)/lib/libawt.$(LIB_SUFFIX)
  263. LIBMMEDIA    = $(DIST)/lib/libmmedia.$(LIB_SUFFIX)
  264.  
  265. #
  266. # NSPR 2.0 is now the default, "setenv NSPR10 1" to go back to 1.0
  267. #
  268. ifndef NSPR10
  269. NSPR20        = 1
  270. NSPRDIR        = nsprpub
  271. DEFINES        += -DNSPR20
  272. INCLUDES    += -I$(DIST)/include
  273. LIBNSPR        = $(DIST)/lib/libplds21.$(LIB_SUFFIX) \
  274.           $(DIST)/lib/libmsgc21.$(LIB_SUFFIX) \
  275.           $(DIST)/lib/libnspr21.$(LIB_SUFFIX)
  276. PURELIBNSPR    = $(DIST)/lib/purelibplds21.$(LIB_SUFFIX) \
  277.           $(DIST)/lib/purelibmsgc21.$(LIB_SUFFIX) \
  278.           $(DIST)/lib/purelibnspr21.$(LIB_SUFFIX)
  279. else
  280. NSPRDIR        = nspr
  281. LIBNSPR        = $(DIST)/lib/libnspr.$(LIB_SUFFIX)
  282. PURELIBNSPR    = $(DIST)/lib/libpurenspr.$(LIB_SUFFIX)
  283. endif
  284.  
  285. ifdef DBMALLOC
  286. LIBNSPR        += $(DIST)/lib/libdbmalloc.$(LIB_SUFFIX)
  287. endif
  288.  
  289. ifeq ($(OS_ARCH),OS2)
  290. LIBNSJAVA    = $(DIST)/lib/jrt$(MOZ_BITS)$(VERSION_NUMBER).$(LIB_SUFFIX)
  291. LIBMD        = $(DIST)/lib/libjmd.$(LIB_SUFFIX)
  292. LIBJAVA        = $(DIST)/lib/libjrt.$(LIB_SUFFIX)
  293. LIBNSPR        = $(DIST)/lib/pr$(MOZ_BITS)$(VERSION_NUMBER).$(LIB_SUFFIX)
  294. LIBXP        = $(DIST)/lib/libxp.$(LIB_SUFFIX)
  295. else
  296. ifeq ($(OS_ARCH),WINNT)
  297. LIBNSJAVA    = $(DIST)/lib/jrt3221.$(LIB_SUFFIX)
  298. else
  299. LIBNSJAVA    = $(DIST)/lib/nsjava32.$(LIB_SUFFIX)
  300. endif
  301. endif
  302.  
  303. CFLAGS        = $(XP_DEFINE) $(OPTIMIZER) $(OS_CFLAGS) $(MDUPDATE_FLAGS) $(DEFINES) $(INCLUDES) $(XCFLAGS) $(PROF_FLAGS)
  304. NOMD_CFLAGS    = $(XP_DEFINE) $(OPTIMIZER) $(OS_CFLAGS) $(DEFINES) $(INCLUDES) $(XCFLAGS)
  305.  
  306. #
  307. # Include the binary distrib stuff, if necessary.
  308. #
  309. ifdef NS_BUILD_CORE
  310. include $(DEPTH)/config/coreconf.mk
  311. endif
  312.  
  313. #
  314. # Now include the platform-specific stuff.
  315. #
  316. include $(DEPTH)/config/$(OS_ARCH).mk
  317.  
  318. #
  319. # Some platforms (Solaris) might require builds using either
  320. # (or both) compiler(s).
  321. #
  322. ifdef SHOW_CC_TYPE
  323. COMPILER    = _$(notdir $(CC))
  324. endif
  325.  
  326. #
  327. # Name of the binary code directories
  328. #
  329. ifeq ($(OS_ARCH)_$(PROCESSOR_ARCHITECTURE),WINNT_x86)
  330. OBJDIR_NAME    = $(OS_CONFIG)$(OS_VERSION)$(OBJDIR_TAG).OBJ
  331. else
  332. OBJDIR_NAME    = $(OS_CONFIG)$(OS_VERSION)$(PROCESSOR_ARCHITECTURE)$(COMPILER)$(IMPL_STRATEGY)$(OBJDIR_TAG).OBJ
  333. endif
  334.  
  335. # Figure out where the binary code lives. It either lives in the src
  336. # tree (NSBUILDROOT is undefined) or somewhere else.
  337. ifdef NSBUILDROOT
  338. BUILD        = $(NSBUILDROOT)/$(OBJDIR_NAME)/build
  339. OBJDIR        = $(BUILD)/$(SRCDIR)
  340. XPDIST        = $(NSBUILDROOT)
  341. DIST        = $(NSBUILDROOT)/$(OBJDIR_NAME)/dist
  342. else
  343. BUILD        = $(OBJDIR_NAME)
  344. OBJDIR        = $(OBJDIR_NAME)
  345. XPDIST        = $(DEPTH)/dist
  346. DIST        = $(DEPTH)/dist/$(OBJDIR_NAME)
  347. endif
  348.  
  349. # all public include files go in subdirectories of PUBLIC:
  350. PUBLIC        = $(XPDIST)/public
  351.  
  352. VPATH        = $(OBJDIR)
  353. DEPENDENCIES    = $(OBJDIR)/.md
  354.  
  355. ifneq ($(OS_ARCH),WINNT)
  356. MKDEPEND_DIR    = $(DEPTH)/config/mkdepend
  357. MKDEPEND    = $(MKDEPEND_DIR)/$(OBJDIR_NAME)/mkdepend
  358. MKDEPENDENCIES    = $(OBJDIR)/depend.mk
  359. endif
  360.  
  361. #
  362. # Include any personal overrides the user might think are needed.
  363. #
  364. -include $(MY_CONFIG)
  365.  
  366. ######################################################################
  367. # Now test variables that might have been set or overridden by $(MY_CONFIG).
  368.  
  369. DEFINES        += -DNETSCAPE -DOSTYPE=\"$(OS_CONFIG)\"
  370.  
  371. # Specify that we are building a client.
  372. # This will instruct the cross platform libraries to
  373. # include all the client specific cruft.
  374. ifdef SERVER_BUILD
  375. DEFINES        += -DSERVER_BUILD
  376. ifdef LIVEWIRE
  377. DEFINES        += -DLIVEWIRE
  378. endif
  379. STATIC_JAVA    = yes
  380. else
  381. MOZILLA_CLIENT    = 1
  382. DEFINES        += -DMOZILLA_CLIENT
  383. endif
  384.  
  385. ifdef MOZ_LITE
  386. NO_EDITOR    = 1
  387. NO_UNIX_LDAP    = 1
  388. MOZ_JSD        = 1
  389. MOZ_NAV_BUILD_PREFIX = 1
  390. endif
  391. ifdef MOZ_MEDIUM
  392. DEFINES        += -DNO_SECURITY -DEDITOR -DMOZ_COMMUNICATOR_IIDS
  393. EDITOR        = 1
  394. MOZ_JSD        = 1
  395. MOZ_COMMUNICATOR_IIDS    = 1
  396. MOZ_COMMUNICATOR_CONFIG_JS    = 1
  397. MOZ_COPY_ALL_JARS    = 1
  398. NO_SECURITY    = 1
  399. endif
  400. ifdef MOZ_GOLD
  401. DEFINES        += -DGOLD
  402. BUILD_GOLD    = 1
  403. endif
  404.  
  405.  
  406. ifdef EDITOR
  407. DEFINES        += -DEDITOR -DEDITOR_UI
  408. BUILD_EDITOR    = 1
  409. BUILD_EDITOR_UI    = 1
  410. BUILD_EDT    = 1
  411. endif
  412.  
  413. # Build layers by default
  414. ifndef NO_LAYERS
  415. DEFINES        += -DLAYERS
  416. endif
  417.  
  418. ifdef BUILD_DEBUG_GC
  419. DEFINES        += -DDEBUG_GC
  420. endif
  421.  
  422. ifdef BUILD_UNIX_PLUGINS
  423. # UNIX_EMBED Should not be needed. For now these two defines go
  424. # together until I talk with jg.  --dp
  425. DEFINES        += -DUNIX_EMBED -DX_PLUGINS
  426. endif
  427.  
  428. ifndef NO_UNIX_LDAP
  429. DEFINES        += -DUNIX_LDAP
  430. endif
  431.  
  432. #
  433. # Platform dependent switching off of NSPR, JAVA and MOCHA
  434. #
  435. ifndef NO_NSPR
  436. DEFINES        += -DNSPR
  437. endif
  438.  
  439. ifdef MOZ_JAVA
  440. DEFINES        += -DJAVA
  441. endif
  442.  
  443. ifndef NO_MOCHA
  444. DEFINES        += -DMOCHA
  445. endif
  446.  
  447. ifdef FORTEZZA
  448. DEFINES        += -DFORTEZZA
  449. endif
  450.  
  451. ifdef UNIX_SKIP_ASSERTS
  452. DEFINES        += -DUNIX_SKIP_ASSERTS
  453. endif
  454.  
  455. ifdef SHACK
  456. DEFINES        += -DSHACK
  457. endif
  458.  
  459. ifndef NO_UNIX_ASYNC_DNS
  460. DEFINES        += -DUNIX_ASYNC_DNS
  461. endif
  462.  
  463. # For profiling
  464. ifdef MOZILLA_GPROF
  465. # Don't want profiling on build tools..
  466. ifneq ($(SRCDIR),config)
  467. PROF_FLAGS    = $(OS_GPROF_FLAGS) -DMOZILLA_GPROF
  468. endif
  469. endif
  470.  
  471. # This compiles in heap dumping utilities and other good stuff 
  472. # for developers -- maybe we only want it in for a special SDK 
  473. # nspr/java runtime(?):
  474. DEFINES        += -DDEVELOPER_DEBUG
  475.  
  476. ######################################################################
  477.  
  478. GARBAGE        = $(DEPENDENCIES) core $(wildcard core.[0-9]*)
  479.  
  480. ifndef SDK
  481. SDK        = $(DEPTH)/dist/sdk
  482. endif
  483.  
  484. ifneq ($(OS_ARCH),WINNT)
  485. NSINSTALL    = $(DEPTH)/config/$(OBJDIR_NAME)/nsinstall
  486.  
  487. ifeq ($(NSDISTMODE),copy)
  488. # copy files, but preserve source mtime
  489. INSTALL        = $(NSINSTALL) -t
  490. else
  491. ifeq ($(NSDISTMODE),absolute_symlink)
  492. # install using absolute symbolic links
  493. INSTALL        = $(NSINSTALL) -L `$(NFSPWD)`
  494. else
  495. # install using relative symbolic links
  496. INSTALL        = $(NSINSTALL) -R
  497. endif
  498. endif
  499. endif
  500.  
  501. ######################################################################
  502. ### Java Stuff - see common.mk
  503. ######################################################################
  504.  
  505. # where the bytecode will go
  506. JAVA_DESTPATH    = $(XPDIST)/classes
  507.  
  508. # where the sources for the module you are compiling are
  509. # default is sun-java/classsrc, override for other modules
  510. ifndef JAVA_SOURCEPATH
  511. JAVA_SOURCEPATH    = $(DEPTH)/sun-java/classsrc
  512. endif
  513.  
  514. ifndef JAVAH_IN_JAVA
  515. ifeq ($(OS_ARCH),OS2)
  516. JAVAH_PROG    = flipper $(DIST)/bin/javah
  517. else
  518. JAVAH_PROG    = $(DIST)/bin/javah
  519. endif
  520. else
  521. JAVAH_PROG    = $(JAVA) netscape.tools.jric.Main
  522. endif
  523.  
  524. ifeq ($(STAND_ALONE_JAVA),1)
  525. STAND_ALONE_JAVA_DLL_SUFFIX    = s
  526. endif
  527.  
  528. ifeq ($(OS_ARCH),OS2)
  529. AWTDLL        = awt$(MOZ_BITS)$(VERSION_NUMBER).$(DLL_SUFFIX)
  530. AWTSDLL        = awt$(MOZ_BITS)$(VERSION_NUMBER)$(STAND_ALONE_JAVA_DLL_SUFFIX).$(DLL_SUFFIX)
  531. CONDLL        = con.$(MOZ_BITS)$(VERSION_NUMBER)(DLL_SUFFIX)
  532. JBNDLL        = jbn.$(MOZ_BITS)$(VERSION_NUMBER)(DLL_SUFFIX)
  533. JDBCDLL        = jdb.$(MOZ_BITS)$(VERSION_NUMBER)(DLL_SUFFIX)
  534. JITDLL        = jit.$(MOZ_BITS)$(VERSION_NUMBER)(DLL_SUFFIX)
  535. JPWDLL        = jpw.$(MOZ_BITS)$(VERSION_NUMBER)(DLL_SUFFIX)
  536. JRTDLL        = jrt$(MOZ_BITS)$(VERSION_NUMBER).$(DLL_SUFFIX)
  537. JSJDLL        = jsj.$(MOZ_BITS)$(VERSION_NUMBER)(DLL_SUFFIX)
  538. MMDLL        = mm$(MOZ_BITS)$(VERSION_NUMBER).$(DLL_SUFFIX)
  539. NETDLL        = net.$(MOZ_BITS)$(VERSION_NUMBER)(DLL_SUFFIX)
  540. NSCDLL        = nsc.$(MOZ_BITS)$(VERSION_NUMBER)(DLL_SUFFIX)
  541. ZIPDLL        = zip.$(MOZ_BITS)$(VERSION_NUMBER)(DLL_SUFFIX)
  542. ZPWDLL        = zpw.$(MOZ_BITS)$(VERSION_NUMBER)(DLL_SUFFIX)
  543. else
  544. AWTDLL        = libawt.$(DLL_SUFFIX)
  545. AWTSDLL        = libawt$(STAND_ALONE_JAVA_DLL_SUFFIX).$(DLL_SUFFIX)
  546. CONDLL        = libcon.$(DLL_SUFFIX)
  547. JBNDLL        = libjbn.$(DLL_SUFFIX)
  548. JDBCDLL        = libjdb.$(DLL_SUFFIX)
  549. JITDLL        = libjit.$(DLL_SUFFIX)
  550. JPWDLL        = libjpw.$(DLL_SUFFIX)
  551. JRTDLL        = libjrt.$(DLL_SUFFIX)
  552. JSJDLL        = libjsj.$(DLL_SUFFIX)
  553. MMDLL        = libmm.$(DLL_SUFFIX)
  554. NETDLL        = libnet.$(DLL_SUFFIX)
  555. NSCDLL        = libnsc.$(DLL_SUFFIX)
  556. ZIPDLL        = libzip.$(DLL_SUFFIX)
  557. ZPWDLL        = libzpw.$(DLL_SUFFIX)
  558. endif
  559.  
  560. JAVA_DEFINES    += -DAWTSDLL=\"$(AWTSDLL)\" -DCONDLL=\"$(CONDLL)\" -DJBNDLL=\"$(JBNDLL)\" -DJDBDLL=\"$(JDBDLL)\" \
  561.            -DJSJDLL=\"$(JSJDLL)\" -DNETDLL=\"$(NETDLL)\" -DNSCDLL=\"$(NSCDLL)\" -DZPWDLL=\"$(ZPWDLL)\"
  562.  
  563.