Debian Codegraph @

rhino/testsrc/tests/config.mk

raw symbols SCIP
1 # -*- Mode: makefile -*-
2 #
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
7 # This file was adapted from mozilla/js/src/config.mk
8
9 # Set os+release dependent make variables
10 OS_ARCH := $(subst /,_,$(shell uname -s | sed /\ /s//_/))
11
12 # Attempt to differentiate between SunOS 5.4 and x86 5.4
13 OS_CPUARCH := $(shell uname -m)
14 ifeq ($(OS_CPUARCH),i86pc)
15 OS_RELEASE := $(shell uname -r)_$(OS_CPUARCH)
16 else
17 ifeq ($(OS_ARCH),AIX)
18 OS_RELEASE := $(shell uname -v).$(shell uname -r)
19 else
20 OS_RELEASE := $(shell uname -r)
21 endif
22 endif
23 ifeq ($(OS_ARCH),IRIX64)
24 OS_ARCH := IRIX
25 endif
26
27 # Handle output from win32 unames other than Netscape's version
28 ifeq (,$(filter-out Windows_95 Windows_98 CYGWIN_95-4.0 CYGWIN_98-4.10, $(OS_ARCH)))
29 OS_ARCH := WIN95
30 endif
31 ifeq ($(OS_ARCH),WIN95)
32 OS_ARCH := WINNT
33 OS_RELEASE := 4.0
34 endif
35 ifeq ($(OS_ARCH), Windows_NT)
36 OS_ARCH := WINNT
37 OS_MINOR_RELEASE := $(shell uname -v)
38 ifeq ($(OS_MINOR_RELEASE),00)
39 OS_MINOR_RELEASE = 0
40 endif
41 OS_RELEASE := $(OS_RELEASE).$(OS_MINOR_RELEASE)
42 endif
43 ifeq (CYGWIN_NT,$(findstring CYGWIN_NT,$(OS_ARCH)))
44 OS_RELEASE := $(patsubst CYGWIN_NT-%,%,$(OS_ARCH))
45 OS_ARCH := WINNT
46 endif
47 ifeq ($(OS_ARCH), CYGWIN32_NT)
48 OS_ARCH := WINNT
49 endif
50
51 # Virtually all Linux versions are identical.
52 # Any distinctions are handled in linux.h
53 ifeq ($(OS_ARCH),Linux)
54 OS_CONFIG := Linux_All
55 else
56 ifeq ($(OS_ARCH),dgux)
57 OS_CONFIG := dgux
58 else
59 ifeq ($(OS_ARCH),Darwin)
60 OS_CONFIG := Darwin
61 else
62 OS_CONFIG := $(OS_ARCH)$(OS_OBJTYPE)$(OS_RELEASE)
63 endif
64 endif
65 endif
66
67 ifeq "$(TEST_OPTDEBUG)" "opt"
68 OBJDIR_TAG = _OPT
69 else
70 OBJDIR_TAG = _DBG
71 endif
72
73
74 # Name of the binary code directories
75 ifdef BUILD_IDG
76 JS_OBJDIR = $(OS_CONFIG)$(OBJDIR_TAG).OBJD
77 else
78 JS_OBJDIR = $(OS_CONFIG)$(OBJDIR_TAG).OBJ
79 endif
80