# # Copyright 1999-2004 The Apache Software Foundation. # # Licensed under the Apache License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # # Output directory OUTDIR := ../../../.. INSTALL = @INSTALL@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ include $(XALANCROOT)/version.incl include ../../../../Makefile.incl XALANMSGLIB_SRC=$(XALANCROOT)/src/xalanc/Utils/XalanMsgLib .PHONY: doClean install $(MESSAGELIB) : ${XSL_OBJ_DIR}/XalanMsgLib.o $(MAKE_SHARED_LOC) $(EXTRA_LOC_LINK_OPTIONS) $^ -o $@ ifneq ($(PLATFORM), OS390) rm -f $(XSL_LIB_DIR)/$(LOC_LIBNAME)$(SHLIBSUFFIX) && \ $(LN) -fs $(LOC_LIB) $(XSL_LIB_DIR)/$(LOC_LIBNAME)$(SHLIBSUFFIX) ifeq ($(PLATFORM), AIX) $(LN) -fs $(LOC_LIB) $(XSL_LIB_DIR)/$(LOC_LIBNAME)$(LIB_MAJOR_VER)$(SHLIBSUFFIX) else rm -f $(XSL_LIB_DIR)/$(LOC_LIBNAME)$(SHLIBSUFFIX).$(LIB_MAJOR_VER) && \ $(LN) -fs $(LOC_LIB) \ $(XSL_LIB_DIR)/$(LOC_LIBNAME)$(SHLIBSUFFIX).$(LIB_MAJOR_VER) endif ## AIX endif ## ! OS390 ${XSL_OBJ_DIR}/XalanMsgLib.o : $(XALANMSGLIB_SRC)/XalanMsgLib.cpp $(XALANMSGLIB_SRC)/XalanMsgLib.hpp ${XSL_NLS_DIR}/include/LocalMsgData.hpp $(CC1) $(XSL_BUILD_OPTIONS) -c $(XSL_INCL) $(EXTRA_COMPILE_OPTIONS) -o $@ $(XALANMSGLIB_SRC)/XalanMsgLib.cpp prepare: install: $(MKINSTALLDIRS) $(DESTDIR)/$(libdir) $(INSTALL_PROGRAM) $(XSL_LIB_DIR)/$(LOC_LIB) $(DESTDIR)/$(libdir) ifneq ($(PLATFORM), OS390) rm -f $(DESTDIR)/$(libdir)/$(LOC_LIBNAME)$(SHLIBSUFFIX) && \ $(LN) -fs $(LOC_LIB) \ $(DESTDIR)/$(libdir)/$(LOC_LIBNAME)$(SHLIBSUFFIX) ifeq ($(PLATFORM), AIX) $(LN) -fs $(LOC_LIB) $(DESTDIR)/$(libdir)/$(LOC_LIBNAME)$(LIB_MAJOR_VER)$(SHLIBSUFFIX) else rm -f $(DESTDIR)/$(libdir)/$(LOC_LIBNAME)$(SHLIBSUFFIX).$(LIB_MAJOR_VER) && \ $(LN) -fs $(LOC_LIB) \ $(DESTDIR)/$(libdir)/$(LOC_LIBNAME)$(SHLIBSUFFIX).$(LIB_MAJOR_VER) endif ## AIX endif ## ! OS390 doClean: rm -f $(MESSAGELIB) rm -f ${XSL_OBJ_DIR}/XalanMsgLib.o rm -f $(XSL_LIB_DIR)/$(LOC_LIBNAME)$(SHLIBSUFFIX) ifeq ($(PLATFORM), AIX) rm -f $(XSL_LIB_DIR)/$(LOC_LIBNAME)$(LIB_MAJOR_VER)$(SHLIBSUFFIX) else rm -f $(XSL_LIB_DIR)/$(LOC_LIBNAME)$(SHLIBSUFFIX).$(LIB_MAJOR_VER) endif ## AIX