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 Linux (all architectures)
|
|
|
|
######################################################################
|
|
|
|
#
|
|
|
|
######################################################################
|
|
|
|
# Version-independent
|
|
|
|
######################################################################
|
|
|
|
|
|
|
|
ARCH := linux
|
|
|
|
ifeq (86,$(findstring 86,$(OS_TEST)))
|
|
|
|
CPU_ARCH := x86
|
|
|
|
else
|
1998-10-31 07:10:42 +03:00
|
|
|
ifeq (,$(filter-out armv4l sa110,$(OS_TEST)))
|
1998-09-14 22:09:06 +04:00
|
|
|
CPU_ARCH := arm
|
|
|
|
else
|
1998-03-28 05:44:41 +03:00
|
|
|
CPU_ARCH := $(OS_TEST)
|
|
|
|
endif
|
1998-09-14 22:09:06 +04:00
|
|
|
endif
|
1998-03-28 05:44:41 +03:00
|
|
|
GFX_ARCH := x
|
|
|
|
|
1998-09-30 15:58:59 +04:00
|
|
|
# Dont do the detect hackery for autoconf builds. It makes them painfully
|
|
|
|
# slow and its not needed anyway, since autoconf does it much better.
|
|
|
|
ifndef USE_AUTOCONF
|
|
|
|
|
1998-07-18 07:33:07 +04:00
|
|
|
# Include the automagically generated makefile. This generated makefile
|
|
|
|
# should contain lots of magic paths and flags.
|
|
|
|
-include $(MOZILLA_DETECT_GEN)
|
|
|
|
|
1998-09-30 15:58:59 +04:00
|
|
|
endif # USE_AUTOCONF
|
|
|
|
|
1998-09-18 06:16:44 +04:00
|
|
|
OS_INCLUDES = $(MOZILLA_XFE_MOTIF_INCLUDE_FLAGS) $(MOZILLA_XFE_X11_INCLUDE_FLAGS)
|
1998-03-28 05:44:41 +03:00
|
|
|
G++INCLUDES = -I/usr/include/g++
|
|
|
|
LOC_LIB_DIR = /usr/lib/X11
|
|
|
|
MOTIF =
|
|
|
|
MOTIFLIB =
|
1998-07-15 04:37:11 +04:00
|
|
|
OS_LIBS = -L/lib -ldl -lc
|
1998-03-28 05:44:41 +03:00
|
|
|
|
1998-09-18 06:16:44 +04:00
|
|
|
PLATFORM_FLAGS = -ansi -Wall $(DASH_PIPE) $(DSO_CFLAGS) -DLINUX -Dlinux
|
1998-03-28 05:44:41 +03:00
|
|
|
MOVEMAIL_FLAGS = -DHAVE_STRERROR
|
1998-09-04 06:53:32 +04:00
|
|
|
PORT_FLAGS = -D_POSIX_SOURCE -D_BSD_SOURCE -DNEED_ENDIAN_H -DNEED_GETOPT_H -DNEED_IOCTL_H -DUSE_NODL_TABS -DHAVE_SIGNED_CHAR -DNEED_SYS_TIME_H -DHAVE_SYS_BITYPES_H -DNEED_UINT_T -DHAVE_SNPRINTF
|
1998-03-28 05:44:41 +03:00
|
|
|
PDJAVA_FLAGS = -mx128m
|
|
|
|
|
1998-09-18 06:16:44 +04:00
|
|
|
#
|
|
|
|
# Some systems can't handle -pipe. They can override DASH_PIPE in
|
|
|
|
# the version-specific section below.
|
|
|
|
#
|
|
|
|
DASH_PIPE = -pipe
|
|
|
|
|
1998-08-20 00:42:14 +04:00
|
|
|
ifdef USE_AUTOCONF
|
|
|
|
OS_CFLAGS = #-include $(DEPTH)/include/config.h
|
|
|
|
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
|
|
|
|
1998-08-20 00:42:14 +04:00
|
|
|
LOCALE_MAP = $(topsrcdir)/cmd/xfe/intl/linux.lm
|
1998-03-28 05:44:41 +03:00
|
|
|
EN_LOCALE = C
|
|
|
|
DE_LOCALE = de_DE.ISO8859-1
|
|
|
|
FR_LOCALE = fr_FR.ISO8859-1
|
|
|
|
JP_LOCALE = ja
|
|
|
|
SJIS_LOCALE = ja_JP.SJIS
|
|
|
|
KR_LOCALE = ko_KR.EUC
|
|
|
|
CN_LOCALE = zh
|
|
|
|
TW_LOCALE = zh
|
|
|
|
I2_LOCALE = i2
|
|
|
|
|
|
|
|
######################################################################
|
|
|
|
# Version-specific stuff
|
|
|
|
######################################################################
|
|
|
|
|
|
|
|
ifeq ($(CPU_ARCH),alpha)
|
1998-08-13 01:18:20 +04:00
|
|
|
PLATFORM_FLAGS += -D__$(CPU_ARCH) -D_ALPHA_ -mieee
|
1998-04-14 04:26:45 +04:00
|
|
|
PORT_FLAGS += -DNEED_TIME_R -DMITSHM -D_XOPEN_SOURCE
|
|
|
|
endif
|
1998-09-18 06:16:44 +04:00
|
|
|
ifeq ($(CPU_ARCH),arm)
|
|
|
|
DASH_PIPE =
|
|
|
|
endif
|
1998-04-14 04:26:45 +04:00
|
|
|
ifeq ($(CPU_ARCH),m68k)
|
1998-04-26 07:07:41 +04:00
|
|
|
PLATFORM_FLAGS += -m68020-40 -D$(CPU_ARCH)
|
1998-03-28 05:44:41 +03:00
|
|
|
PORT_FLAGS += -DNEED_TIME_R -DMITSHM -D_XOPEN_SOURCE
|
|
|
|
endif
|
|
|
|
ifeq ($(CPU_ARCH),ppc)
|
1998-10-22 10:05:19 +04:00
|
|
|
PLATFORM_FLAGS += -D$(CPU_ARCH)
|
|
|
|
PORT_FLAGS += -DNEED_TIME_R -DMITSHM -D_XOPEN_SOURCE
|
1998-03-28 05:44:41 +03:00
|
|
|
endif
|
|
|
|
ifeq ($(CPU_ARCH),sparc)
|
1998-04-26 07:07:41 +04:00
|
|
|
PLATFORM_FLAGS += -D$(CPU_ARCH)
|
1998-03-28 05:44:41 +03:00
|
|
|
endif
|
|
|
|
ifeq ($(CPU_ARCH),x86)
|
1998-04-26 07:07:41 +04:00
|
|
|
PLATFORM_FLAGS += -mno-486 -Di386
|
1998-03-28 05:44:41 +03:00
|
|
|
PORT_FLAGS += -DNEED_TIME_R -DMITSHM -D_XOPEN_SOURCE
|
1998-07-09 10:17:07 +04:00
|
|
|
|
|
|
|
ifdef MOZ_FULLCIRCLE
|
1998-07-15 04:37:11 +04:00
|
|
|
FC_PLATFORM = LinuxIntel
|
|
|
|
FC_PLATFORM_DIR = Linux2_x86
|
1998-07-09 10:17:07 +04:00
|
|
|
endif
|
1998-07-09 09:11:39 +04:00
|
|
|
|
|
|
|
endif # x86
|
1998-03-28 05:44:41 +03:00
|
|
|
|
|
|
|
# These are CPU_ARCH independent
|
|
|
|
ifeq ($(OS_RELEASE),1.2)
|
|
|
|
PORT_FLAGS += -DNEED_SYS_WAIT_H
|
|
|
|
endif
|
1998-07-22 08:59:29 +04:00
|
|
|
|
|
|
|
# Linux 2.x
|
|
|
|
ifneq (,$(filter 2.0 2.1 2.2,$(OS_RELEASE)))
|
1998-03-28 05:44:41 +03:00
|
|
|
PORT_FLAGS += -DNO_INT64_T
|
|
|
|
BUILD_UNIX_PLUGINS = 1
|
|
|
|
MKSHLIB = $(CC) -shared -Wl,-soname -Wl,$(@:$(OBJDIR)/%.so=%.so)
|
1998-08-01 00:19:50 +04:00
|
|
|
DSO_BIND_REFERENCES = -Wl,-Bsymbolic
|
1998-03-28 05:44:41 +03:00
|
|
|
ifdef BUILD_OPT
|
|
|
|
OPTIMIZER = -O2
|
|
|
|
endif
|
|
|
|
endif
|
1998-07-22 08:59:29 +04:00
|
|
|
|
1998-03-28 05:44:41 +03:00
|
|
|
######################################################################
|
|
|
|
# Overrides for defaults in config.mk (or wherever)
|
|
|
|
######################################################################
|
|
|
|
|
|
|
|
EMACS = /bin/true
|
|
|
|
JAVA_PROG = $(JAVA_BIN)java
|
|
|
|
PERL = /usr/bin/perl
|
|
|
|
PROCESSOR_ARCHITECTURE = _$(CPU_ARCH)
|
|
|
|
RANLIB = /usr/bin/ranlib
|
|
|
|
UNZIP_PROG = /usr/bin/unzip
|
|
|
|
ZIP_PROG = /usr/bin/zip
|
|
|
|
|
|
|
|
######################################################################
|
|
|
|
# Other
|
|
|
|
######################################################################
|
|
|
|
|
|
|
|
ifeq ($(USE_PTHREADS),1)
|
1998-08-11 02:05:33 +04:00
|
|
|
PORT_FLAGS += -D_REENTRANT
|
|
|
|
OS_LIBS += -lpthread
|
1998-03-28 05:44:41 +03:00
|
|
|
else
|
1998-08-11 02:05:33 +04:00
|
|
|
PORT_FLAGS += -DSW_THREADS
|
1998-03-28 05:44:41 +03:00
|
|
|
endif
|
|
|
|
|
|
|
|
NEED_XMOS = 1
|
|
|
|
|
1998-07-15 04:37:11 +04:00
|
|
|
DSO_CFLAGS = -fPIC
|
1998-03-28 05:44:41 +03:00
|
|
|
DSO_LDOPTS = -shared
|
|
|
|
DSO_LDFLAGS =
|
|
|
|
|
|
|
|
ifeq ($(USE_JDK11),1)
|
|
|
|
JAVA_HOME = /usr/local/java
|
|
|
|
JAVAC_ZIP = $(JAVA_HOME)/lib/classes.zip
|
|
|
|
endif
|
1998-07-03 17:15:40 +04:00
|
|
|
|
1998-09-18 06:16:44 +04:00
|
|
|
ASFLAGS += -x assembler-with-cpp
|