2001-08-16 23:29:26 +00:00
|
|
|
#******************************************************************************
|
|
|
|
#
|
2004-03-26 01:22:25 +00:00
|
|
|
# Copyright (C) 1999-2004, 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
|
|
|
|
|
|
|
|
## 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
|
|
|
|
|
|
|
|
ifneq ($(ENABLE_SHARED),)
|
2004-05-11 04:51:53 +00:00
|
|
|
SO_TARGET = $(STUBDATA_LIBDIR)$(LIBICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX)$(STUB_SUFFIX).$(SO)
|
2001-12-21 20:10:23 +00:00
|
|
|
ALL_SO_TARGETS = $(SO_TARGET) $(MIDDLE_SO_TARGET) $(FINAL_SO_TARGET) $(BATCH_STUB_TARGET)
|
2001-08-16 23:29:26 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ALL_TARGETS = $(TARGET) $(ALL_SO_TARGETS)
|
|
|
|
|
|
|
|
DYNAMICCPPFLAGS = $(SHAREDLIBCPPFLAGS)
|
|
|
|
DYNAMICCFLAGS = $(SHAREDLIBCFLAGS)
|
|
|
|
DYNAMICCXXFLAGS = $(SHAREDLIBCXXFLAGS)
|
|
|
|
|
2004-05-06 05:56:22 +00:00
|
|
|
LDFLAGS += $(LDFLAGSICUDT)
|
2002-05-13 23:51:50 +00:00
|
|
|
CPPFLAGS += -I$(top_builddir)/common -I$(top_srcdir)/common $(LIBCPPFLAGS)
|
2001-08-16 23:29:26 +00:00
|
|
|
|
|
|
|
OBJECTS = stubdata.o
|
|
|
|
|
|
|
|
STATIC_OBJECTS = $(OBJECTS:.o=.$(STATIC_O))
|
|
|
|
|
|
|
|
HEADERS =
|
|
|
|
|
|
|
|
DEPS = $(OBJECTS:.o=.d)
|
|
|
|
|
|
|
|
|
|
|
|
## List of phony targets
|
|
|
|
.PHONY : all all-local install install-local clean clean-local \
|
|
|
|
distclean distclean-local dist dist-local check check-local
|
|
|
|
|
|
|
|
## 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
|
2001-08-29 22:08:28 +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-03-26 17:57:09 +00:00
|
|
|
cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(IMPORT_LIB))
|
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
|
2001-08-16 23:29:26 +00:00
|
|
|
|
|
|
|
dist-local:
|
|
|
|
|
|
|
|
clean-local:
|
|
|
|
test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
|
|
|
|
$(RMV) $(OBJECTS) $(STATIC_OBJECTS) $(ALL_TARGETS)
|
|
|
|
|
|
|
|
check-local:
|
|
|
|
|
|
|
|
distclean-local: clean-local
|
|
|
|
$(RMV) Makefile
|
|
|
|
|
|
|
|
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),)
|
|
|
|
$(TARGET): $(TARGET)($(STATIC_OBJECTS))
|
|
|
|
$(RANLIB) $@
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(ENABLE_SHARED),)
|
2001-12-21 20:10:23 +00:00
|
|
|
$(FINAL_SO_TARGET): $(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
|
2001-08-16 23:29:26 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq (,$(MAKECMDGOALS))
|
|
|
|
-include $(DEPS)
|
|
|
|
else
|
|
|
|
ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
|
|
|
|
-include $(DEPS)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|