## -*-makefile-*-
## Aix-specific setup (for Visual Age 5+)
-## Copyright (c) 1999-2002, International Business Machines Corporation and
+## Copyright (c) 1999-2005, International Business Machines Corporation and
## others. All Rights Reserved.
-##
-## $Id: mh-aix-va,v 1.1.1.2 2003/07/03 18:13:33 avery Exp $
## Commands to generate dependency files
GEN_DEPS.c= $(CC) -E -M $(DEFS) $(CPPFLAGS)
CFLAGS += -qproto -qroconst
CXXFLAGS += -qproto -qroconst
-LDFLAGS += -brtl -bh:5
+# If you readd this line, you must change the SO value
+#LDFLAGS += -brtl
## We need to delete things prior to linking, or else we'll get
## SEVERE ERROR: output file in use .. on AIX.
## Environment variable to set a runtime search path
LDLIBRARYPATH_ENVVAR = LIBPATH
-## Override Versioned target for a shared library.
-FINAL_SO_TARGET= $(basename $(SO_TARGET))$(SO_TARGET_VERSION).$(SO)
-MIDDLE_SO_TARGET= $(basename $(SO_TARGET))$(SO_TARGET_VERSION_MAJOR).$(SO)
-
# The following is for Makefile.inc's use.
ICULIBSUFFIX_VERSION = $(LIB_VERSION_MAJOR)
# this one is for icudefs.mk's use
+ifeq ($(ENABLE_SHARED),YES)
SO_TARGET_VERSION_SUFFIX = $(SO_TARGET_VERSION_MAJOR)
+endif
LD_SONAME =
+## The type of assembly needed when pkgdata is used for generating shared libraries.
+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
STATIC_O = o
+## Override Versioned target for a shared library.
+FINAL_SO_TARGET= $(basename $(SO_TARGET))$(SO_TARGET_VERSION).$(SO)
+MIDDLE_SO_TARGET= $(basename $(SO_TARGET))$(SO_TARGET_VERSION_MAJOR).$(SO)
+SHARED_OBJECT = $(notdir $(FINAL_SO_TARGET:.$(SO)=.$(SOBJ)))
+
## Build archive from shared object
%.a : %.so
$(AR) $(ARFLAGS) $@ $<
+$(LIBDIR)/%.a : %.so
+ $(AR) $(ARFLAGS) $@ $<
## Build import list from export list
%.e : %.exp
%.o: $(srcdir)/%.cpp
$(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -o $@ $<
-../data/%.o: ../data/%.c
- $(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS) -o $@ $<
## Dependency rules
%.d : %.u
## Versioned libraries rules
%$(SO_TARGET_VERSION_MAJOR).$(SO): %$(SO_TARGET_VERSION).$(SO)
- $(RM) $@ && ln -s $*$(SO_TARGET_VERSION).$(SO) $@
+ $(RM) $@ && ln -s ${*F}$(SO_TARGET_VERSION).$(SO) $@
%.$(SO): %$(SO_TARGET_VERSION).$(SO)
- $(RM) $@ && ln -s $*$(SO_TARGET_VERSION).$(SO) $@
+ $(RM) $@ && ln -s ${*F}$(SO_TARGET_VERSION).$(SO) $@
## End Aix-specific setup