2001-08-16 23:29:26 +00:00
|
|
|
#******************************************************************************
|
|
|
|
#
|
2007-07-13 08:10:41 +00:00
|
|
|
# Copyright (C) 1999-2007, International Business Machines
|
2001-08-16 23:29:26 +00:00
|
|
|
# Corporation and others. All Rights Reserved.
|
|
|
|
#
|
|
|
|
#******************************************************************************
|
2002-04-19 02:19:24 +00:00
|
|
|
## Makefile.in for ICU stubdata
|
2001-08-16 23:29:26 +00:00
|
|
|
## Stephen F. Booth
|
|
|
|
|
2002-04-19 02:19:24 +00:00
|
|
|
## Source directory information
|
2001-08-16 23:29:26 +00:00
|
|
|
srcdir = @srcdir@
|
|
|
|
top_srcdir = @top_srcdir@
|
|
|
|
|
|
|
|
top_builddir = ..
|
|
|
|
|
2002-04-19 02:19:24 +00:00
|
|
|
## All the flags and other definitions are included here.
|
2001-08-16 23:29:26 +00:00
|
|
|
include $(top_builddir)/icudefs.mk
|
|
|
|
|
|
|
|
## Build directory information
|
|
|
|
subdir = stubdata
|
|
|
|
|
2005-12-02 10:21:39 +00:00
|
|
|
## Extra files to remove for 'make clean'
|
2004-04-05 21:25:47 +00:00
|
|
|
CLEANFILES = *~ $(DEPS) $(IMPORT_LIB) $(MIDDLE_IMPORT_LIB) $(FINAL_IMPORT_LIB)
|
2001-08-16 23:29:26 +00:00
|
|
|
|
|
|
|
## Target information
|
|
|
|
|
2004-04-19 17:32:30 +00:00
|
|
|
TARGET_STUBNAME=$(DATA_STUBNAME)
|
2003-03-19 01:56:39 +00:00
|
|
|
|
2001-08-16 23:29:26 +00:00
|
|
|
ifneq ($(ENABLE_STATIC),)
|
2004-05-11 04:51:53 +00:00
|
|
|
TARGET = $(STUBDATA_LIBDIR)$(LIBSICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(A)
|
2001-08-16 23:29:26 +00:00
|
|
|
endif
|
|
|
|
|
2005-09-08 18:11:32 +00:00
|
|
|
|
2001-08-16 23:29:26 +00:00
|
|
|
ifneq ($(ENABLE_SHARED),)
|
2004-05-11 04:51:53 +00:00
|
|
|
SO_TARGET = $(STUBDATA_LIBDIR)$(LIBICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX)$(STUB_SUFFIX).$(SO)
|
2005-09-08 18:11:32 +00:00
|
|
|
ALL_SO_TARGETS = $(FINAL_SO_TARGET) $(MIDDLE_SO_TARGET) $(SO_TARGET) $(BATCH_STUB_TARGET) $(SHARED_OBJECT)
|
2001-08-16 23:29:26 +00:00
|
|
|
endif
|
|
|
|
|
2005-09-08 18:11:32 +00:00
|
|
|
|
2001-08-16 23:29:26 +00:00
|
|
|
ALL_TARGETS = $(TARGET) $(ALL_SO_TARGETS)
|
|
|
|
|
|
|
|
DYNAMICCPPFLAGS = $(SHAREDLIBCPPFLAGS)
|
|
|
|
DYNAMICCFLAGS = $(SHAREDLIBCFLAGS)
|
|
|
|
DYNAMICCXXFLAGS = $(SHAREDLIBCXXFLAGS)
|
|
|
|
|
2005-12-02 10:21:39 +00:00
|
|
|
ifneq ($(top_builddir),$(top_srcdir))
|
|
|
|
CPPFLAGS += -I$(top_builddir)/common
|
|
|
|
endif
|
|
|
|
CPPFLAGS += -I$(top_srcdir)/common $(LIBCPPFLAGS)
|
2004-05-06 05:56:22 +00:00
|
|
|
LDFLAGS += $(LDFLAGSICUDT)
|
2001-08-16 23:29:26 +00:00
|
|
|
|
|
|
|
OBJECTS = stubdata.o
|
|
|
|
|
2005-12-02 10:21:39 +00:00
|
|
|
## Header files to install
|
2001-08-16 23:29:26 +00:00
|
|
|
HEADERS =
|
|
|
|
|
2005-12-02 10:21:39 +00:00
|
|
|
STATIC_OBJECTS = $(OBJECTS:.o=.$(STATIC_O))
|
|
|
|
|
2001-08-16 23:29:26 +00:00
|
|
|
DEPS = $(OBJECTS:.o=.d)
|
|
|
|
|
2005-12-02 10:21:39 +00:00
|
|
|
-include Makefile.local
|
2001-08-16 23:29:26 +00:00
|
|
|
|
|
|
|
## List of phony targets
|
2005-12-02 10:21:39 +00:00
|
|
|
.PHONY : all all-local install install-local clean clean-local \
|
|
|
|
distclean distclean-local install-library dist \
|
|
|
|
dist-local check check-local
|
2001-08-16 23:29:26 +00:00
|
|
|
|
|
|
|
## Clear suffix list
|
|
|
|
.SUFFIXES :
|
|
|
|
|
|
|
|
## List of standard targets
|
|
|
|
all: all-local
|
|
|
|
install: install-local
|
|
|
|
clean: clean-local
|
|
|
|
distclean : distclean-local
|
|
|
|
dist: dist-local
|
|
|
|
check: all check-local
|
|
|
|
|
|
|
|
all-local: $(ALL_TARGETS)
|
|
|
|
|
2001-08-29 22:08:28 +00:00
|
|
|
install-local: install-library
|
|
|
|
|
|
|
|
install-library: all-local
|
|
|
|
$(MKINSTALLDIRS) $(DESTDIR)$(libdir)
|
|
|
|
ifneq ($(ENABLE_STATIC),)
|
2004-03-26 18:35:15 +00:00
|
|
|
$(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir)
|
2001-08-29 22:08:28 +00:00
|
|
|
endif
|
|
|
|
ifneq ($(ENABLE_SHARED),)
|
2004-03-26 18:35:15 +00:00
|
|
|
$(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir)
|
2002-02-16 08:03:44 +00:00
|
|
|
ifneq ($(FINAL_SO_TARGET),$(SO_TARGET))
|
2004-03-26 17:57:09 +00:00
|
|
|
cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(SO_TARGET))
|
2003-04-10 17:42:21 +00:00
|
|
|
ifneq ($(FINAL_SO_TARGET),$(MIDDLE_SO_TARGET))
|
2004-03-26 17:57:09 +00:00
|
|
|
cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(MIDDLE_SO_TARGET))
|
2003-04-10 17:42:21 +00:00
|
|
|
endif
|
2002-02-16 08:03:44 +00:00
|
|
|
endif
|
2003-03-19 01:56:39 +00:00
|
|
|
ifneq ($(IMPORT_LIB_EXT),)
|
2004-03-26 18:35:15 +00:00
|
|
|
$(INSTALL-L) $(FINAL_IMPORT_LIB) $(DESTDIR)$(libdir)
|
2004-10-21 00:08:48 +00:00
|
|
|
ifneq ($(IMPORT_LIB),$(FINAL_IMPORT_LIB))
|
2004-03-26 17:57:09 +00:00
|
|
|
cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(IMPORT_LIB))
|
2004-10-21 00:08:48 +00:00
|
|
|
endif
|
2003-04-10 17:42:21 +00:00
|
|
|
ifneq ($(MIDDLE_IMPORT_LIB),$(FINAL_IMPORT_LIB))
|
2004-03-26 17:57:09 +00:00
|
|
|
cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(MIDDLE_IMPORT_LIB))
|
2003-04-10 17:42:21 +00:00
|
|
|
endif
|
2003-03-19 01:56:39 +00:00
|
|
|
endif
|
2007-07-13 17:59:16 +00:00
|
|
|
endif
|
2001-08-16 23:29:26 +00:00
|
|
|
|
|
|
|
dist-local:
|
|
|
|
|
|
|
|
clean-local:
|
|
|
|
test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
|
|
|
|
$(RMV) $(OBJECTS) $(STATIC_OBJECTS) $(ALL_TARGETS)
|
|
|
|
|
|
|
|
distclean-local: clean-local
|
|
|
|
$(RMV) Makefile
|
|
|
|
|
2005-12-02 10:21:39 +00:00
|
|
|
check-local:
|
|
|
|
|
2001-08-16 23:29:26 +00:00
|
|
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
|
|
|
cd $(top_builddir) \
|
|
|
|
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
|
|
|
|
2002-02-25 08:27:10 +00:00
|
|
|
../common/unicode/platform.h: $(srcdir)/../common/unicode/platform.h.in $(top_builddir)/config.status
|
|
|
|
cd $(top_builddir) \
|
|
|
|
&& CONFIG_FILES=common/unicode/platform.h CONFIG_HEADERS= $(SHELL) ./config.status
|
|
|
|
|
2001-08-16 23:29:26 +00:00
|
|
|
ifneq ($(ENABLE_STATIC),)
|
2007-07-13 08:10:41 +00:00
|
|
|
$(TARGET): $(STATIC_OBJECTS)
|
|
|
|
$(AR) $(ARFLAGS) $(AR_OUTOPT)$@ $^
|
2001-08-16 23:29:26 +00:00
|
|
|
$(RANLIB) $@
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(ENABLE_SHARED),)
|
2005-09-08 18:11:32 +00:00
|
|
|
$(SHARED_OBJECT): $(OBJECTS)
|
2003-02-11 00:13:48 +00:00
|
|
|
$(SHLIB.c) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS)
|
2001-08-16 23:29:26 +00:00
|
|
|
|
2001-11-06 23:16:07 +00:00
|
|
|
ifeq ($(OS390BATCH),1)
|
2001-11-07 22:53:23 +00:00
|
|
|
$(BATCH_STUB_TARGET): $(OBJECTS)
|
2003-02-11 00:13:48 +00:00
|
|
|
$(SHLIB.c) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS)
|
2001-11-06 23:16:07 +00:00
|
|
|
endif # OS390BATCH
|
2005-12-02 10:21:39 +00:00
|
|
|
endif # ENABLE_SHARED
|
2001-08-16 23:29:26 +00:00
|
|
|
|
|
|
|
ifeq (,$(MAKECMDGOALS))
|
|
|
|
-include $(DEPS)
|
|
|
|
else
|
|
|
|
ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
|
|
|
|
-include $(DEPS)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|