2000-01-13 23:54:23 +00:00
|
|
|
#******************************************************************************
|
|
|
|
#
|
|
|
|
# Copyright (C) 1999, International Business Machines
|
|
|
|
# Corporation and others. All Rights Reserved.
|
|
|
|
#
|
|
|
|
#******************************************************************************
|
1999-08-16 21:50:52 +00:00
|
|
|
## Makefile.in for ICU - extra/ustdio/libustdio.so
|
|
|
|
## Stephen F. Booth
|
|
|
|
|
|
|
|
## Shell to use
|
|
|
|
SHELL = @SHELL@
|
|
|
|
|
|
|
|
## Install directory information
|
|
|
|
srcdir = @srcdir@
|
|
|
|
top_srcdir = @top_srcdir@
|
|
|
|
prefix = @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
|
|
|
|
bindir = @bindir@
|
|
|
|
sbindir = @sbindir@
|
|
|
|
datadir = @datadir@
|
|
|
|
libdir = @libdir@
|
|
|
|
includedir = @includedir@
|
|
|
|
|
|
|
|
pkgdatadir = $(datadir)/@PACKAGE@
|
|
|
|
pkglibdir = $(libdir)/@PACKAGE@
|
|
|
|
pkgincludedir = $(includedir)/@PACKAGE@
|
|
|
|
|
|
|
|
## Install program information
|
|
|
|
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
|
|
|
|
|
|
|
INSTALL = @INSTALL@
|
|
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
|
|
|
|
|
|
## Compiler/tools information
|
|
|
|
CC = @CC@
|
|
|
|
CXX = @CXX@
|
|
|
|
PACKAGE = @PACKAGE@
|
|
|
|
VERSION = @VERSION@
|
2000-09-15 05:07:43 +00:00
|
|
|
SO_TARGET_VERSION = @VERSION@
|
|
|
|
SO_TARGET_VERSION_MAJOR = @VERSION_MAJOR@
|
1999-08-16 21:50:52 +00:00
|
|
|
|
|
|
|
## Platform-specific setup
|
|
|
|
@host_frag@
|
|
|
|
|
|
|
|
## Build directory information
|
|
|
|
top_builddir = ../..
|
|
|
|
subdir = extra/ustdio
|
|
|
|
|
|
|
|
## Extra files to remove for 'make clean'
|
2000-10-02 23:37:16 +00:00
|
|
|
CLEANFILES = *~ $(DEPS)
|
1999-08-16 21:50:52 +00:00
|
|
|
|
|
|
|
## Target information
|
2000-09-22 22:58:36 +00:00
|
|
|
|
|
|
|
ENABLE_STATIC = @ENABLE_STATIC@
|
|
|
|
ENABLE_SHARED = @ENABLE_SHARED@
|
|
|
|
|
|
|
|
ifneq ($(ENABLE_STATIC),)
|
|
|
|
TARGET = libustdio.a
|
|
|
|
RANLIB = @RANLIB@
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(ENABLE_SHARED),)
|
2000-09-15 05:07:43 +00:00
|
|
|
SO_TARGET = libustdio.$(SO)
|
|
|
|
ALL_SO_TARGETS = $(SO_TARGET) $(MIDDLE_SO_TARGET) $(FINAL_SO_TARGET)
|
2000-09-22 22:58:36 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ALL_TARGETS = $(TARGET) $(ALL_SO_TARGETS)
|
1999-08-16 21:50:52 +00:00
|
|
|
|
|
|
|
DEFS = @DEFS@
|
2000-02-07 21:00:53 +00:00
|
|
|
CPPFLAGS = @CPPFLAGS@ -I$(top_builddir)/common -I$(top_srcdir)/common -I$(top_srcdir)/i18n
|
1999-08-16 21:50:52 +00:00
|
|
|
CFLAGS = @CFLAGS@
|
|
|
|
CXXFLAGS = @CXXFLAGS@
|
|
|
|
LDFLAGS = @LDFLAGS@ \
|
|
|
|
$(LD_RPATH)$(LD_RPATH_PRE)$(libdir)@ld_rpath_suf@$(LD_RPATH_PRE)$(top_builddir)/common@ld_rpath_suf@$(LD_RPATH_PRE)$(top_builddir)/i18n
|
1999-09-03 22:08:47 +00:00
|
|
|
LIBS = $(LIBICU-UC) $(LIBICU-I18N) @LIBS@
|
1999-08-16 21:50:52 +00:00
|
|
|
|
|
|
|
OBJECTS = locbund.o loccache.o ufile.o ufmt_cmn.o uprintf.o uprntf_p.o \
|
|
|
|
uscanf.o uscanf_p.o uscanset.o ustdio.o
|
|
|
|
|
2000-03-02 20:26:02 +00:00
|
|
|
HEADERS = $(srcdir)/unicode/*.h
|
1999-10-11 17:18:23 +00:00
|
|
|
|
1999-08-16 21:50:52 +00:00
|
|
|
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
|
2000-08-01 01:55:54 +00:00
|
|
|
check: all check-local
|
1999-08-16 21:50:52 +00:00
|
|
|
|
2000-09-22 22:58:36 +00:00
|
|
|
all-local: $(ALL_TARGETS)
|
1999-08-16 21:50:52 +00:00
|
|
|
|
1999-10-11 17:18:23 +00:00
|
|
|
install-local: all-local install-headers install-library
|
|
|
|
|
|
|
|
install-library: all-local
|
2000-09-22 22:58:36 +00:00
|
|
|
$(mkinstalldirs) $(DESTDIR)$(libdir)
|
2000-09-27 22:05:50 +00:00
|
|
|
ifneq ($(ENABLE_STATIC),)
|
2000-09-22 22:58:36 +00:00
|
|
|
$(INSTALL-S) $(TARGET) $(DESTDIR)$(libdir)/$(TARGET)
|
|
|
|
endif
|
|
|
|
ifneq ($(ENABLE_SHARED),)
|
2000-09-15 05:07:43 +00:00
|
|
|
$(INSTALL-S) $(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
|
2000-09-22 22:58:36 +00:00
|
|
|
endif
|
1999-10-11 17:18:23 +00:00
|
|
|
|
|
|
|
install-headers:
|
2000-03-10 22:55:19 +00:00
|
|
|
$(mkinstalldirs) $(DESTDIR)$(includedir)/unicode
|
2000-03-02 20:26:02 +00:00
|
|
|
@for file in $(HEADERS); do \
|
2000-03-10 22:55:19 +00:00
|
|
|
echo " $(INSTALL_DATA) $$file $(DESTDIR)$(includedir)/unicode"; \
|
|
|
|
$(INSTALL_DATA) $$file $(DESTDIR)$(includedir)/unicode || exit; \
|
1999-10-11 17:18:23 +00:00
|
|
|
done
|
|
|
|
|
1999-08-16 21:50:52 +00:00
|
|
|
|
|
|
|
dist-local:
|
|
|
|
|
|
|
|
clean-local:
|
2000-05-15 22:32:11 +00:00
|
|
|
test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
|
2000-09-22 22:58:36 +00:00
|
|
|
$(RMV) $(OBJECTS) $(ALL_TARGETS)
|
1999-08-16 21:50:52 +00:00
|
|
|
|
|
|
|
distclean-local: clean-local
|
2000-10-02 23:37:16 +00:00
|
|
|
$(RMV) Makefile
|
1999-08-16 21:50:52 +00:00
|
|
|
|
|
|
|
check-local:
|
|
|
|
|
|
|
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
|
|
|
cd $(top_builddir) \
|
|
|
|
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
|
|
|
|
2000-09-22 22:58:36 +00:00
|
|
|
ifneq ($(ENABLE_STATIC),)
|
|
|
|
$(TARGET): $(TARGET)($(OBJECTS))
|
|
|
|
$(RANLIB) $@
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(ENABLE_SHARED),)
|
2000-09-15 05:07:43 +00:00
|
|
|
$(FINAL_SO_TARGET): $(OBJECTS)
|
|
|
|
$(SHLIB.c) $(LD_SONAME) -o $@ $^ $(LIBS)
|
2000-09-22 22:58:36 +00:00
|
|
|
endif
|
1999-08-16 21:50:52 +00:00
|
|
|
|
2000-04-13 22:08:07 +00:00
|
|
|
ifeq (,$(MAKECMDGOALS))
|
|
|
|
-include $(DEPS)
|
|
|
|
else
|
2000-04-05 22:14:24 +00:00
|
|
|
ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
|
1999-08-16 21:50:52 +00:00
|
|
|
-include $(DEPS)
|
|
|
|
endif
|
2000-04-13 22:08:07 +00:00
|
|
|
endif
|