2001-08-16 23:29:26 +00:00
|
|
|
#******************************************************************************
|
|
|
|
#
|
|
|
|
# Copyright (C) 1999, International Business Machines
|
|
|
|
# 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'
|
|
|
|
CLEANFILES = *~ $(DEPS)
|
|
|
|
|
|
|
|
## Target information
|
|
|
|
|
|
|
|
ifneq ($(ENABLE_STATIC),)
|
2002-02-12 20:04:52 +00:00
|
|
|
TARGET = lib$(ICUPREFIX)data$(ICULIBSUFFIX).a
|
2001-08-16 23:29:26 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(ENABLE_SHARED),)
|
2002-02-12 20:04:52 +00:00
|
|
|
SO_TARGET = lib$(ICUPREFIX)data$(ICULIBSUFFIX).$(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)
|
|
|
|
|
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),)
|
|
|
|
$(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir)/$(TARGET)
|
|
|
|
endif
|
|
|
|
ifneq ($(ENABLE_SHARED),)
|
2002-02-16 08:03:44 +00:00
|
|
|
$(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir)/$(FINAL_SO_TARGET)
|
|
|
|
ifneq ($(FINAL_SO_TARGET),$(SO_TARGET))
|
|
|
|
cd $(DESTDIR)$(libdir) && $(RM) $(MIDDLE_SO_TARGET) && ln -s $(FINAL_SO_TARGET) $(MIDDLE_SO_TARGET)
|
|
|
|
cd $(DESTDIR)$(libdir) && $(RM) $(SO_TARGET) && ln -s $(FINAL_SO_TARGET) $(SO_TARGET)
|
|
|
|
endif
|
2001-08-29 22:08:28 +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)
|
2001-08-16 23:29:26 +00:00
|
|
|
$(SHLIB.c) $(LD_SONAME) -o $@ $^ $(LIBS)
|
|
|
|
|
2001-11-06 23:16:07 +00:00
|
|
|
ifeq ($(OS390BATCH),1)
|
2001-11-07 22:53:23 +00:00
|
|
|
$(BATCH_STUB_TARGET): $(OBJECTS)
|
2001-11-06 23:16:07 +00:00
|
|
|
$(SHLIB.c) $(LD_SONAME) -o $@ $^ $(LIBS)
|
|
|
|
endif # OS390BATCH
|
2001-08-16 23:29:26 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq (,$(MAKECMDGOALS))
|
|
|
|
-include $(DEPS)
|
|
|
|
else
|
|
|
|
ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
|
|
|
|
-include $(DEPS)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|