PageRenderTime 103ms CodeModel.GetById 60ms app.highlight 13ms RepoModel.GetById 27ms 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
  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
 40ifdef JS_DIST
 41DIST = $(JS_DIST)
 42else
 43DIST = $(DEPTH)/../../dist
 44endif
 45
 46# Set os+release dependent make variables
 47OS_ARCH         := $(subst /,_,$(shell uname -s | sed /\ /s//_/))
 48
 49# Attempt to differentiate between SunOS 5.4 and x86 5.4
 50OS_CPUARCH      := $(shell uname -m)
 51ifeq ($(OS_CPUARCH),i86pc)
 52OS_RELEASE      := $(shell uname -r)_$(OS_CPUARCH)
 53else
 54ifeq ($(OS_ARCH),AIX)
 55OS_RELEASE      := $(shell uname -v).$(shell uname -r)
 56else
 57OS_RELEASE      := $(shell uname -r)
 58endif
 59endif
 60ifeq ($(OS_ARCH),IRIX64)
 61OS_ARCH         := IRIX
 62endif
 63
 64# Handle output from win32 unames other than Netscape's version
 65ifeq (,$(filter-out Windows_95 Windows_98 CYGWIN_95-4.0 CYGWIN_98-4.10, $(OS_ARCH)))
 66	OS_ARCH   := WIN95
 67endif
 68ifeq ($(OS_ARCH),WIN95)
 69	OS_ARCH	   := WINNT
 70	OS_RELEASE := 4.0
 71endif
 72ifeq ($(OS_ARCH), Windows_NT)
 73	OS_ARCH    := WINNT
 74	OS_MINOR_RELEASE := $(shell uname -v)
 75	ifeq ($(OS_MINOR_RELEASE),00)
 76		OS_MINOR_RELEASE = 0
 77	endif
 78	OS_RELEASE := $(OS_RELEASE).$(OS_MINOR_RELEASE)
 79endif
 80ifeq (CYGWIN_NT,$(findstring CYGWIN_NT,$(OS_ARCH)))
 81	OS_RELEASE := $(patsubst CYGWIN_NT-%,%,$(OS_ARCH))
 82	OS_ARCH    := WINNT
 83endif
 84ifeq ($(OS_ARCH), CYGWIN32_NT)
 85	OS_ARCH    := WINNT
 86endif
 87ifeq (MINGW32_NT,$(findstring MINGW32_NT,$(OS_ARCH)))
 88	OS_RELEASE := $(patsubst MINGW32_NT-%,%,$(OS_ARCH))
 89	OS_ARCH    := WINNT
 90endif
 91
 92# Virtually all Linux versions are identical.
 93# Any distinctions are handled in linux.h
 94ifeq ($(OS_ARCH),Linux)
 95OS_CONFIG      := Linux_All
 96else
 97ifeq ($(OS_ARCH),dgux)
 98OS_CONFIG      := dgux
 99else
100ifeq ($(OS_ARCH),Darwin)
101OS_CONFIG      := Darwin
102else
103ifeq ($(OS_ARCH),Darwin64)
104OS_CONFIG       := Darwin64
105else
106OS_CONFIG       := $(OS_ARCH)$(OS_OBJTYPE)$(OS_RELEASE)
107endif
108endif
109endif
110endif
111
112ASFLAGS         =
113DEFINES         =
114
115ifeq ($(OS_ARCH), WINNT)
116INSTALL = nsinstall
117CP = cp
118else
119INSTALL	= $(DIST)/bin/nsinstall
120CP = cp
121endif
122
123ifdef BUILD_OPT
124ifdef USE_MSVC
125OPTIMIZER  = -O2 -GL
126INTERP_OPTIMIZER = -O2 -GL
127BUILTINS_OPTIMIZER = -O2 -GL
128LDFLAGS    += -LTCG
129else
130OPTIMIZER           = -Os -fstrict-aliasing -fno-exceptions -fno-rtti -Wstrict-aliasing=2
131BUILTINS_OPTIMIZER  = -O9 -fstrict-aliasing -fno-exceptions -fno-rtti
132INTERP_OPTIMIZER    = -O3 -fstrict-aliasing -fno-exceptions -fno-rtti
133endif
134DEFINES    += -UDEBUG -DNDEBUG -UDEBUG_$(USER)
135OBJDIR_TAG = _OPT
136else
137ifdef USE_MSVC
138OPTIMIZER  = -Zi
139INTERP_OPTIMIZER = -Zi
140BUILTINS_OPTIMIZER = $(INTERP_OPTIMIZER)
141else
142OPTIMIZER          = -g3 -fstrict-aliasing -fno-exceptions -fno-rtti -Wstrict-aliasing=2
143INTERP_OPTIMIZER   = -g3 -fstrict-aliasing -fno-exceptions -fno-rtti
144BUILTINS_OPTIMIZER = $(INTERP_OPTIMIZER)
145endif
146DEFINES    += -DDEBUG -DDEBUG_$(USER)
147OBJDIR_TAG = _DBG
148endif
149
150SO_SUFFIX = so
151
152NS_USE_NATIVE = 1
153
154# Java stuff
155CLASSDIR     = $(DEPTH)/liveconnect/classes
156JAVA_CLASSES = $(patsubst %.java,%.class,$(JAVA_SRCS))
157TARGETS     += $(addprefix $(CLASSDIR)/$(OBJDIR)/$(JARPATH)/, $(JAVA_CLASSES))
158JAVAC        = $(JDK)/bin/javac
159JAVAC_FLAGS  = -classpath "$(CLASSPATH)" -d $(CLASSDIR)/$(OBJDIR)
160ifeq ($(OS_ARCH), WINNT)
161  SEP        = ;
162else
163  SEP        = :
164endif
165CLASSPATH    = $(JDK)/lib/classes.zip$(SEP)$(CLASSDIR)/$(OBJDIR)
166
167include $(DEPTH)/ref-config/$(OS_CONFIG).mk
168
169ifndef OBJ_SUFFIX
170ifdef USE_MSVC
171OBJ_SUFFIX = obj
172else
173OBJ_SUFFIX = o
174endif
175endif
176
177ifndef HOST_BIN_SUFFIX
178ifeq ($(OS_ARCH),WINNT)
179HOST_BIN_SUFFIX = .exe
180else
181HOST_BIN_SUFFIX =
182endif
183endif
184
185# Name of the binary code directories
186ifdef OBJROOT
187# prepend $(DEPTH) to the root unless it is an absolute path
188OBJDIR = $(if $(filter /%,$(OBJROOT)),$(OBJROOT),$(DEPTH)/$(OBJROOT))
189else
190ifeq ($(DEPTH),.)
191OBJDIR = $(OS_CONFIG)$(OBJDIR_TAG).$(if $(BUILD_IDG),OBJD,OBJ)
192else
193OBJDIR = $(DEPTH)/$(OS_CONFIG)$(OBJDIR_TAG).$(if $(BUILD_IDG),OBJD,OBJ)
194endif
195endif
196
197VPATH = $(OBJDIR)
198
199LCJAR = js15lc30.jar
200
201# Library name
202LIBDIR := lib
203ifeq ($(CPU_ARCH), x86_64)
204LIBDIR := lib64
205endif
206