PageRenderTime 39ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 1ms

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

http://github.com/onedayitwillmake/RealtimeMultiplayerNodeJs
Makefile | 181 lines | 130 code | 13 blank | 38 comment | 1 complexity | dea8012b400e323b7f26fac1d3a8eb84 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. ifndef OBJDIR
  40. ifdef OBJDIR_NAME
  41. OBJDIR = $(OBJDIR_NAME)
  42. endif
  43. endif
  44. NSPR_VERSION = v4.0
  45. NSPR_LIBSUFFIX = 4
  46. NSPR_LOCAL = $(MOZ_DEPTH)/dist/$(OBJDIR)/nspr
  47. NSPR_DIST = $(MOZ_DEPTH)/dist/$(OBJDIR)
  48. NSPR_OBJDIR = $(OBJDIR)
  49. ifeq ($(OS_ARCH), SunOS)
  50. NSPR_OBJDIR := $(subst _sparc,,$(NSPR_OBJDIR))
  51. endif
  52. ifeq ($(OS_ARCH), Linux)
  53. LINUX_REL := $(shell uname -r)
  54. ifneq (,$(findstring 2.0,$(LINUX_REL)))
  55. NSPR_OBJDIR := $(subst _All,2.0_x86_glibc_PTH,$(NSPR_OBJDIR))
  56. else
  57. NSPR_OBJDIR := $(subst _All,2.2_x86_glibc_PTH,$(NSPR_OBJDIR))
  58. endif
  59. endif
  60. ifeq ($(OS_ARCH), AIX)
  61. NSPR_OBJDIR := $(subst 4.1,4.2,$(NSPR_OBJDIR))
  62. endif
  63. ifeq ($(OS_CONFIG), IRIX6.2)
  64. NSPR_OBJDIR := $(subst 6.2,6.2_n32_PTH,$(NSPR_OBJDIR))
  65. endif
  66. ifeq ($(OS_CONFIG), IRIX6.5)
  67. NSPR_OBJDIR := $(subst 6.5,6.5_n32_PTH,$(NSPR_OBJDIR))
  68. endif
  69. ifeq ($(OS_ARCH), WINNT)
  70. ifeq ($(OBJDIR), WIN32_D.OBJ)
  71. NSPR_OBJDIR = WINNT4.0_DBG.OBJ
  72. endif
  73. ifeq ($(OBJDIR), WIN32_O.OBJ)
  74. NSPR_OBJDIR = WINNT4.0_OPT.OBJ
  75. endif
  76. endif
  77. NSPR_SHARED = /share/builds/components/nspr20/$(NSPR_VERSION)/$(NSPR_OBJDIR)
  78. ifeq ($(OS_ARCH), WINNT)
  79. NSPR_SHARED = nspr20/$(NSPR_VERSION)/$(NSPR_OBJDIR)
  80. endif
  81. NSPR_VERSIONFILE = $(NSPR_LOCAL)/Version
  82. NSPR_CURVERSION := $(shell cat $(NSPR_VERSIONFILE) 2>/dev/null)
  83. get_nspr:
  84. @echo "Grabbing NSPR component..."
  85. ifeq ($(NSPR_VERSION), $(NSPR_CURVERSION))
  86. @echo "No need, NSPR is up to date in this tree (ver=$(NSPR_VERSION))."
  87. else
  88. mkdir -p $(NSPR_LOCAL)
  89. mkdir -p $(NSPR_DIST)
  90. ifneq ($(OS_ARCH), WINNT)
  91. cp $(NSPR_SHARED)/*.jar $(NSPR_LOCAL)
  92. else
  93. sh $(MOZ_DEPTH)/../reltools/compftp.sh $(NSPR_SHARED) $(NSPR_LOCAL) *.jar
  94. endif
  95. unzip -o $(NSPR_LOCAL)/mdbinary.jar -d $(NSPR_DIST)
  96. mkdir -p $(NSPR_DIST)/include
  97. unzip -o $(NSPR_LOCAL)/mdheader.jar -d $(NSPR_DIST)/include
  98. rm -rf $(NSPR_DIST)/META-INF
  99. rm -rf $(NSPR_DIST)/include/META-INF
  100. echo $(NSPR_VERSION) > $(NSPR_VERSIONFILE)
  101. endif
  102. SHIP_DIST = $(MOZ_DEPTH)/dist/$(OBJDIR)
  103. SHIP_DIR = $(SHIP_DIST)/SHIP
  104. SHIP_LIBS = libjs.$(SO_SUFFIX) libjs.a
  105. ifdef JS_LIVECONNECT
  106. SHIP_LIBS += libjsj.$(SO_SUFFIX) libjsj.a
  107. endif
  108. ifeq ($(OS_ARCH), WINNT)
  109. SHIP_LIBS = js32.dll js32.lib
  110. ifdef JS_LIVECONNECT
  111. SHIP_LIBS += jsj.dll jsj.lib
  112. endif
  113. endif
  114. SHIP_LIBS += $(LCJAR)
  115. SHIP_LIBS := $(addprefix $(SHIP_DIST)/lib/, $(SHIP_LIBS))
  116. SHIP_INCS = js*.h prmjtime.h resource.h *.msg *.tbl
  117. ifdef JS_LIVECONNECT
  118. SHIP_INCS += netscape*.h nsC*.h nsI*.h
  119. endif
  120. SHIP_INCS := $(addprefix $(SHIP_DIST)/include/, $(SHIP_INCS))
  121. SHIP_BINS = js
  122. ifdef JS_LIVECONNECT
  123. SHIP_BINS += lcshell
  124. endif
  125. ifeq ($(OS_ARCH), WINNT)
  126. SHIP_BINS := $(addsuffix .exe, $(SHIP_BINS))
  127. endif
  128. SHIP_BINS := $(addprefix $(SHIP_DIST)/bin/, $(SHIP_BINS))
  129. ifdef BUILD_OPT
  130. JSREFJAR = jsref_opt.jar
  131. else
  132. ifdef BUILD_IDG
  133. JSREFJAR = jsref_idg.jar
  134. else
  135. JSREFJAR = jsref_dbg.jar
  136. endif
  137. endif
  138. ship:
  139. mkdir -p $(SHIP_DIR)/$(LIBDIR)
  140. mkdir -p $(SHIP_DIR)/include
  141. mkdir -p $(SHIP_DIR)/bin
  142. cp $(SHIP_LIBS) $(SHIP_DIR)/$(LIBDIR)
  143. cp $(SHIP_INCS) $(SHIP_DIR)/include
  144. cp $(SHIP_BINS) $(SHIP_DIR)/bin
  145. cd $(SHIP_DIR); \
  146. zip -r $(JSREFJAR) bin lib include
  147. ifdef BUILD_SHIP
  148. cp $(SHIP_DIR)/$(JSREFJAR) $(BUILD_SHIP)
  149. endif
  150. CWD = $(shell pwd)
  151. shipSource: $(SHIP_DIR)/jsref_src.lst .FORCE
  152. mkdir -p $(SHIP_DIR)
  153. cd $(MOZ_DEPTH)/.. ; \
  154. zip $(CWD)/$(SHIP_DIR)/jsref_src.jar -@ < $(CWD)/$(SHIP_DIR)/jsref_src.lst
  155. ifdef BUILD_SHIP
  156. cp $(SHIP_DIR)/jsref_src.jar $(BUILD_SHIP)
  157. endif
  158. JSREFSRCDIRS := $(shell cat $(DEPTH)/SpiderMonkey.rsp)
  159. $(SHIP_DIR)/jsref_src.lst: .FORCE
  160. mkdir -p $(SHIP_DIR)
  161. rm -f $@
  162. touch $@
  163. for d in $(JSREFSRCDIRS); do \
  164. cd $(MOZ_DEPTH)/..; \
  165. ls -1 -d $$d | grep -v CVS | grep -v \.OBJ >> $(CWD)/$@; \
  166. cd $(CWD); \
  167. done
  168. .FORCE: