home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / nsprpub / config / OS2.mk < prev    next >
Encoding:
Makefile  |  1998-04-08  |  2.4 KB  |  87 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. #
  17. # Configuration common to all (supported) versions of OS/2
  18. #
  19. # OS_CFLAGS is the command line options for the compiler when
  20. #   building the .DLL object files.
  21. # OS_EXE_CFLAGS is the command line options for the compiler
  22. #   when building the .EXE object files; this is for the test
  23. #   programs.
  24. # the macro OS_CFLAGS is set to OS_EXE_CFLAGS inside of the
  25. #   makefile for the pr/tests directory. ... Hack.
  26.  
  27.  
  28. #
  29. # On OS/2 we proudly support gbash...
  30. #
  31. SHELL = GBASH.EXE
  32.  
  33. CC            = icc -q -DXP_OS2 -N10
  34. CCC            = icc -q -DXP_OS2 -DOS2=4 -N10
  35. LINK            = flipper ilink
  36. AR            = flipper ilibo //noignorecase //nologo $@
  37. RANLIB = echo
  38. BSDECHO = echo
  39. NSINSTALL = nsinstall
  40. INSTALL    = $(NSINSTALL)
  41. MAKE_OBJDIR = mkdir $(OBJDIR)
  42. IMPLIB = flipper implib -nologo -noignorecase
  43. FILTER = flipper cppfilt -q
  44. RC = rc.exe
  45.  
  46. GARBAGE =
  47.  
  48. XP_DEFINE = -DXP_PC
  49. LIB_SUFFIX = lib
  50. DLL_SUFFIX = dll
  51.  
  52. OS_CFLAGS     = -I. -W3 -gm -gd+ -sd- -su4 -ge-
  53. OS_EXE_CFLAGS = -I. -W3 -gm -gd+ -sd- -su4 
  54. AR_EXTRA_ARGS = ,,
  55.  
  56. ifdef BUILD_OPT
  57. OPTIMIZER    = -O+ -Oi 
  58. DEFINES = -UDEBUG -U_DEBUG -DNDEBUG
  59. DLLFLAGS    = -DLL -OUT:$@ -MAP:$(@:.dll=.map)
  60. OBJDIR_TAG = _OPT
  61. else
  62. OPTIMIZER    = -Ti+
  63. DEFINES = -DDEBUG -D_DEBUG -UNDEBUG
  64. DLLFLAGS    = -DEBUG -DLL -OUT:$@ -MAP:$(@:.dll=.map)
  65. OBJDIR_TAG = _DBG
  66. LDFLAGS = -DEBUG 
  67. endif
  68.  
  69. DEFINES += -DOS2=4 -DBSD_SELECT
  70. DEFINES += -D_X86_
  71. DEFINES += -D_PR_GLOBAL_THREADS_ONLY
  72.  
  73. # Name of the binary code directories
  74. ifeq ($(CPU_ARCH),x386)
  75. ifdef MOZ_LITE
  76. OBJDIR_NAME = $(subst OS2,NAV,$(OS_CONFIG))$(OBJDIR_TAG).OBJ
  77. else
  78. OBJDIR_NAME = $(OS_CONFIG)$(OBJDIR_TAG).OBJ
  79. endif
  80. else
  81. OBJDIR_NAME = $(OS_CONFIG)$(CPU_ARCH)$(OBJDIR_TAG).OBJ
  82. endif
  83.  
  84. OS_DLLFLAGS = -nologo -DLL -FREE -NOE
  85.