Skip to content

Commit

Permalink
Bug 971087 - Remove OS/2 support from comm-central: config. r=jcranmer
Browse files Browse the repository at this point in the history
  • Loading branch information
Archaeopteryx committed Feb 25, 2014
1 parent 8916fdc commit 320d70e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 68 deletions.
26 changes: 2 additions & 24 deletions config/config.mk
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -396,10 +396,6 @@ endif


TAR_CREATE_FLAGS = -chf TAR_CREATE_FLAGS = -chf


ifeq ($(OS_ARCH),OS2)
TAR_CREATE_FLAGS = -cf
endif

# #
# Personal makefile customizations go in these optional make include files. # Personal makefile customizations go in these optional make include files.
# #
Expand Down Expand Up @@ -544,11 +540,7 @@ ifeq (xpconnect, $(findstring xpconnect, $(BUILD_MODULES)))
DEFINES += -DXPCONNECT_STANDALONE DEFINES += -DXPCONNECT_STANDALONE
endif endif


ifeq ($(OS_ARCH),OS2)
ELF_DYNSTR_GC = echo
else
ELF_DYNSTR_GC = : ELF_DYNSTR_GC = :
endif


ifeq ($(MOZ_WIDGET_TOOLKIT),qt) ifeq ($(MOZ_WIDGET_TOOLKIT),qt)
OS_LIBS += $(MOZ_QT_LIBS) OS_LIBS += $(MOZ_QT_LIBS)
Expand Down Expand Up @@ -595,9 +587,6 @@ endif # OS_ARCH=Darwin
# Set link flags according to whether we want a console. # Set link flags according to whether we want a console.
ifdef MOZ_WINCONSOLE ifdef MOZ_WINCONSOLE
ifeq ($(MOZ_WINCONSOLE),1) ifeq ($(MOZ_WINCONSOLE),1)
ifeq ($(OS_ARCH),OS2)
BIN_FLAGS += -Zlinker -PM:VIO
endif
ifeq ($(OS_ARCH),WINNT) ifeq ($(OS_ARCH),WINNT)
ifdef GNU_CC ifdef GNU_CC
WIN32_EXE_LDFLAGS += -mconsole WIN32_EXE_LDFLAGS += -mconsole
Expand All @@ -606,9 +595,6 @@ WIN32_EXE_LDFLAGS += -SUBSYSTEM:CONSOLE
endif endif
endif endif
else # MOZ_WINCONSOLE else # MOZ_WINCONSOLE
ifeq ($(OS_ARCH),OS2)
BIN_FLAGS += -Zlinker -PM:PM
endif
ifeq ($(OS_ARCH),WINNT) ifeq ($(OS_ARCH),WINNT)
ifdef GNU_CC ifdef GNU_CC
WIN32_EXE_LDFLAGS += -mwindows WIN32_EXE_LDFLAGS += -mwindows
Expand Down Expand Up @@ -662,19 +648,15 @@ NSINSTALL_NATIVECMD := %nsinstall nsinstall
ifdef NSINSTALL_BIN ifdef NSINSTALL_BIN
NSINSTALL = $(NSINSTALL_BIN) NSINSTALL = $(NSINSTALL_BIN)
else else
ifeq (OS2,$(CROSS_COMPILE)$(OS_ARCH))
NSINSTALL = $(MOZ_TOOLS_DIR)/nsinstall
else
ifeq ($(HOST_OS_ARCH),WINNT) ifeq ($(HOST_OS_ARCH),WINNT)
NSINSTALL = $(NSINSTALL_PY) NSINSTALL = $(NSINSTALL_PY)
else else
NSINSTALL = $(CONFIG_TOOLS)/nsinstall$(HOST_BIN_SUFFIX) NSINSTALL = $(CONFIG_TOOLS)/nsinstall$(HOST_BIN_SUFFIX)
endif # WINNT endif # WINNT
endif # OS2
endif # NSINSTALL_BIN endif # NSINSTALL_BIN




ifeq (,$(CROSS_COMPILE)$(filter-out WINNT OS2, $(OS_ARCH))) ifeq (,$(CROSS_COMPILE)$(filter-out WINNT, $(OS_ARCH)))
INSTALL = $(NSINSTALL) -t INSTALL = $(NSINSTALL) -t
ifdef .PYMAKE ifdef .PYMAKE
install_cmd = $(NSINSTALL_NATIVECMD) -t $(1) install_cmd = $(NSINSTALL_NATIVECMD) -t $(1)
Expand All @@ -686,7 +668,7 @@ else
# target-specific. # target-specific.
INSTALL = $(if $(filter copy, $(NSDISTMODE)), $(NSINSTALL) -t, $(if $(filter absolute_symlink, $(NSDISTMODE)), $(NSINSTALL) -L $(PWD), $(NSINSTALL) -R)) INSTALL = $(if $(filter copy, $(NSDISTMODE)), $(NSINSTALL) -t, $(if $(filter absolute_symlink, $(NSDISTMODE)), $(NSINSTALL) -L $(PWD), $(NSINSTALL) -R))


