OLD | NEW |
(Empty) | |
| 1 #****************************************************************************** |
| 2 # |
| 3 # Copyright (C) 1999-2007, International Business Machines |
| 4 # Corporation and others. All Rights Reserved. |
| 5 # |
| 6 #****************************************************************************** |
| 7 ## Makefile.in for ICU stubdata |
| 8 ## Stephen F. Booth |
| 9 |
| 10 ## Source directory information |
| 11 srcdir = @srcdir@ |
| 12 top_srcdir = @top_srcdir@ |
| 13 |
| 14 top_builddir = .. |
| 15 |
| 16 ## All the flags and other definitions are included here. |
| 17 include $(top_builddir)/icudefs.mk |
| 18 |
| 19 ## Build directory information |
| 20 subdir = stubdata |
| 21 |
| 22 ## Extra files to remove for 'make clean' |
| 23 CLEANFILES = *~ $(DEPS) $(IMPORT_LIB) $(MIDDLE_IMPORT_LIB) $(FINAL_IMPORT_LIB) |
| 24 |
| 25 ## Target information |
| 26 |
| 27 TARGET_STUBNAME=$(DATA_STUBNAME) |
| 28 |
| 29 ifneq ($(ENABLE_STATIC),) |
| 30 TARGET = $(STUBDATA_LIBDIR)$(LIBSICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(A) |
| 31 endif |
| 32 |
| 33 |
| 34 ifneq ($(ENABLE_SHARED),) |
| 35 SO_TARGET = $(STUBDATA_LIBDIR)$(LIBICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX)$(STUB_S
UFFIX).$(SO) |
| 36 ALL_SO_TARGETS = $(FINAL_SO_TARGET) $(MIDDLE_SO_TARGET) $(SO_TARGET) $(BATCH_STU
B_TARGET) $(SHARED_OBJECT) |
| 37 endif |
| 38 |
| 39 |
| 40 ALL_TARGETS = $(TARGET) $(ALL_SO_TARGETS) |
| 41 |
| 42 DYNAMICCPPFLAGS = $(SHAREDLIBCPPFLAGS) |
| 43 DYNAMICCFLAGS = $(SHAREDLIBCFLAGS) |
| 44 DYNAMICCXXFLAGS = $(SHAREDLIBCXXFLAGS) |
| 45 |
| 46 ifneq ($(top_builddir),$(top_srcdir)) |
| 47 CPPFLAGS += -I$(top_builddir)/common |
| 48 endif |
| 49 CPPFLAGS += -I$(top_srcdir)/common $(LIBCPPFLAGS) |
| 50 LDFLAGS += $(LDFLAGSICUDT) |
| 51 |
| 52 OBJECTS = stubdata.o |
| 53 |
| 54 ## Header files to install |
| 55 HEADERS = |
| 56 |
| 57 STATIC_OBJECTS = $(OBJECTS:.o=.$(STATIC_O)) |
| 58 |
| 59 DEPS = $(OBJECTS:.o=.d) |
| 60 |
| 61 -include Makefile.local |
| 62 |
| 63 ## List of phony targets |
| 64 .PHONY : all all-local install install-local clean clean-local \ |
| 65 distclean distclean-local install-library dist \ |
| 66 dist-local check check-local |
| 67 |
| 68 ## Clear suffix list |
| 69 .SUFFIXES : |
| 70 |
| 71 ## List of standard targets |
| 72 all: all-local |
| 73 install: install-local |
| 74 clean: clean-local |
| 75 distclean : distclean-local |
| 76 dist: dist-local |
| 77 check: all check-local |
| 78 |
| 79 all-local: $(ALL_TARGETS) |
| 80 |
| 81 install-local: install-library |
| 82 |
| 83 install-library: all-local |
| 84 $(MKINSTALLDIRS) $(DESTDIR)$(libdir) |
| 85 ifneq ($(ENABLE_STATIC),) |
| 86 $(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir) |
| 87 endif |
| 88 ifneq ($(ENABLE_SHARED),) |
| 89 $(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir) |
| 90 ifneq ($(FINAL_SO_TARGET),$(SO_TARGET)) |
| 91 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(SO_TARGET)) && ln -s $(notdir
$(FINAL_SO_TARGET)) $(notdir $(SO_TARGET)) |
| 92 ifneq ($(FINAL_SO_TARGET),$(MIDDLE_SO_TARGET)) |
| 93 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_SO_TARGET)) && ln -s $
(notdir $(FINAL_SO_TARGET)) $(notdir $(MIDDLE_SO_TARGET)) |
| 94 endif |
| 95 endif |
| 96 ifneq ($(IMPORT_LIB_EXT),) |
| 97 $(INSTALL-L) $(FINAL_IMPORT_LIB) $(DESTDIR)$(libdir) |
| 98 ifneq ($(IMPORT_LIB),$(FINAL_IMPORT_LIB)) |
| 99 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(IMPORT_LIB)) && ln -s $(notdi
r $(FINAL_IMPORT_LIB)) $(notdir $(IMPORT_LIB)) |
| 100 endif |
| 101 ifneq ($(MIDDLE_IMPORT_LIB),$(FINAL_IMPORT_LIB)) |
| 102 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_IMPORT_LIB)) && ln -s
$(notdir $(FINAL_IMPORT_LIB)) $(notdir $(MIDDLE_IMPORT_LIB)) |
| 103 endif |
| 104 endif |
| 105 endif |
| 106 |
| 107 dist-local: |
| 108 |
| 109 clean-local: |
| 110 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES) |
| 111 $(RMV) $(OBJECTS) $(STATIC_OBJECTS) $(ALL_TARGETS) |
| 112 |
| 113 distclean-local: clean-local |
| 114 $(RMV) Makefile |
| 115 |
| 116 check-local: |
| 117 |
| 118 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
| 119 cd $(top_builddir) \ |
| 120 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status |
| 121 |
| 122 ../common/unicode/platform.h: $(srcdir)/../common/unicode/platform.h.in $(top_bu
ilddir)/config.status |
| 123 cd $(top_builddir) \ |
| 124 && CONFIG_FILES=common/unicode/platform.h CONFIG_HEADERS= $(SHELL) ./co
nfig.status |
| 125 |
| 126 ifneq ($(ENABLE_STATIC),) |
| 127 $(TARGET): $(STATIC_OBJECTS) |
| 128 $(AR) $(ARFLAGS) $(AR_OUTOPT)$@ $^ |
| 129 $(RANLIB) $@ |
| 130 endif |
| 131 |
| 132 ifneq ($(ENABLE_SHARED),) |
| 133 $(SHARED_OBJECT): $(OBJECTS) |
| 134 $(SHLIB.c) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS) |
| 135 |
| 136 ifeq ($(OS390BATCH),1) |
| 137 $(BATCH_STUB_TARGET): $(OBJECTS) |
| 138 $(SHLIB.c) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS) |
| 139 endif # OS390BATCH |
| 140 endif # ENABLE_SHARED |
| 141 |
| 142 ifeq (,$(MAKECMDGOALS)) |
| 143 -include $(DEPS) |
| 144 else |
| 145 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),) |
| 146 -include $(DEPS) |
| 147 endif |
| 148 endif |
| 149 |
OLD | NEW |