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

  1. #! gmake
  2. #
  3. # The contents of this file are subject to the Netscape Public License
  4. # Version 1.0 (the "NPL"); you may not use this file except in
  5. # compliance with the NPL.  You may obtain a copy of the NPL at
  6. # http://www.mozilla.org/NPL/
  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. # The Initial Developer of this code under the NPL is Netscape
  12. # Communications Corporation.  Portions created by Netscape are
  13. # Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  14. # Reserved.
  15. #
  16.  
  17. # Configuration information for building in the NSPR source module
  18.  
  19. # Define an include-at-most-once-flag
  20. NSPR_CONFIG_MK    = 1
  21.  
  22. include $(MOD_DEPTH)/config/module.df
  23.  
  24. include $(MOD_DEPTH)/config/arch.mk
  25.  
  26. ifndef NSDEPTH
  27. NSDEPTH = $(MOD_DEPTH)/..
  28. endif
  29.  
  30. #
  31. # Default command macros; can be overridden in <arch>.mk.
  32. #
  33. # XXX FIXME: I removed CCF and LINKEXE.
  34. AS        = $(CC)
  35. ASFLAGS        = $(CFLAGS)
  36. PURIFY        = purify $(PURIFYOPTIONS)
  37. LINK_DLL    = $(LINK) $(OS_DLLFLAGS) $(DLLFLAGS)
  38. NFSPWD        = $(MOD_DEPTH)/config/nfspwd
  39.  
  40. LIBNSPR        = $(DIST)/lib/libnspr.$(LIB_SUFFIX)
  41. PURELIBNSPR    = $(DIST)/lib/libpurenspr.$(LIB_SUFFIX)
  42.  
  43. CFLAGS        = $(OPTIMIZER) $(OS_CFLAGS) $(XP_DEFINE) $(DEFINES) $(INCLUDES) \
  44.                 $(XCFLAGS)
  45. # For purify
  46. NOMD_CFLAGS    = $(OPTIMIZER) $(NOMD_OS_CFLAGS) $(XP_DEFINE) $(DEFINES) $(INCLUDES) \
  47.                 $(XCFLAGS)
  48.  
  49. include $(MOD_DEPTH)/config/$(OS_CONFIG).mk
  50.  
  51. # Figure out where the binary code lives.
  52. BUILD        = $(OBJDIR_NAME)
  53. OBJDIR        = $(OBJDIR_NAME)
  54. DIST        = $(NSDEPTH)/dist/$(OBJDIR_NAME)
  55. ifeq ($(MOZ_BITS),16)
  56. MOZ_INCL    = $(NSDEPTH)/dist/public/win16
  57. MOZ_DIST    = $(NSDEPTH)/dist/WIN16D_D.OBJ
  58. endif
  59.  
  60. VPATH        = $(OBJDIR)
  61. DEPENDENCIES    = $(OBJDIR)/.md
  62.  
  63. ifdef BUILD_DEBUG_GC
  64. DEFINES        += -DDEBUG_GC
  65. endif
  66.  
  67. GARBAGE        += $(DEPENDENCIES) core $(wildcard core.[0-9]*)
  68.  
  69. ####################################################################
  70. #
  71. # The NSPR-specific configuration
  72. #
  73. ####################################################################
  74.  
  75. OS_CFLAGS += -DFORCE_PR_LOG
  76.  
  77. ifeq ($(_PR_NO_CLOCK_TIMER),1)
  78. OS_CFLAGS += -D_PR_NO_CLOCK_TIMER
  79. endif
  80.  
  81. ifeq ($(USE_PTHREADS), 1)
  82. OS_CFLAGS += -D_PR_PTHREADS -UHAVE_CVAR_BUILT_ON_SEM
  83. endif
  84.  
  85. ifeq ($(PTHREADS_USER), 1)
  86. OS_CFLAGS += -DPTHREADS_USER -UHAVE_CVAR_BUILT_ON_SEM
  87. endif
  88.  
  89. ifeq ($(USE_IPV6),1)
  90. OS_CFLAGS += -D_PR_INET6
  91. endif
  92.  
  93. ####################################################################
  94. #
  95. # Configuration for the release process
  96. #
  97. ####################################################################
  98.  
  99. MDIST = /m/dist
  100. ifeq ($(OS_ARCH),WINNT)
  101. MDIST = //helium/dist
  102. MDIST_DOS = \\\\helium\\dist
  103. endif
  104.  
  105. # RELEASE_DIR is ns/dist/<module name>
  106.  
  107. RELEASE_DIR = $(NSDEPTH)/dist/release/$(MOD_NAME)
  108.  
  109. RELEASE_INCLUDE_DIR = $(RELEASE_DIR)/$(BUILD_NUMBER)/$(OBJDIR_NAME)/include
  110. RELEASE_LIB_DIR = $(RELEASE_DIR)/$(BUILD_NUMBER)/$(OBJDIR_NAME)/lib
  111.