home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / nsprpub / lib / ds / Makefile next >
Encoding:
Makefile  |  1998-04-08  |  2.6 KB  |  109 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. # Software distributed under the NPL is distributed on an "AS IS" basis,
  7. # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  8. # for the specific language governing rights and limitations under the
  9. # NPL.
  10. # The Initial Developer of this code under the NPL is Netscape
  11. # Communications Corporation.  Portions created by Netscape are
  12. # Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  13. # Reserved.
  14. #
  15.  
  16. #! gmake
  17.  
  18. MOD_DEPTH = ../..
  19.  
  20. include $(MOD_DEPTH)/config/config.mk
  21.  
  22. # Disable optimization of the nspr on SunOS4.1.3
  23. ifeq ($(OS_ARCH),SunOS)
  24. ifeq ($(OS_RELEASE),4.1.3_U1)
  25. OPTIMIZER =
  26. endif
  27. endif
  28.  
  29. INCLUDES = -I$(DIST)/include/private -I$(DIST)/include
  30.  
  31. CSRCS = \
  32.     plarena.c \
  33.     plevent.c \
  34.     plhash.c \
  35.     $(NULL)
  36.  
  37. HEADERS = \
  38.     plarenas.h \
  39.     plarena.h \
  40.     plevent.h \
  41.     plhash.h \
  42.     $(NULL)
  43.  
  44. ifeq ($(OS_ARCH), WINNT)
  45. ifeq (,$(filter-out WIN16 OS2,$(OS_TARGET)))
  46. # OS_CFLAGS = $(OS_EXE_CFLAGS)
  47. EXTRA_LIBS = $(DIST)/lib/nspr$(MOD_VERSION).lib
  48. else
  49. DLLBASE=/BASE:0x30000000
  50. RES=$(OBJDIR)/ds.res
  51. RESNAME=$(MOD_DEPTH)/pr/src/nspr.rc
  52. OS_LIBS = user32.lib
  53. EXTRA_LIBS = $(DIST)/lib/libnspr$(MOD_VERSION).lib
  54. endif
  55. else
  56. ifeq ($(OS_ARCH), AIX)
  57. ifeq ($(CLASSIC_NSPR),1)
  58. OS_LIBS += -lc
  59. else
  60. OS_LIBS += -lc_r
  61. endif
  62. endif
  63. ifeq ($(OS_ARCH)$(OS_RELEASE), AIX4.1)
  64. EXTRA_LIBS = -L$(DIST)/lib -lnspr$(MOD_VERSION)_shr
  65. else
  66. EXTRA_LIBS = -L$(DIST)/lib -lnspr$(MOD_VERSION)
  67. endif
  68. endif
  69.  
  70. # On NCR and SCO_SV, we can't link with extra libraries when
  71. # we build a shared library.  If we do so, the linker doesn't
  72. # complain, but we would run into weird problems at run-time.
  73. # Therefore on these platforms, we link just the .o files.
  74. ifeq ($(OS_ARCH),NCR)
  75. EXTRA_LIBS =
  76. endif
  77. ifeq ($(OS_ARCH),SCO_SV)
  78. EXTRA_LIBS =
  79. endif
  80.  
  81. LIBRARY_NAME    = plds
  82. LIBRARY_VERSION    = $(MOD_VERSION)
  83.  
  84. RELEASE_HEADERS = $(HEADERS)
  85. RELEASE_HEADERS_DEST = $(RELEASE_INCLUDE_DIR)
  86. RELEASE_LIBS    = $(TARGETS)
  87.  
  88. include $(MOD_DEPTH)/config/rules.mk
  89.  
  90. #
  91. # The Client build wants the shared libraries in $(DIST)/bin,
  92. # so we also install them there.
  93. #
  94.  
  95. export:: $(TARGETS)
  96.     $(INSTALL) -m 444 $(HEADERS) $(DIST)/include
  97.     $(INSTALL) -m 444 $(TARGETS) $(DIST)/lib
  98.     $(INSTALL) -m 444 $(SHARED_LIBRARY) $(DIST)/bin
  99. ifeq ($(MOZ_BITS),16)
  100.     $(INSTALL) -m 444 $(HEADERS) $(MOZ_INCL)
  101.     $(INSTALL) -m 444 $(TARGETS) $(MOZ_DIST)/lib
  102.     $(INSTALL) -m 444 $(TARGETS) $(MOZ_DIST)/bin
  103. endif
  104.  
  105. install:: export
  106.  
  107.