2001-09-19 23:43:16 +00:00
|
|
|
## ******************************************************************************
|
|
|
|
## *
|
|
|
|
## * Copyright (C) 1999-2000, International Business Machines
|
|
|
|
## * Corporation and others. All Rights Reserved.
|
|
|
|
## *
|
|
|
|
## *******************************************************************************
|
|
|
|
## Makefile.in for ICU - uconv
|
|
|
|
## Steven R. Loomis
|
|
|
|
|
|
|
|
srcdir=@srcdir@
|
|
|
|
top_srcdir=@top_srcdir@
|
|
|
|
|
|
|
|
top_builddir = ../..
|
|
|
|
subdir = extra/uconv
|
|
|
|
|
|
|
|
include $(top_builddir)/icudefs.mk
|
|
|
|
|
|
|
|
## Platform-specific setup
|
|
|
|
include @platform_make_fragment@
|
|
|
|
|
|
|
|
# RESSRC comes from resfiles.mk
|
|
|
|
include $(srcdir)/resfiles.mk
|
|
|
|
|
|
|
|
RESDIR=uconvmsg
|
|
|
|
RESFILES=$(RESSRC:%.txt=$(RESDIR)/%.res)
|
|
|
|
|
2001-11-10 06:14:23 +00:00
|
|
|
##
|
|
|
|
|
|
|
|
SECTION = 1
|
|
|
|
|
|
|
|
ALL_MAN_FILES = $(TARGET).$(SECTION)
|
|
|
|
|
2001-09-19 23:43:16 +00:00
|
|
|
## Extra files to remove for 'make clean'
|
2001-10-12 16:42:24 +00:00
|
|
|
CLEANFILES = *~ $(DEPS)
|
2001-09-19 23:43:16 +00:00
|
|
|
|
|
|
|
## Target information
|
|
|
|
TARGET = uconv
|
|
|
|
|
|
|
|
DEFS = @DEFS@
|
2001-09-20 23:29:45 +00:00
|
|
|
CPPFLAGS = @CPPFLAGS@ -I$(top_builddir)/common -I$(top_srcdir)/common -I$(top_srcdir)/i18n -I$(srcdir)/../toolutil
|
2001-09-19 23:43:16 +00:00
|
|
|
CFLAGS = @CFLAGS@
|
|
|
|
CXXFLAGS = @CXXFLAGS@
|
|
|
|
ENABLE_RPATH = @ENABLE_RPATH@
|
|
|
|
ifeq ($(ENABLE_RPATH),YES)
|
|
|
|
RPATHLDFLAGS = $(LD_RPATH)$(LD_RPATH_PRE)$(libdir)
|
|
|
|
endif
|
|
|
|
LDFLAGS = @LDFLAGS@ $(RPATHLDFLAGS)
|
|
|
|
LIBS = $(LIBICUI18N) $(LIBICUUC) @LIBS@ @LIB_M@
|
|
|
|
|
|
|
|
OBJECTS = uconv.o uwmsg.o
|
|
|
|
|
|
|
|
DEPS = $(OBJECTS:.o=.d)
|
|
|
|
|
|
|
|
## List of phony targets
|
|
|
|
.PHONY : all all-local install install-local clean clean-local \
|
2001-11-10 06:14:23 +00:00
|
|
|
distclean distclean-local dist dist-local check check-local resfiles package-resfiles install-resfiles install-man
|
2001-09-19 23:43:16 +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: check-local
|
|
|
|
|
2001-11-10 06:14:23 +00:00
|
|
|
all-local: $(TARGET) resfiles $(ALL_MAN_FILES)
|
2001-09-19 23:43:16 +00:00
|
|
|
|
2001-11-10 06:14:23 +00:00
|
|
|
install-local: all-local install-target install-resfiles install-man
|
2001-09-19 23:43:16 +00:00
|
|
|
|
|
|
|
install-target: all-local
|
|
|
|
$(MKINSTALLDIRS) $(DESTDIR)$(bindir)
|
|
|
|
$(INSTALL) $(TARGET) $(DESTDIR)$(bindir)/$(TARGET)
|
|
|
|
|
|
|
|
dist-local:
|
|
|
|
|
|
|
|
clean-local:
|
2001-09-21 17:40:33 +00:00
|
|
|
test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES) $(RESFILES)
|
|
|
|
$(RMV) $(OBJECTS) $(TARGET)
|
|
|
|
$(RMV) $(RESDIR)
|
2001-09-19 23:43:16 +00:00
|
|
|
|
|
|
|
distclean-local: clean-local
|
2001-09-21 17:40:33 +00:00
|
|
|
$(RMV) Makefile $(DEPS)
|
2001-09-19 23:43:16 +00:00
|
|
|
|
|
|
|
check-local:
|
|
|
|
|
|
|
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
|
|
|
cd $(top_builddir) \
|
|
|
|
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
|
|
|
|
|
|
|
$(TARGET) : $(OBJECTS)
|
2001-10-22 21:28:55 +00:00
|
|
|
$(LINK.cc) -o $@ $^ $(LIBS)
|
2001-09-19 23:43:16 +00:00
|
|
|
|
2001-09-21 17:40:33 +00:00
|
|
|
resfiles: $(RESFILES) package-resfiles
|
|
|
|
|
|
|
|
package-resfiles: $(RESDIR)/$(RESDIR).lst
|
|
|
|
$(INVOKE) $(top_builddir)/tools/pkgdata/pkgdata -p $(RESDIR) -O $(top_builddir)/tools/pkgdata/icupkg.inc -m common -d uconvmsg -T $(RESDIR) $(RESDIR)/$(RESDIR).lst
|
2001-09-19 23:43:16 +00:00
|
|
|
|
|
|
|
$(RESDIR)/$(RESDIR).lst: Makefile $(srcdir)/resfiles.mk
|
|
|
|
@$(MKINSTALLDIRS) $(RESDIR)
|
|
|
|
@-$(RMV) $@
|
|
|
|
@for file in $(RESFILES); do \
|
|
|
|
echo `pwd`/$$file >> $@; \
|
|
|
|
done;
|
|
|
|
|
2001-09-21 17:40:33 +00:00
|
|
|
install-resfiles: $(RESFILES)
|
2001-11-10 02:21:37 +00:00
|
|
|
$(MKINSTALLDIRS) $(DESTDIR)$(ICUDATA_DIR)
|
|
|
|
$(INVOKE) $(top_builddir)/tools/pkgdata/pkgdata -p $(RESDIR) -O $(top_builddir)/tools/pkgdata/icupkg.inc -m common -d uconvmsg -I $(DESTDIR)$(ICUDATA_DIR) -T $(RESDIR) $(RESDIR)/$(RESDIR).lst
|
2001-09-19 23:43:16 +00:00
|
|
|
|
|
|
|
$(RESDIR)/%.res: $(srcdir)/%.txt
|
|
|
|
@$(MKINSTALLDIRS) $(RESDIR)
|
2001-11-05 18:09:30 +00:00
|
|
|
$(INVOKE) $(top_builddir)/tools/genrb/genrb -eUTF-8 -d $(RESDIR) $^
|
2001-09-19 23:43:16 +00:00
|
|
|
|
2001-11-10 06:14:23 +00:00
|
|
|
install-man: $(ALL_MAN_FILES)
|
|
|
|
$(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
|
2001-11-12 05:02:22 +00:00
|
|
|
$(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION)
|
2001-11-10 06:14:23 +00:00
|
|
|
|
|
|
|
%.$(SECTION): $(srcdir)/%.$(SECTION).in
|
|
|
|
cd $(top_builddir) \
|
|
|
|
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
2001-10-16 17:11:29 +00:00
|
|
|
|
|
|
|
# Don't do this. This is a problem when changing platforms.
|
|
|
|
#ifneq ($(MAKECMDGOALS),distclean)
|
|
|
|
#-include $(DEPS)
|
|
|
|
#endif
|
2001-09-19 23:43:16 +00:00
|
|
|
|