endif # WINNT/OS2 endif # WINNT


# The default for install_cmd is simply INSTALL # The default for install_cmd is simply INSTALL
install_cmd ?= $(INSTALL) $(1) install_cmd ?= $(INSTALL) $(1)
Expand Down Expand Up @@ -748,13 +730,9 @@ MERGE_FILE = $(LOCALE_SRCDIR)/$(1)
endif endif
MERGE_FILES = $(foreach f,$(1),$(call MERGE_FILE,$(f))) MERGE_FILES = $(foreach f,$(1),$(call MERGE_FILE,$(f)))


ifeq (OS2,$(OS_ARCH))
RUN_TEST_PROGRAM = $(MOZILLA_SRCDIR)/build/os2/test_os2.cmd "$(DIST)"
else
ifneq (WINNT,$(OS_ARCH)) ifneq (WINNT,$(OS_ARCH))
RUN_TEST_PROGRAM = $(DIST)/bin/run-mozilla.sh RUN_TEST_PROGRAM = $(DIST)/bin/run-mozilla.sh
endif # ! WINNT endif # ! WINNT
endif # ! OS2


CREATE_PRECOMPLETE_CMD = $(PYTHON) $(abspath $(MOZILLA_SRCDIR)/config/createprecomplete.py) CREATE_PRECOMPLETE_CMD = $(PYTHON) $(abspath $(MOZILLA_SRCDIR)/config/createprecomplete.py)


Expand Down
46 changes: 2 additions & 44 deletions config/rules.mk
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -45,11 +45,7 @@ endif


REPORT_BUILD = $(info $(notdir $<)) REPORT_BUILD = $(info $(notdir $<))


ifeq ($(OS_ARCH),OS2)
EXEC =
else
EXEC = exec EXEC = exec
endif


# Don't copy xulrunner files at install time, when using system xulrunner # Don't copy xulrunner files at install time, when using system xulrunner
ifdef SYSTEM_LIBXUL ifdef SYSTEM_LIBXUL
Expand Down Expand Up @@ -142,26 +138,16 @@ ifdef LIB_IS_C_ONLY
MKSHLIB = $(MKCSHLIB) MKSHLIB = $(MKCSHLIB)
endif endif


ifneq (,$(filter OS2 WINNT,$(OS_ARCH))) ifneq (,$(filter WINNT,$(OS_ARCH)))
IMPORT_LIBRARY := $(LIB_PREFIX)$(SHARED_LIBRARY_NAME).$(IMPORT_LIB_SUFFIX) IMPORT_LIBRARY := $(LIB_PREFIX)$(SHARED_LIBRARY_NAME).$(IMPORT_LIB_SUFFIX)
endif endif


ifeq (OS2,$(OS_ARCH))
ifdef SHORT_LIBNAME
SHARED_LIBRARY_NAME := $(SHORT_LIBNAME)
endif
endif

ifdef MAKE_FRAMEWORK ifdef MAKE_FRAMEWORK
SHARED_LIBRARY := $(SHARED_LIBRARY_NAME) SHARED_LIBRARY := $(SHARED_LIBRARY_NAME)
else else
SHARED_LIBRARY := $(DLL_PREFIX)$(SHARED_LIBRARY_NAME)$(DLL_SUFFIX) SHARED_LIBRARY := $(DLL_PREFIX)$(SHARED_LIBRARY_NAME)$(DLL_SUFFIX)
endif endif


ifeq ($(OS_ARCH),OS2)
DEF_FILE := $(SHARED_LIBRARY:.dll=.def)
endif

EMBED_MANIFEST_AT=2 EMBED_MANIFEST_AT=2


