gecko-dev/config/SINIX.mk

123 строки
3.3 KiB
Makefile
Исходник Обычный вид История

1998-03-28 05:44:41 +03:00
#
# 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)
1998-03-28 05:44:41 +03:00
######################################################################
#
######################################################################
# Version-independent
######################################################################
ARCH := sinix
ifeq (86,$(findstring 86,$(OS_TEST)))
CPU_ARCH := x86
else
1998-03-28 05:44:41 +03:00
CPU_ARCH := mips
endif
1998-03-28 05:44:41 +03:00
GFX_ARCH := x
OS_INCLUDES =
1998-03-28 05:44:41 +03:00
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 =
1998-08-20 00:42:14 +04:00
ifdef USE_AUTOCONF
OS_CFLAGS =
else
1998-03-28 05:44:41 +03:00
OS_CFLAGS = $(PLATFORM_FLAGS) $(PORT_FLAGS) $(MOVEMAIL_FLAGS)
1998-08-20 00:42:14 +04:00
endif
1998-03-28 05:44:41 +03:00
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
1998-03-28 05:44:41 +03:00
######################################################################
# 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)
1998-03-28 05:44:41 +03:00
######################################################################
# Other
######################################################################
ifdef NS_USE_NATIVE
CC = cc
CCC = CC
ifneq ($(CPU_ARCH),x86)
1998-03-28 05:44:41 +03:00
PLATFORM_FLAGS += -fullwarn -xansi
endif
1998-03-28 05:44:41 +03:00
ifdef BUILD_OPT
OPTIMIZER = -Olimit 4000
endif
else
PLATFORM_FLAGS += -Wall -Wno-format
ifneq ($(CPU_ARCH),x86)
PLATFORM_FLAGS += -pipe
endif
1998-03-28 05:44:41 +03:00
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)