PageRenderTime 34ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/js/lib/Socket.IO-node/support/expresso/deps/jscoverage/js/config.mk

http://github.com/onedayitwillmake/RealtimeMultiplayerNodeJs
Makefile | 206 lines | 140 code | 19 blank | 47 comment | 0 complexity | 258e0425ccc46180843de1530d7b1b83 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1, MPL-2.0-no-copyleft-exception, BSD-3-Clause
  1. # -*- Mode: makefile -*-
  2. #
  3. # ***** BEGIN LICENSE BLOCK *****
  4. # Version: MPL 1.1/GPL 2.0/LGPL 2.1
  5. #
  6. # The contents of this file are subject to the Mozilla Public License Version
  7. # 1.1 (the "License"); you may not use this file except in compliance with
  8. # the License. You may obtain a copy of the License at
  9. # http://www.mozilla.org/MPL/
  10. #
  11. # Software distributed under the License is distributed on an "AS IS" basis,
  12. # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  13. # for the specific language governing rights and limitations under the
  14. # License.
  15. #
  16. # The Original Code is Mozilla Communicator client code, released
  17. # March 31, 1998.
  18. #
  19. # The Initial Developer of the Original Code is
  20. # Netscape Communications Corporation.
  21. # Portions created by the Initial Developer are Copyright (C) 1998-1999
  22. # the Initial Developer. All Rights Reserved.
  23. #
  24. # Contributor(s):
  25. #
  26. # Alternatively, the contents of this file may be used under the terms of
  27. # either of the GNU General Public License Version 2 or later (the "GPL"),
  28. # or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  29. # in which case the provisions of the GPL or the LGPL are applicable instead
  30. # of those above. If you wish to allow use of your version of this file only
  31. # under the terms of either the GPL or the LGPL, and not to allow others to
  32. # use your version of this file under the terms of the MPL, indicate your
  33. # decision by deleting the provisions above and replace them with the notice
  34. # and other provisions required by the GPL or the LGPL. If you do not delete
  35. # the provisions above, a recipient may use your version of this file under
  36. # the terms of any one of the MPL, the GPL or the LGPL.
  37. #
  38. # ***** END LICENSE BLOCK *****
  39. ifdef JS_DIST
  40. DIST = $(JS_DIST)
  41. else
  42. DIST = $(DEPTH)/../../dist
  43. endif
  44. # Set os+release dependent make variables
  45. OS_ARCH := $(subst /,_,$(shell uname -s | sed /\ /s//_/))
  46. # Attempt to differentiate between SunOS 5.4 and x86 5.4
  47. OS_CPUARCH := $(shell uname -m)
  48. ifeq ($(OS_CPUARCH),i86pc)
  49. OS_RELEASE := $(shell uname -r)_$(OS_CPUARCH)
  50. else
  51. ifeq ($(OS_ARCH),AIX)
  52. OS_RELEASE := $(shell uname -v).$(shell uname -r)
  53. else
  54. OS_RELEASE := $(shell uname -r)
  55. endif
  56. endif
  57. ifeq ($(OS_ARCH),IRIX64)
  58. OS_ARCH := IRIX
  59. endif
  60. # Handle output from win32 unames other than Netscape's version
  61. ifeq (,$(filter-out Windows_95 Windows_98 CYGWIN_95-4.0 CYGWIN_98-4.10, $(OS_ARCH)))
  62. OS_ARCH := WIN95
  63. endif
  64. ifeq ($(OS_ARCH),WIN95)
  65. OS_ARCH := WINNT
  66. OS_RELEASE := 4.0
  67. endif
  68. ifeq ($(OS_ARCH), Windows_NT)
  69. OS_ARCH := WINNT
  70. OS_MINOR_RELEASE := $(shell uname -v)
  71. ifeq ($(OS_MINOR_RELEASE),00)
  72. OS_MINOR_RELEASE = 0
  73. endif
  74. OS_RELEASE := $(OS_RELEASE).$(OS_MINOR_RELEASE)
  75. endif
  76. ifeq (CYGWIN_NT,$(findstring CYGWIN_NT,$(OS_ARCH)))
  77. OS_RELEASE := $(patsubst CYGWIN_NT-%,%,$(OS_ARCH))
  78. OS_ARCH := WINNT
  79. endif
  80. ifeq ($(OS_ARCH), CYGWIN32_NT)
  81. OS_ARCH := WINNT
  82. endif
  83. ifeq (MINGW32_NT,$(findstring MINGW32_NT,$(OS_ARCH)))
  84. OS_RELEASE := $(patsubst MINGW32_NT-%,%,$(OS_ARCH))
  85. OS_ARCH := WINNT
  86. endif
  87. # Virtually all Linux versions are identical.
  88. # Any distinctions are handled in linux.h
  89. ifeq ($(OS_ARCH),Linux)
  90. OS_CONFIG := Linux_All
  91. else
  92. ifeq ($(OS_ARCH),dgux)
  93. OS_CONFIG := dgux
  94. else
  95. ifeq ($(OS_ARCH),Darwin)
  96. OS_CONFIG := Darwin
  97. else
  98. ifeq ($(OS_ARCH),Darwin64)
  99. OS_CONFIG := Darwin64
  100. else
  101. OS_CONFIG := $(OS_ARCH)$(OS_OBJTYPE)$(OS_RELEASE)
  102. endif
  103. endif
  104. endif
  105. endif
  106. ASFLAGS =
  107. DEFINES =
  108. ifeq ($(OS_ARCH), WINNT)
  109. INSTALL = nsinstall
  110. CP = cp
  111. else
  112. INSTALL = $(DIST)/bin/nsinstall
  113. CP = cp
  114. endif
  115. ifdef BUILD_OPT
  116. ifdef USE_MSVC
  117. OPTIMIZER = -O2 -GL
  118. INTERP_OPTIMIZER = -O2 -GL
  119. BUILTINS_OPTIMIZER = -O2 -GL
  120. LDFLAGS += -LTCG
  121. else
  122. OPTIMIZER = -Os -fstrict-aliasing -fno-exceptions -fno-rtti -Wstrict-aliasing=2
  123. BUILTINS_OPTIMIZER = -O9 -fstrict-aliasing -fno-exceptions -fno-rtti
  124. INTERP_OPTIMIZER = -O3 -fstrict-aliasing -fno-exceptions -fno-rtti
  125. endif
  126. DEFINES += -UDEBUG -DNDEBUG -UDEBUG_$(USER)
  127. OBJDIR_TAG = _OPT
  128. else
  129. ifdef USE_MSVC
  130. OPTIMIZER = -Zi
  131. INTERP_OPTIMIZER = -Zi
  132. BUILTINS_OPTIMIZER = $(INTERP_OPTIMIZER)
  133. else
  134. OPTIMIZER = -g3 -fstrict-aliasing -fno-exceptions -fno-rtti -Wstrict-aliasing=2
  135. INTERP_OPTIMIZER = -g3 -fstrict-aliasing -fno-exceptions -fno-rtti
  136. BUILTINS_OPTIMIZER = $(INTERP_OPTIMIZER)
  137. endif
  138. DEFINES += -DDEBUG -DDEBUG_$(USER)
  139. OBJDIR_TAG = _DBG
  140. endif
  141. SO_SUFFIX = so
  142. NS_USE_NATIVE = 1
  143. # Java stuff
  144. CLASSDIR = $(DEPTH)/liveconnect/classes
  145. JAVA_CLASSES = $(patsubst %.java,%.class,$(JAVA_SRCS))
  146. TARGETS += $(addprefix $(CLASSDIR)/$(OBJDIR)/$(JARPATH)/, $(JAVA_CLASSES))
  147. JAVAC = $(JDK)/bin/javac
  148. JAVAC_FLAGS = -classpath "$(CLASSPATH)" -d $(CLASSDIR)/$(OBJDIR)
  149. ifeq ($(OS_ARCH), WINNT)
  150. SEP = ;
  151. else
  152. SEP = :
  153. endif
  154. CLASSPATH = $(JDK)/lib/classes.zip$(SEP)$(CLASSDIR)/$(OBJDIR)
  155. include $(DEPTH)/ref-config/$(OS_CONFIG).mk
  156. ifndef OBJ_SUFFIX
  157. ifdef USE_MSVC
  158. OBJ_SUFFIX = obj
  159. else
  160. OBJ_SUFFIX = o
  161. endif
  162. endif
  163. ifndef HOST_BIN_SUFFIX
  164. ifeq ($(OS_ARCH),WINNT)
  165. HOST_BIN_SUFFIX = .exe
  166. else
  167. HOST_BIN_SUFFIX =
  168. endif
  169. endif
  170. # Name of the binary code directories
  171. ifdef OBJROOT
  172. # prepend $(DEPTH) to the root unless it is an absolute path
  173. OBJDIR = $(if $(filter /%,$(OBJROOT)),$(OBJROOT),$(DEPTH)/$(OBJROOT))
  174. else
  175. ifeq ($(DEPTH),.)
  176. OBJDIR = $(OS_CONFIG)$(OBJDIR_TAG).$(if $(BUILD_IDG),OBJD,OBJ)
  177. else
  178. OBJDIR = $(DEPTH)/$(OS_CONFIG)$(OBJDIR_TAG).$(if $(BUILD_IDG),OBJD,OBJ)
  179. endif
  180. endif
  181. VPATH = $(OBJDIR)
  182. LCJAR = js15lc30.jar
  183. # Library name
  184. LIBDIR := lib
  185. ifeq ($(CPU_ARCH), x86_64)
  186. LIBDIR := lib64
  187. endif