endif # MKSHLIB endif # MKSHLIB
Expand Down Expand Up @@ -637,7 +623,7 @@ ifndef NO_COMPONENTS_MANIFEST
$(call py_action,buildlist,$(FINAL_TARGET)/components/components.manifest "binary-component $(SHARED_LIBRARY)") $(call py_action,buildlist,$(FINAL_TARGET)/components/components.manifest "binary-component $(SHARED_LIBRARY)")
endif endif
else # ! IS_COMPONENT else # ! IS_COMPONENT
ifneq (,$(filter OS2 WINNT,$(OS_ARCH))) ifneq (,$(filter WINNT,$(OS_ARCH)))
ifndef NO_INSTALL_IMPORT_LIBRARY ifndef NO_INSTALL_IMPORT_LIBRARY
$(call install_cmd,$(IFLAGS2) $(IMPORT_LIBRARY) $(DIST)/lib) $(call install_cmd,$(IFLAGS2) $(IMPORT_LIBRARY) $(DIST)/lib)
endif endif
Expand Down Expand Up @@ -717,9 +703,6 @@ distclean::
$(wildcard *.$(OBJ_SUFFIX)) $(wildcard *.ho) $(wildcard host_*.o*) \ $(wildcard *.$(OBJ_SUFFIX)) $(wildcard *.ho) $(wildcard host_*.o*) \
$(wildcard *.$(LIB_SUFFIX)) $(wildcard *$(DLL_SUFFIX)) \ $(wildcard *.$(LIB_SUFFIX)) $(wildcard *$(DLL_SUFFIX)) \
$(wildcard *.$(IMPORT_LIB_SUFFIX)) $(wildcard *.$(IMPORT_LIB_SUFFIX))
ifeq ($(OS_ARCH),OS2)
-$(RM) $(PROGRAM:.exe=.map)
endif


alltags: alltags:
$(RM) TAGS $(RM) TAGS
Expand Down Expand Up @@ -845,27 +828,6 @@ ifeq ($(OS_ARCH),WINNT)
$(IMPORT_LIBRARY): $(SHARED_LIBRARY) $(IMPORT_LIBRARY): $(SHARED_LIBRARY)
endif endif


ifeq ($(OS_ARCH),OS2)
$(DEF_FILE): $(OBJS) $(SHARED_LIBRARY_LIBS)
$(RM) $@
echo LIBRARY $(SHARED_LIBRARY_NAME) INITINSTANCE TERMINSTANCE > $@
echo PROTMODE >> $@
echo CODE LOADONCALL MOVEABLE DISCARDABLE >> $@
echo DATA PRELOAD MOVEABLE MULTIPLE NONSHARED >> $@
echo EXPORTS >> $@

$(ADD_TO_DEF_FILE)

ifdef MOZ_OS2_USE_DECLSPEC
$(IMPORT_LIBRARY): $(SHARED_LIBRARY)
else
$(IMPORT_LIBRARY): $(DEF_FILE)
endif
$(RM) $@
$(IMPLIB) $@ $^
$(RANLIB) $@
endif # OS/2

$(HOST_LIBRARY): $(HOST_OBJS) Makefile $(HOST_LIBRARY): $(HOST_OBJS) Makefile
$(RM) $@ $(RM) $@
$(HOST_AR) $(HOST_AR_FLAGS) $(HOST_OBJS) $(HOST_AR) $(HOST_AR_FLAGS) $(HOST_OBJS)
Expand Down Expand Up @@ -1038,15 +1000,11 @@ $(OBJ_PREFIX)%.$(OBJ_SUFFIX): %.m $(GLOBAL_DEPS)


%.res: %.rc %.res: %.rc
@echo Creating Resource file: $@ @echo Creating Resource file: $@
ifeq ($(OS_ARCH),OS2)
$(RC) $(RCFLAGS:-D%=-d %) -i $(subst /,\,$(srcdir)) -r $< $@
else
ifdef GNU_CC ifdef GNU_CC
$(RC) $(RCFLAGS) $(filter-out -U%,$(DEFINES)) $(INCLUDES:-I%=--include-dir %) $(OUTOPTION)$@ $(_VPATH_SRCS) $(RC) $(RCFLAGS) $(filter-out -U%,$(DEFINES)) $(INCLUDES:-I%=--include-dir %) $(OUTOPTION)$@ $(_VPATH_SRCS)
else else
$(RC) $(RCFLAGS) -r $(DEFINES) $(INCLUDES) $(OUTOPTION)$@ $(_VPATH_SRCS) $(RC) $(RCFLAGS) -r $(DEFINES) $(INCLUDES) $(OUTOPTION)$@ $(_VPATH_SRCS)
endif endif
endif


# need 3 separate lines for OS/2 # need 3 separate lines for OS/2
%:: %.pl %:: %.pl
Expand Down

0 comments on commit 320d70e

Please sign in to comment.