mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 10:33:33 +00:00
4d4b1508d2
the object directory name for mips-based SINIX versions to change, requiring a complete rebuild. Sorry, but there was no acceptable alternative....
119 lines
3.3 KiB
Makefile
119 lines
3.3 KiB
Makefile
#
|
|
# The contents of this file are subject to the Netscape Public License
|
|
# Version 1.0 (the "NPL"); you may not use this file except in
|
|
# compliance with the NPL. You may obtain a copy of the NPL at
|
|
# http://www.mozilla.org/NPL/
|
|
#
|
|
# Software distributed under the NPL is distributed on an "AS IS" basis,
|
|
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
|
# for the specific language governing rights and limitations under the
|
|
# NPL.
|
|
#
|
|
# The Initial Developer of this code under the NPL is Netscape
|
|
# Communications Corporation. Portions created by Netscape are
|
|
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
|
# Reserved.
|
|
#
|
|
|
|
######################################################################
|
|
# Config stuff for SNI SINIX (aka ReliantUNIX)
|
|
######################################################################
|
|
#
|
|
######################################################################
|
|
# Version-independent
|
|
######################################################################
|
|
|
|
ARCH := sinix
|
|
ifeq (86,$(findstring 86,$(OS_TEST)))
|
|
CPU_ARCH := x86
|
|
else
|
|
CPU_ARCH := mips
|
|
endif
|
|
GFX_ARCH := x
|
|
|
|
OS_INCLUDES =
|
|
G++INCLUDES =
|
|
LOC_LIB_DIR = /usr/lib/locale
|
|
MOTIF =
|
|
MOTIFLIB = -lXm
|
|
OS_LIBS = -lsocket -lnsl -lgen -lm -ldl -lresolv -lc -L/usr/ucblib -lucb
|
|
|
|
PLATFORM_FLAGS = -DSNI -Dsinix
|
|
MOVEMAIL_FLAGS = -DUSG
|
|
PORT_FLAGS = -DSVR4 -DHAVE_FILIO_H -DNEED_S_ISSOCK -DNEED_TIMEVAL -DNEED_SELECT_H -DHAVE_LCHOWN -DNEED_S_ISLNK -DNEED_FCHMOD_PROTO -DNO_CDEFS_H -DSYS_BYTEORDER_H -DUSE_NODL_TABS -DMITSHM -DNO_MULTICAST -DHAVE_NETINET_IN_H -DHAVE_INT32_T
|
|
PDJAVA_FLAGS =
|
|
|
|
OS_CFLAGS = $(PLATFORM_FLAGS) $(PORT_FLAGS) $(MOVEMAIL_FLAGS)
|
|
|
|
LOCALE_MAP = $(DEPTH)/cmd/xfe/intl/sinix.lm
|
|
EN_LOCALE = en_US.88591
|
|
DE_LOCALE = de_DE.88591
|
|
FR_LOCALE = fr_FR.88591
|
|
JP_LOCALE = ja_JP.EUC
|
|
SJIS_LOCALE = ja_JP.SJIS
|
|
KR_LOCALE = ko_KR.euc
|
|
CN_LOCALE = zh_CN.ugb
|
|
TW_LOCALE = zh_TW.ucns
|
|
I2_LOCALE = i2
|
|
IT_LOCALE = it_IT.88591
|
|
SV_LOCALE = sv_SV.88591
|
|
ES_LOCALE = es_ES.88591
|
|
NL_LOCALE = nl_NL.88591
|
|
PT_LOCALE = pt_PT.88591
|
|
|
|
######################################################################
|
|
# Version-specific stuff
|
|
######################################################################
|
|
|
|
ifeq ($(CPU_ARCH),x86)
|
|
PLATFORM_FLAGS += -Di386
|
|
endif
|
|
|
|
######################################################################
|
|
# Overrides for defaults in config.mk (or wherever)
|
|
######################################################################
|
|
|
|
BSDECHO = /usr/ucb/echo
|
|
EMACS = /bin/true
|
|
WHOAMI = /usr/ucb/whoami
|
|
PERL = $(LOCAL_BIN)perl
|
|
PROCESSOR_ARCHITECTURE = _$(CPU_ARCH)
|
|
|
|
######################################################################
|
|
# Other
|
|
######################################################################
|
|
|
|
ifdef NS_USE_NATIVE
|
|
CC = cc
|
|
CCC = CC
|
|
ifneq ($(CPU_ARCH),x86)
|
|
PLATFORM_FLAGS += -fullwarn -xansi
|
|
endif
|
|
ifdef BUILD_OPT
|
|
OPTIMIZER = -Olimit 4000
|
|
endif
|
|
else
|
|
PLATFORM_FLAGS += -Wall -Wno-format
|
|
ifneq ($(CPU_ARCH),x86)
|
|
PLATFORM_FLAGS += -pipe
|
|
endif
|
|
ASFLAGS += -x assembler-with-cpp
|
|
ifdef BUILD_OPT
|
|
OPTIMIZER = -O
|
|
else
|
|
OPTIMIZER = -gdwarf
|
|
JAVA_OPTIMIZER = -gdwarf
|
|
endif
|
|
endif
|
|
|
|
ifneq ($(USE_KERNEL_THREADS),1)
|
|
PORT_FLAGS += -DSW_THREADS
|
|
endif
|
|
|
|
BUILD_UNIX_PLUGINS = 1
|
|
|
|
MKSHLIB = $(LD) $(DSO_LDOPTS)
|
|
|
|
DSO_LDOPTS = -G
|
|
DSO_LDFLAGS = $(MOTIFLIB) -lXt -lX11 $(OS_LIBS)
|