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