home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / nsprpub / pr / src / misc / Makefile next >
Encoding:
Makefile  |  1998-04-08  |  1.5 KB  |  65 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. CSRCS =            \
  30.     pralarm.c  \
  31.     pratom.c   \
  32.     prdtoa.c   \
  33.     prenv.c    \
  34.     prerror.c  \
  35.     prinit.c   \
  36.     prinrval.c \
  37.     prlog2.c   \
  38.     prlong.c   \
  39.     prnetdb.c  \
  40.     prsystem.c \
  41.     prtime.c   \
  42.     prthinfo.c \
  43.     $(NULL)
  44.  
  45. TARGETS    = $(OBJS)
  46.  
  47. INCLUDES = -I$(DIST)/include/private -I$(DIST)/include
  48.  
  49. include $(MOD_DEPTH)/config/rules.mk
  50.  
  51. # An AIX Optimization bug causes PR_dtoa() to produce wrong result.
  52. # This suppresses optimization for this single compilation unit.
  53. ifeq ($(OS_ARCH), AIX)
  54. $(OBJDIR)/prdtoa.o:
  55.     @$(MAKE_OBJDIR)
  56.     $(CC) -o $@ -c $(filter-out -O, $(CFLAGS)) prdtoa.c
  57. endif
  58.  
  59. export:: $(TARGETS)
  60.  
  61. install:: export
  62.  
  63.