home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / nsprpub / lib / msgc / src / Makefile < prev    next >
Encoding:
Makefile  |  1998-04-08  |  2.5 KB  |  108 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 -I../include
  30.  
  31. CSRCS = prgcapi.c prmsgc.c
  32.  
  33. ifeq ($(OS_ARCH),WINNT)
  34. ifeq ($(OS_TARGET),WIN16)
  35. CSRCS += win16gc.c
  36. else
  37. ifeq ($(OS_TARGET),OS2)
  38. CSRCS += os2gc.c
  39. else
  40. CSRCS += win32gc.c
  41. endif
  42. endif
  43. else
  44. CSRCS += unixgc.c
  45. endif
  46.  
  47. NSPR_VERSION = $(MOD_VERSION)
  48.  
  49. ifeq ($(OS_ARCH), WINNT)
  50. ifeq (,$(filter-out WIN16 OS2,$(OS_TARGET)))
  51. EXTRA_LIBS = $(DIST)/lib/nspr$(NSPR_VERSION).lib
  52. else
  53. DLLBASE=/BASE:0x30000000
  54. #RES=$(OBJDIR)/ds.res
  55. #RESNAME=$(MOD_DEPTH)/pr/src/nspr.rc
  56. #OS_LIBS = user32.lib
  57. EXTRA_LIBS = $(DIST)/lib/libnspr$(NSPR_VERSION).lib
  58. endif
  59. else
  60. ifeq ($(OS_ARCH), AIX)
  61. ifeq ($(CLASSIC_NSPR),1)
  62. OS_LIBS += -lc
  63. else
  64. OS_LIBS += -lc_r
  65. endif
  66. endif
  67. ifeq ($(OS_ARCH)$(OS_RELEASE), AIX4.1)
  68. EXTRA_LIBS = -L$(DIST)/lib -lnspr$(NSPR_VERSION)_shr
  69. else
  70. EXTRA_LIBS = -L$(DIST)/lib -lnspr$(NSPR_VERSION)
  71. endif
  72. endif
  73.  
  74. # On NCR and SCO_SV, we can't link with extra libraries when
  75. # we build a shared library.  If we do so, the linker doesn't
  76. # complain, but we would run into weird problems at run-time.
  77. # Therefore on these platforms, we link just the .o files.
  78. ifeq ($(OS_ARCH),NCR)
  79. EXTRA_LIBS =
  80. endif
  81. ifeq ($(OS_ARCH),SCO_SV)
  82. EXTRA_LIBS =
  83. endif
  84.  
  85. LIBRARY_NAME = msgc
  86. LIBRARY_VERSION = $(MOD_VERSION)
  87.  
  88. RELEASE_LIBS = $(TARGETS)
  89.  
  90. include $(MOD_DEPTH)/config/rules.mk
  91.  
  92. #
  93. # The Client build wants the shared libraries in $(DIST)/bin,
  94. # so we also install them there.
  95. #
  96.  
  97. export:: $(TARGETS)
  98.     $(INSTALL) -m 444 $(TARGETS) $(DIST)/lib
  99.     $(INSTALL) -m 444 $(SHARED_LIBRARY) $(DIST)/bin
  100. ifeq ($(MOZ_BITS),16)
  101.     $(INSTALL) -m 444 $(TARGETS) $(MOZ_DIST)/lib
  102.     $(INSTALL) -m 444 $(TARGETS) $(MOZ_DIST)/bin
  103. endif    
  104.  
  105. install:: export
  106.