michael@0: #****************************************************************************** michael@0: # michael@0: # Copyright (C) 1999-2011, International Business Machines michael@0: # Corporation and others. All Rights Reserved. michael@0: # michael@0: #****************************************************************************** michael@0: ## Makefile.in for ICU stubdata michael@0: ## Stephen F. Booth michael@0: michael@0: ## Source directory information michael@0: srcdir = @srcdir@ michael@0: top_srcdir = @top_srcdir@ michael@0: michael@0: top_builddir = .. michael@0: michael@0: ## All the flags and other definitions are included here. michael@0: include $(top_builddir)/icudefs.mk michael@0: michael@0: ## Build directory information michael@0: subdir = stubdata michael@0: michael@0: ## Extra files to remove for 'make clean' michael@0: CLEANFILES = *~ $(DEPS) $(IMPORT_LIB) $(MIDDLE_IMPORT_LIB) $(FINAL_IMPORT_LIB) michael@0: michael@0: ## Target information michael@0: michael@0: TARGET_STUBNAME=$(DATA_STUBNAME) michael@0: michael@0: ifneq ($(ENABLE_STATIC),) michael@0: TARGET = $(STUBDATA_LIBDIR)$(LIBSICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(A) michael@0: endif michael@0: michael@0: michael@0: ifneq ($(ENABLE_SHARED),) michael@0: SO_TARGET = $(STUBDATA_LIBDIR)$(LIBICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX)$(STUB_SUFFIX).$(SO) michael@0: ALL_SO_TARGETS = $(FINAL_SO_TARGET) $(MIDDLE_SO_TARGET) $(SO_TARGET) $(BATCH_STUB_TARGET) $(SHARED_OBJECT) michael@0: endif michael@0: michael@0: michael@0: ALL_TARGETS = $(TARGET) $(ALL_SO_TARGETS) michael@0: michael@0: DYNAMICCPPFLAGS = $(SHAREDLIBCPPFLAGS) michael@0: DYNAMICCFLAGS = $(SHAREDLIBCFLAGS) michael@0: DYNAMICCXXFLAGS = $(SHAREDLIBCXXFLAGS) michael@0: michael@0: CPPFLAGS += -I$(top_srcdir)/common $(LIBCPPFLAGS) michael@0: LDFLAGS += $(LDFLAGSICUDT) michael@0: michael@0: OBJECTS = stubdata.o michael@0: michael@0: ## Header files to install michael@0: HEADERS = michael@0: michael@0: STATIC_OBJECTS = $(OBJECTS:.o=.$(STATIC_O)) michael@0: michael@0: DEPS = $(OBJECTS:.o=.d) michael@0: michael@0: -include Makefile.local michael@0: michael@0: ## List of phony targets michael@0: .PHONY : all all-local install install-local clean clean-local \ michael@0: distclean distclean-local install-library dist \ michael@0: dist-local check check-local check-exhaustive michael@0: michael@0: ## Clear suffix list michael@0: .SUFFIXES : michael@0: michael@0: ## List of standard targets michael@0: all: all-local michael@0: install: install-local michael@0: clean: clean-local michael@0: distclean : distclean-local michael@0: dist: dist-local michael@0: check: all check-local michael@0: michael@0: check-exhaustive: check michael@0: michael@0: all-local: $(ALL_TARGETS) michael@0: michael@0: install-local: install-library michael@0: michael@0: install-library: all-local michael@0: $(MKINSTALLDIRS) $(DESTDIR)$(libdir) michael@0: ifneq ($(ENABLE_STATIC),) michael@0: $(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir) michael@0: endif michael@0: ifneq ($(ENABLE_SHARED),) michael@0: $(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir) michael@0: ifneq ($(FINAL_SO_TARGET),$(SO_TARGET)) michael@0: cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(SO_TARGET)) michael@0: ifneq ($(FINAL_SO_TARGET),$(MIDDLE_SO_TARGET)) michael@0: cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(MIDDLE_SO_TARGET)) michael@0: endif michael@0: endif michael@0: ifneq ($(IMPORT_LIB_EXT),) michael@0: $(INSTALL-L) $(FINAL_IMPORT_LIB) $(DESTDIR)$(libdir) michael@0: ifneq ($(IMPORT_LIB),$(FINAL_IMPORT_LIB)) michael@0: cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(IMPORT_LIB)) michael@0: endif michael@0: ifneq ($(MIDDLE_IMPORT_LIB),$(FINAL_IMPORT_LIB)) michael@0: cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(MIDDLE_IMPORT_LIB)) michael@0: endif michael@0: endif michael@0: endif michael@0: michael@0: dist-local: michael@0: michael@0: clean-local: michael@0: test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES) michael@0: $(RMV) $(OBJECTS) $(STATIC_OBJECTS) $(ALL_TARGETS) michael@0: michael@0: distclean-local: clean-local michael@0: $(RMV) Makefile michael@0: michael@0: check-local: michael@0: michael@0: Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status michael@0: cd $(top_builddir) \ michael@0: && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status michael@0: michael@0: ifneq ($(ENABLE_STATIC),) michael@0: $(TARGET): $(STATIC_OBJECTS) michael@0: $(AR) $(ARFLAGS) $(AR_OUTOPT)$@ $^ michael@0: $(RANLIB) $@ michael@0: endif michael@0: michael@0: ifneq ($(ENABLE_SHARED),) michael@0: $(SHARED_OBJECT): $(OBJECTS) michael@0: $(SHLIB.c) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS) michael@0: ifeq ($(ENABLE_RPATH),YES) michael@0: ifneq ($(wildcard $(libdir)/$(MIDDLE_SO_TARGET)),) michael@0: $(warning RPATH warning: --enable-rpath means test programs may use existing $(libdir)/$(MIDDLE_SO_TARGET)) michael@0: endif michael@0: endif michael@0: michael@0: ifeq ($(OS390BATCH),1) michael@0: $(BATCH_STUB_TARGET): $(OBJECTS) michael@0: $(SHLIB.c) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS) michael@0: endif # OS390BATCH michael@0: endif # ENABLE_SHARED michael@0: michael@0: ifeq (,$(MAKECMDGOALS)) michael@0: -include $(DEPS) michael@0: else michael@0: ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),) michael@0: -include $(DEPS) michael@0: endif michael@0: endif michael@0: