nobrainer changes while thinking about mingw support

Bug #134113 r=dmose
This commit is contained in:
seawood%netscape.com 2003-01-03 08:58:59 +00:00
Родитель dcd75e02fd
Коммит 583ec4d823
24 изменённых файлов: 56 добавлений и 199 удалений

Просмотреть файл

@ -72,8 +72,7 @@ CPPSRCS = \
EXTRA_DSO_LDOPTS += \ EXTRA_DSO_LDOPTS += \
$(LIBS_DIR) \ $(LIBS_DIR) \
$(MOZ_COMPONENT_LIBS) \ $(MOZ_COMPONENT_LIBS) \
-lmozicalss \ $(call EXPAND_MOZLIBNAME,mozicalss mozical) \
-lmozical \
$(NULL) $(NULL)
DEFINES += -DICAL_DEBUG DEFINES += -DICAL_DEBUG

Просмотреть файл

@ -111,12 +111,7 @@ libs::
$(RM) -rf $(DIST)/sdk/nspr/bin $(DIST)/sdk/nspr/share $(RM) -rf $(DIST)/sdk/nspr/bin $(DIST)/sdk/nspr/share
mv $(DIST)/sdk/nspr/lib $(DIST)/sdk/nspr/bin mv $(DIST)/sdk/nspr/lib $(DIST)/sdk/nspr/bin
ifndef DISABLE_DIST_GRE ifndef DISABLE_DIST_GRE
ifeq ($(OS_ARCH),OS2) $(INSTALL) $(DIST)/sdk/nspr/bin/*$(DLL_SUFFIX) $(GRE_DIST)
$(NSINSTALL) -D $(GRE_DIST)
cp $(DIST)/sdk/nspr/bin/$(LIB_PREFIX)*$(DLL_SUFFIX) $(GRE_DIST)
else
$(INSTALL) $(DIST)/sdk/nspr/bin/$(LIB_PREFIX)*$(DLL_SUFFIX) $(GRE_DIST)
endif
endif endif
endif endif

Просмотреть файл

@ -81,24 +81,16 @@ else
ELOG := ELOG :=
endif endif
#
# Library rules
#
# If BUILD_SHARED_LIBS or FORCE_SHARED_LIB is set and
# FORCE_STATIC_LIB is not set,
# the shared library will be built.
# If BUILD_STATIC_LIBS or FORCE_STATIC_LIB is set,
# the static library will be built.
#
ifeq ($(MOZ_OS2_TOOLS),VACPP) ifeq ($(MOZ_OS2_TOOLS),VACPP)
_EXTRA_DSO_RELATIVE_PATHS=1 _LIBNAME_RELATIVE_PATHS=1
else else
ifeq (_WINNT,$(GNU_CC)_$(OS_ARCH)) ifeq ($(OS_ARCH),WINNT)
ifndef SRCS_IN_OBJDIR ifndef SRCS_IN_OBJDIR
_NO_AUTO_VARS=1 _NO_AUTO_VARS=1
endif endif
_EXTRA_DSO_RELATIVE_PATHS=1 ifndef GNU_CC
_LIBNAME_RELATIVE_PATHS=1
endif
endif endif
endif endif
@ -112,15 +104,28 @@ else
_VPATH_SRCS = $< _VPATH_SRCS = $<
endif endif
ifdef _EXTRA_DSO_RELATIVE_PATHS ifdef _LIBNAME_RELATIVE_PATHS
EXTRA_DSO_LIBS := $(addsuffix .$(LIB_SUFFIX),$(addprefix $(DIST)/lib/$(LIB_PREFIX),$(EXTRA_DSO_LIBS))) EXPAND_LIBNAME = $(addsuffix .$(LIB_SUFFIX),$(1))
EXTRA_DSO_LIBS := $(filter-out %/bin %/lib,$(EXTRA_DSO_LIBS)) EXPAND_MOZLIBNAME = $(addsuffix .$(LIB_SUFFIX),$(addprefix $(DIST)/lib/$(LIB_PREFIX),$(1)))
EXTRA_DSO_LDOPTS := $(patsubst -l%,$(DIST)/lib/%.$(LIB_SUFFIX),$(EXTRA_DSO_LDOPTS))
LIBS := $(patsubst -l%,$(DIST)/lib/$(LIB_PREFIX)%.$(LIB_SUFFIX),$(LIBS))
else else
EXTRA_DSO_LIBS := $(addprefix -l,$(EXTRA_DSO_LIBS)) EXPAND_LIBNAME = $(addprefix -l,$(1))
EXPAND_MOZLIBNAME = $(addprefix -l,$(1))
endif endif
ifdef EXTRA_DSO_LIBS
EXTRA_DSO_LIBS := $(call EXPAND_MOZLIBNAME,$(EXTRA_DSO_LIBS))
endif
#
# Library rules
#
# If BUILD_SHARED_LIBS or FORCE_SHARED_LIB is set and
# FORCE_STATIC_LIB is not set,
# the shared library will be built.
# If BUILD_STATIC_LIBS or FORCE_STATIC_LIB is set,
# the static library will be built.
#
ifndef LIBRARY ifndef LIBRARY
ifdef LIBRARY_NAME ifdef LIBRARY_NAME
ifneq (,$(filter OS2 WINNT,$(OS_ARCH))) ifneq (,$(filter OS2 WINNT,$(OS_ARCH)))
@ -160,7 +165,7 @@ DEF_FILE := $(SHARED_LIBRARY:.dll=.def)
endif endif
ifneq (,$(filter OS2 WINNT,$(OS_ARCH))) ifneq (,$(filter OS2 WINNT,$(OS_ARCH)))
IMPORT_LIBRARY := $(SHARED_LIBRARY:.dll=.lib) IMPORT_LIBRARY := $(SHARED_LIBRARY:.dll=.$(LIB_SUFFIX))
endif endif
endif # MKSHLIB endif # MKSHLIB

Просмотреть файл

@ -1,148 +0,0 @@
#
# The contents of this file are subject to the Netscape Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/NPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
DEPTH = ../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
BUILD_DATE = gbdate.h
MODULE = content
LIBRARY_NAME = gkcontent
EXPORT_LIBRARY = 1
ifneq ($(OS_ARCH),WINNT)
SHORT_LIBNAME = gkcontnt
endif
IS_COMPONENT = 1
MODULE_NAME = nsContentModule
GRE_MODULE = 1
EXTRA_DSO_LIBS = gkgfx
ifdef MOZ_PERF_METRICS
EXTRA_DSO_LIBS += mozutil_s
endif
REQUIRES = xpcom \
string \
gfx \
layout \
widget \
necko \
necko2 \
rdf \
docshell \
dom \
htmlparser \
uriloader \
webshell \
locale \
unicharutil \
lwbrk \
js \
pref \
xul \
xuldoc \
xultmpl \
webbrwsr \
caps \
xpconnect \
imglib2 \
$(NULL)
CPPSRCS = \
nsContentDLF.cpp \
nsContentModule.cpp \
nsContentHTTPStartup.cpp \
$(NULL)
EXPORTS = nsContentCID.h
SHARED_LIBRARY_LIBS = \
$(DIST)/lib/$(LIB_PREFIX)gkconevents_s.$(LIB_SUFFIX) \
$(DIST)/lib/$(LIB_PREFIX)gkconhtmlcon_s.$(LIB_SUFFIX) \
$(DIST)/lib/$(LIB_PREFIX)gkconhtmldoc_s.$(LIB_SUFFIX) \
$(DIST)/lib/$(LIB_PREFIX)gkconhtmlstyle_s.$(LIB_SUFFIX) \
$(DIST)/lib/$(LIB_PREFIX)gkconxmlcon_s.$(LIB_SUFFIX) \
$(DIST)/lib/$(LIB_PREFIX)gkconxmldoc_s.$(LIB_SUFFIX) \
$(DIST)/lib/$(LIB_PREFIX)gkconxsldoc_s.$(LIB_SUFFIX) \
$(DIST)/lib/$(LIB_PREFIX)gkconxulcon_s.$(LIB_SUFFIX) \
$(DIST)/lib/$(LIB_PREFIX)gkconxuldoc_s.$(LIB_SUFFIX) \
$(DIST)/lib/$(LIB_PREFIX)gkconxultmpl_s.$(LIB_SUFFIX) \
$(DIST)/lib/$(LIB_PREFIX)gkconxbl_s.$(LIB_SUFFIX) \
$(DIST)/lib/$(LIB_PREFIX)gkconbase_s.$(LIB_SUFFIX) \
$(DIST)/lib/$(LIB_PREFIX)gkconshared_s.$(LIB_SUFFIX) \
$(NULL)
ifdef MOZ_SVG
SHARED_LIBRARY_LIBS += \
$(DIST)/lib/$(LIB_PREFIX)gkconsvgdoc_s.$(LIB_SUFFIX) \
$(DIST)/lib/$(LIB_PREFIX)gkcontentsvg_s.$(LIB_SUFFIX) \
$(NULL)
endif
EXTRA_DSO_LDOPTS = \
$(LIBS_DIR) \
$(EXTRA_DSO_LIBS) \
$(MOZ_COMPONENT_LIBS) \
$(MOZ_UNICHARUTIL_LIBS) \
$(MOZ_JS_LIBS) \
$(NULL)
ifeq ($(MOZ_WIDGET_TOOLKIT),os2)
EXPORT_OBJS = 1
endif
ifeq ($(OS_ARCH),Darwin)
EXTRA_DSO_LDOPTS += $(TK_LIBS)
endif
include $(topsrcdir)/config/rules.mk
ifeq ($(OS_ARCH),IRIX)
ifeq ($(GNU_CXX),1)
LDFLAGS += -Wl,-LD_LAYOUT:lgot_buffer=80
endif
endif
LOCAL_INCLUDES = -I$(srcdir)/../base/src \
-I$(srcdir)/../html/base/src \
-I$(srcdir)/../html/style/src \
-I$(srcdir)/../xul/content/src \
-I$(srcdir)/../xul/base/src \
-I$(srcdir)/../xul/templates/src \
-I$(srcdir)/../events/src \
-I$(srcdir)/../html/content/src \
-I$(srcdir)/../html/document/src \
-I. \
$(NULL)
GARBAGE+=$(BUILD_DATE)
export:: $(BUILD_DATE)
$(BUILD_DATE): gbdate.pl
$(RM) $@
$(PERL) $(srcdir)/gbdate.pl > $@

Просмотреть файл

@ -80,8 +80,8 @@ SHARED_LIBRARY_LIBS = \
$(NULL) $(NULL)
EXTRA_DSO_LDOPTS = \ EXTRA_DSO_LDOPTS = \
$(MOZ_COMPONENT_LIBS) \
$(MOZ_UNICHARUTIL_LIBS) \ $(MOZ_UNICHARUTIL_LIBS) \
$(MOZ_COMPONENT_LIBS) \
$(NULL) $(NULL)
ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT))) ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))

Просмотреть файл

@ -103,9 +103,10 @@ endif
endif endif
endif endif
EXTRA_DSO_LDOPTS = $(MOZ_NECKO_UTIL_LIBS) \ EXTRA_DSO_LDOPTS = \
$(MOZ_COMPONENT_LIBS) \
$(MOZ_UNICHARUTIL_LIBS) \ $(MOZ_UNICHARUTIL_LIBS) \
$(MOZ_NECKO_UTIL_LIBS) \
$(MOZ_COMPONENT_LIBS) \
$(NULL) $(NULL)
ifeq ($(MOZ_WIDGET_TOOLKIT),os2) ifeq ($(MOZ_WIDGET_TOOLKIT),os2)

Просмотреть файл

@ -131,8 +131,10 @@ endif
endif endif
ifeq ($(OS_ARCH),WINNT) ifeq ($(OS_ARCH),WINNT)
ifndef GNU_CXX
# use pre-compiled headers # use pre-compiled headers
CXXFLAGS += -YX -Fp$(LIBRARY_NAME).pch CXXFLAGS += -YX -Fp$(LIBRARY_NAME).pch
# precompiled headers require write access to .pch which breaks -j builds # precompiled headers require write access to .pch which breaks -j builds
.NOTPARALLEL:: .NOTPARALLEL::
endif endif
endif

Просмотреть файл

@ -91,8 +91,8 @@ endif
EXTRA_DSO_LDOPTS = \ EXTRA_DSO_LDOPTS = \
$(LIBS_DIR) \ $(LIBS_DIR) \
$(EXTRA_DSO_LIBS) \ $(EXTRA_DSO_LIBS) \
$(MOZ_COMPONENT_LIBS) \
$(MOZ_UNICHARUTIL_LIBS) \ $(MOZ_UNICHARUTIL_LIBS) \
$(MOZ_COMPONENT_LIBS) \
$(MOZ_JS_LIBS) \ $(MOZ_JS_LIBS) \
$(NULL) $(NULL)

Просмотреть файл

@ -77,8 +77,8 @@ include $(topsrcdir)/config/rules.mk
EXTRA_DSO_LDOPTS += \ EXTRA_DSO_LDOPTS += \
$(LIBS_DIR) \ $(LIBS_DIR) \
$(EXTRA_DSO_LIBS) \ $(EXTRA_DSO_LIBS) \
$(MOZ_COMPONENT_LIBS) \
$(MOZ_UNICHARUTIL_LIBS) \ $(MOZ_UNICHARUTIL_LIBS) \
$(MOZ_COMPONENT_LIBS) \
$(NULL) $(NULL)

Просмотреть файл

@ -86,8 +86,8 @@ endif
EXTRA_DSO_LDOPTS= \ EXTRA_DSO_LDOPTS= \
$(EXTRA_DSO_LIBS) \ $(EXTRA_DSO_LIBS) \
$(XPCOM_LIBS) \
$(MOZ_UNICHARUTIL_LIBS) \ $(MOZ_UNICHARUTIL_LIBS) \
$(XPCOM_LIBS) \
$(NSPR_LIBS) \ $(NSPR_LIBS) \
$(NULL) $(NULL)

Просмотреть файл

@ -108,8 +108,8 @@ EXTRA_DSO_LDOPTS = \
$(LIBS_DIR) \ $(LIBS_DIR) \
$(EXTRA_DSO_LIBS) \ $(EXTRA_DSO_LIBS) \
$(MOZ_NECKO_UTIL_LIBS) \ $(MOZ_NECKO_UTIL_LIBS) \
$(MOZ_COMPONENT_LIBS) \
$(MOZ_UNICHARUTIL_LIBS) \ $(MOZ_UNICHARUTIL_LIBS) \
$(MOZ_COMPONENT_LIBS) \
$(NULL) $(NULL)
ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT))) ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))

Просмотреть файл

@ -91,8 +91,8 @@ endif
EXTRA_DSO_LDOPTS = \ EXTRA_DSO_LDOPTS = \
$(LIBS_DIR) \ $(LIBS_DIR) \
$(EXTRA_DSO_LIBS) \ $(EXTRA_DSO_LIBS) \
$(MOZ_COMPONENT_LIBS) \
$(MOZ_UNICHARUTIL_LIBS) \ $(MOZ_UNICHARUTIL_LIBS) \
$(MOZ_COMPONENT_LIBS) \
$(ZLIB_LIBS) \ $(ZLIB_LIBS) \
$(NULL) $(NULL)

Просмотреть файл

@ -58,8 +58,8 @@ SHARED_LIBRARY_LIBS = \
EXTRA_DSO_LDOPTS = \ EXTRA_DSO_LDOPTS = \
$(LIBS_DIR) \ $(LIBS_DIR) \
$(EXTRA_DSO_LIBS) \ $(EXTRA_DSO_LIBS) \
$(MOZ_COMPONENT_LIBS) \
$(MOZ_UNICHARUTIL_LIBS) \ $(MOZ_UNICHARUTIL_LIBS) \
$(MOZ_COMPONENT_LIBS) \
$(NULL) $(NULL)
include $(topsrcdir)/config/rules.mk include $(topsrcdir)/config/rules.mk

Просмотреть файл

@ -65,8 +65,8 @@ endif
EXTRA_DSO_LDOPTS = \ EXTRA_DSO_LDOPTS = \
$(LIBS_DIR) \ $(LIBS_DIR) \
$(MOZ_COMPONENT_LIBS) \
$(MOZ_UNICHARUTIL_LIBS) \ $(MOZ_UNICHARUTIL_LIBS) \
$(MOZ_COMPONENT_LIBS) \
$(MOZ_JS_LIBS) \ $(MOZ_JS_LIBS) \
$(NULL) $(NULL)

Просмотреть файл

@ -60,14 +60,14 @@ SHARED_LIBRARY_LIBS = \
$(NULL) $(NULL)
EXTRA_DSO_LDOPTS = \ EXTRA_DSO_LDOPTS = \
$(LIBS_DIR) \
$(EXTRA_DSO_LIBS) \ $(EXTRA_DSO_LIBS) \
$(XPCOM_LIBS) \ $(MOZ_COMPONENT_LIBS) \
$(NSPR_LIBS) \
$(NULL) $(NULL)
include $(topsrcdir)/config/rules.mk include $(topsrcdir)/config/rules.mk
DEFINES += -D_IMPL_NS_WIDGET -DMOZ_UNICODE DEFINES += -D_IMPL_NS_WIDGET -DMOZ_UNICODE -DMOZ_AIMM

Просмотреть файл

@ -100,6 +100,6 @@ include $(topsrcdir)/config/rules.mk
# Silly case-insensitive fs # Silly case-insensitive fs
export:: IENUMFE.CPP export:: IENUMFE.CPP
cp $< L_Ienumfe.cpp cp -a $< L_Ienumfe.cpp

Просмотреть файл

@ -91,7 +91,8 @@ FORCE_STATIC_LIB = 1
# Force use of PIC # Force use of PIC
FORCE_USE_PIC = 1 FORCE_USE_PIC = 1
include $(topsrcdir)/config/rules.mk include $(topsrcdir)/config/rules.mk
DEFINES += -D_IMPL_NS_COM
DEFINES += -D_IMPL_NS_COM -DEXPORT_XPTI_API

Просмотреть файл

@ -39,7 +39,7 @@ CPPSRCS = \
nsProxyObjectManager.cpp \ nsProxyObjectManager.cpp \
$(NULL) $(NULL)
DEFINES += -D_IMPL_NS_COM -DEXPORT_XPTC_API DEFINES += -D_IMPL_NS_COM -DEXPORT_XPTC_API -DEXPORT_XPTI_API
# No shared lib; Force creation of static lib # No shared lib; Force creation of static lib
FORCE_STATIC_LIB = 1 FORCE_STATIC_LIB = 1

Просмотреть файл

@ -42,5 +42,5 @@ FORCE_USE_PIC = 1
include $(topsrcdir)/config/rules.mk include $(topsrcdir)/config/rules.mk
DEFINES += -DEXPORT_XPTC_API DEFINES += -DEXPORT_XPTC_API -D_IMPL_NS_COM -D_IMPL_NS_BASE

Просмотреть файл

@ -51,6 +51,6 @@ FORCE_STATIC_LIB = 1
include $(topsrcdir)/config/rules.mk include $(topsrcdir)/config/rules.mk
DEFINES += -DEXPORT_XPTC_API DEFINES += -DEXPORT_XPTC_API -D_IMPL_NS_COM -D_IMPL_NS_BASE
LOCAL_INCLUDES = -I$(srcdir)/../.. LOCAL_INCLUDES = -I$(srcdir)/../..

Просмотреть файл

@ -55,5 +55,5 @@ include $(topsrcdir)/config/rules.mk
# For nsManifestLineReader class. # For nsManifestLineReader class.
LOCAL_INCLUDES = -I$(srcdir)/../../../ds LOCAL_INCLUDES = -I$(srcdir)/../../../ds
DEFINES += -DEXPORT_XPTI_API -DEXPORT_XPT_API DEFINES += -DEXPORT_XPTI_API -DEXPORT_XPT_API -D_IMPL_NS_COM -D_IMPL_NS_BASE

Просмотреть файл

@ -61,8 +61,8 @@ CPPSRCS = \
EXTRA_DSO_LDOPTS = \ EXTRA_DSO_LDOPTS = \
$(LIBS_DIR) \ $(LIBS_DIR) \
$(MOZ_COMPONENT_LIBS) \
$(MOZ_UNICHARUTIL_LIBS) \ $(MOZ_UNICHARUTIL_LIBS) \
$(MOZ_COMPONENT_LIBS) \
$(NULL) $(NULL)
include $(topsrcdir)/config/rules.mk include $(topsrcdir)/config/rules.mk

Просмотреть файл

@ -128,10 +128,10 @@ LOCAL_INCLUDES += \
endif endif
EXTRA_DSO_LDOPTS = \ EXTRA_DSO_LDOPTS = \
$(MOZ_UNICHARUTIL_LIBS) \
$(MOZ_COMPONENT_LIBS) \ $(MOZ_COMPONENT_LIBS) \
$(EXTRA_DSO_LIBS) \ $(EXTRA_DSO_LIBS) \
$(MOZ_UNICHARUTIL_LIBS) \
$(MOZ_JS_LIBS) \ $(MOZ_JS_LIBS) \
$(NULL) $(NULL)
include $(topsrcdir)/config/rules.mk include $(topsrcdir)/config/rules.mk

Просмотреть файл

@ -43,6 +43,8 @@ GARBAGE_DIRS += $(DIST)/include/$(MODULE)
FORCE_SHARED_LIB=1 FORCE_SHARED_LIB=1
LOCAL_INCLUDES = -I$(srcdir)
include $(topsrcdir)/config/rules.mk include $(topsrcdir)/config/rules.mk
# Hack to get around the default rules insisting that .lib should exist # Hack to get around the default rules insisting that .lib should exist