ICU-4738 Build archive libraries for AIX
X-SVN-Rev: 18507
This commit is contained in:
parent
6e52ce0e05
commit
b71fb32e87
icu4c/source
@ -32,7 +32,8 @@ endif
|
||||
|
||||
ifneq ($(ENABLE_SHARED),)
|
||||
SO_TARGET = $(LIBDIR)/$(LIBICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(SO)
|
||||
ALL_SO_TARGETS = $(SO_TARGET) $(MIDDLE_SO_TARGET) $(FINAL_SO_TARGET)
|
||||
SHARED_OBJECT = $(FINAL_SO_TARGET:.$(SO)=.$(SOBJ))
|
||||
ALL_SO_TARGETS = $(SO_TARGET) $(MIDDLE_SO_TARGET) $(FINAL_SO_TARGET) $(SHARED_OBJECT)
|
||||
|
||||
ifeq ($(ENABLE_SO_VERSION_DATA),1)
|
||||
SO_VERSION_DATA = common.res
|
||||
@ -163,7 +164,7 @@ $(TARGET): $(TARGET)($(STATIC_OBJECTS))
|
||||
endif
|
||||
|
||||
ifneq ($(ENABLE_SHARED),)
|
||||
$(FINAL_SO_TARGET): $(OBJECTS) $(SO_VERSION_DATA)
|
||||
$(SHARED_OBJECT): $(OBJECTS) $(SO_VERSION_DATA)
|
||||
$(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS)
|
||||
|
||||
ifeq ($(OS390BATCH),1)
|
||||
|
@ -1,6 +1,6 @@
|
||||
## -*-makefile-*-
|
||||
## Aix-specific setup (for Visual Age 5+)
|
||||
## Copyright (c) 1999-2004, International Business Machines Corporation and
|
||||
## Copyright (c) 1999-2005, International Business Machines Corporation and
|
||||
## others. All Rights Reserved.
|
||||
|
||||
## Commands to generate dependency files
|
||||
@ -61,7 +61,7 @@ LD_SONAME =
|
||||
GENCCODE_ASSEMBLY=-a xlc
|
||||
|
||||
## Shared object suffix
|
||||
#SO= so
|
||||
SOBJ= so
|
||||
# without the -brtl option, the library names use .a. AIX is funny that way.
|
||||
SO= a
|
||||
## Non-shared intermediate object suffix
|
||||
@ -81,11 +81,15 @@ STATIC_O = o
|
||||
$(COMPILE.c) $(STATICCPPFLAGS) $(STATICCFLAGS) -o $@ $<
|
||||
%.o: $(srcdir)/%.c
|
||||
$(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS) -o $@ $<
|
||||
%64.o: $(srcdir)/%.c
|
||||
$(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS) -q64 -o $@ $<
|
||||
|
||||
%.$(STATIC_O): $(srcdir)/%.cpp
|
||||
$(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS) -o $@ $<
|
||||
%.o: $(srcdir)/%.cpp
|
||||
$(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -o $@ $<
|
||||
%64.o: $(srcdir)/%.cpp
|
||||
$(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -q64 -o $@ $<
|
||||
|
||||
|
||||
## Dependency rules
|
||||
|
@ -33,7 +33,8 @@ endif
|
||||
|
||||
ifneq ($(ENABLE_SHARED),)
|
||||
SO_TARGET = $(LIBDIR)/$(LIBICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(SO)
|
||||
ALL_SO_TARGETS = $(SO_TARGET) $(MIDDLE_SO_TARGET) $(FINAL_SO_TARGET)
|
||||
SHARED_OBJECT = $(FINAL_SO_TARGET:.$(SO)=.$(SOBJ))
|
||||
ALL_SO_TARGETS = $(SO_TARGET) $(MIDDLE_SO_TARGET) $(FINAL_SO_TARGET) $(SHARED_OBJECT)
|
||||
|
||||
ifeq ($(ENABLE_SO_VERSION_DATA),1)
|
||||
SO_VERSION_DATA = i18n.res
|
||||
@ -154,7 +155,7 @@ $(TARGET): $(TARGET)($(STATIC_OBJECTS))
|
||||
endif
|
||||
|
||||
ifneq ($(ENABLE_SHARED),)
|
||||
$(FINAL_SO_TARGET): $(OBJECTS) $(SO_VERSION_DATA)
|
||||
$(SHARED_OBJECT): $(OBJECTS) $(SO_VERSION_DATA)
|
||||
$(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS)
|
||||
|
||||
ifeq ($(OS390BATCH),1)
|
||||
|
@ -221,6 +221,10 @@ INVOKE = $(LDLIBRARYPATH_ENVVAR)=$(LIBRARY_PATH_PREFIX)$(LIBDIR):$(top_builddir)
|
||||
# Platform-specific setup
|
||||
include @platform_make_fragment@
|
||||
|
||||
ifeq ($(SOBJ),)
|
||||
SOBJ = $(SO)
|
||||
endif
|
||||
|
||||
# When shared libraries are disabled and static libraries are enabled,
|
||||
# the C++ compiler must be used to link in the libraries for the tools.
|
||||
ifneq ($(ENABLE_SHARED),YES)
|
||||
|
@ -1,6 +1,6 @@
|
||||
#******************************************************************************
|
||||
#
|
||||
# Copyright (C) 1999-2004, International Business Machines
|
||||
# Copyright (C) 1999-2005, International Business Machines
|
||||
# Corporation and others. All Rights Reserved.
|
||||
#
|
||||
#******************************************************************************
|
||||
@ -30,11 +30,14 @@ ifneq ($(ENABLE_STATIC),)
|
||||
TARGET = $(STUBDATA_LIBDIR)$(LIBSICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(A)
|
||||
endif
|
||||
|
||||
|
||||
ifneq ($(ENABLE_SHARED),)
|
||||
SO_TARGET = $(STUBDATA_LIBDIR)$(LIBICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX)$(STUB_SUFFIX).$(SO)
|
||||
ALL_SO_TARGETS = $(SO_TARGET) $(MIDDLE_SO_TARGET) $(FINAL_SO_TARGET) $(BATCH_STUB_TARGET)
|
||||
SHARED_OBJECT = $(FINAL_SO_TARGET:.$(SO)=.$(SOBJ))
|
||||
ALL_SO_TARGETS = $(FINAL_SO_TARGET) $(MIDDLE_SO_TARGET) $(SO_TARGET) $(BATCH_STUB_TARGET) $(SHARED_OBJECT)
|
||||
endif
|
||||
|
||||
|
||||
ALL_TARGETS = $(TARGET) $(ALL_SO_TARGETS)
|
||||
|
||||
DYNAMICCPPFLAGS = $(SHAREDLIBCPPFLAGS)
|
||||
@ -123,7 +126,7 @@ $(TARGET): $(TARGET)($(STATIC_OBJECTS))
|
||||
endif
|
||||
|
||||
ifneq ($(ENABLE_SHARED),)
|
||||
$(FINAL_SO_TARGET): $(OBJECTS)
|
||||
$(SHARED_OBJECT): $(OBJECTS)
|
||||
$(SHLIB.c) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS)
|
||||
|
||||
ifeq ($(OS390BATCH),1)
|
||||
|
Loading…
Reference in New Issue
Block a user