1998-12-04 00:10:47 +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
|
|
|
|
#
|
|
|
|
|
1998-12-10 11:03:50 +03:00
|
|
|
include $(DEPTH)/config/UNIX.mk
|
1998-12-04 00:10:47 +03:00
|
|
|
|
1999-02-09 03:01:02 +03:00
|
|
|
ifeq (86,$(findstring 86,$(OS_TEST)))
|
|
|
|
CPU_ARCH := x86
|
|
|
|
else
|
|
|
|
ifeq (,$(filter-out armv4l sa110,$(OS_TEST)))
|
|
|
|
CPU_ARCH := arm
|
|
|
|
else
|
|
|
|
CPU_ARCH := $(OS_TEST)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
CPU_ARCH_TAG = _$(CPU_ARCH)
|
|
|
|
|
1998-12-10 11:03:50 +03:00
|
|
|
DEFAULT_COMPILER = gcc
|
1998-12-04 00:10:47 +03:00
|
|
|
CC = gcc
|
|
|
|
CXX = g++
|
|
|
|
AS = gcc -c
|
|
|
|
RANLIB = ranlib
|
1998-12-12 07:09:28 +03:00
|
|
|
MKSHLIB = $(CC) $(DSO_LDOPTS) -Wl,-soname,$(@:$(OBJDIR)/%.so=%.so)
|
1998-12-04 00:10:47 +03:00
|
|
|
MKMODULE = ld -Ur -o $@
|
|
|
|
|
|
|
|
WARNING_CFLAG = -Wall
|
|
|
|
|
1998-12-10 11:03:50 +03:00
|
|
|
# used by mkdepend
|
|
|
|
X11INCLUDES = -I/usr/X11R6/include
|
1999-02-09 09:47:12 +03:00
|
|
|
SYS_INCLUDES = -I$(subst libgcc.a,include, \
|
1999-02-09 03:01:02 +03:00
|
|
|
$(shell $(CC) -print-libgcc-file-name))
|
1999-02-09 09:47:12 +03:00
|
|
|
SYS_INCLUDES += -I$(subst libgcc.a,include, \
|
|
|
|
$(shell $(CCC) -print-libgcc-file-name))
|
1998-12-04 00:10:47 +03:00
|
|
|
ifeq ($(CPU_ARCH),x86)
|
|
|
|
DEPENDFLAGS += -D__i386__
|
|
|
|
endif
|
|
|
|
|
|
|
|
OS_CFLAGS = $(DSO_CFLAGS) -DLINUX -Dlinux
|
|
|
|
OS_CXXFLAGS = $(OS_CFLAGS)
|
|
|
|
OS_ASFLAGS = -DLINUX -Dlinux
|
|
|
|
OS_LDFLAGS =
|
|
|
|
OS_LIBS = -lm
|
|
|
|
|
|
|
|
DSO_CFLAGS = -fPIC
|
|
|
|
DSO_LDFLAGS = -Wl,export-dynamic
|
|
|
|
DSO_LDOPTS = -shared
|
|
|
|
|
|
|
|
PERL = perl
|
1998-12-12 07:09:28 +03:00
|
|
|
|
|
|
|
NSPR_THREAD_LIBS = -lpthread
|