## ****************************************************************************** ## * ## * Copyright (C) 1999-2000, International Business Machines ## * Corporation and others. All Rights Reserved. ## * ## ******************************************************************************* ## Makefile.in for ICU - uconv ## Steven R. Loomis ## Set the following to 'YES' to statically link uconv's data. UCONVMSG_STATIC=YES ############################################################## srcdir=@srcdir@ top_srcdir=@top_srcdir@ top_builddir = ../.. subdir = extra/uconv include $(top_builddir)/icudefs.mk MSGNAME=uconvmsg ## Platform-specific setup include @platform_make_fragment@ # RESSRC comes from resfiles.mk include $(srcdir)/resfiles.mk RESDIR=$(MSGNAME) RESFILES=$(RESSRC:%.txt=$(RESDIR)/%.res) ## SECTION = 1 ALL_MAN_FILES = $(TARGET).$(SECTION) ## Extra files to remove for 'make clean' CLEANFILES = *~ $(DEPS) $(ALL_MAN_FILES) ## Target information TARGET = uconv DEFS = @DEFS@ CPPFLAGS = @CPPFLAGS@ -I$(top_builddir)/common -I$(top_srcdir)/common -I$(top_srcdir)/i18n -I$(srcdir)/../toolutil 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@ ifeq ($(UCONVMSG_STATIC),YES) LIBS += -L$(MSGNAME) -l$(MSGNAME) CPPFLAGS += -DUCONVMSG_STATIC=$(MSGNAME) -I$(RESDIR) UCONVMSG_LIB=$(RESDIR)/lib$(MSGNAME).a UCONVMSG_HDR=$(RESDIR)/$(MSGNAME).h endif OBJECTS = uconv.o uwmsg.o DEPS = $(OBJECTS:.o=.d) ## List of phony targets .PHONY : all all-local install install-local clean clean-local \ distclean resclean distclean-local dist dist-local check check-local resfiles package-resfiles install-resfiles install-man ## 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 all-local: $(TARGET) resfiles $(ALL_MAN_FILES) install-local: all-local install-target install-resfiles install-man install-target: all-local $(MKINSTALLDIRS) $(DESTDIR)$(bindir) $(INSTALL) $(TARGET) $(DESTDIR)$(bindir)/$(TARGET) dist-local: clean-local: resclean test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES) $(RESFILES) $(RMV) $(OBJECTS) $(TARGET) resclean: $(RMV) $(RESDIR) distclean-local: clean-local $(RMV) Makefile $(DEPS) check-local: Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status cd $(top_builddir) \ && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status pkgdata.inc: $(srcdir)/pkgdata.inc.in $(top_builddir)/config.status cd $(top_builddir) \ && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status $(TARGET) : $(OBJECTS) $(UCONVMSG_LIB) $(LINK.cc) -o $@ $^ $(LIBS) $(LDFLAGS) resfiles: $(RESFILES) package-resfiles ifeq ($(UCONVMSG_STATIC),YES) $(UCONVMSG_HDR) $(UCONVMSG_LIB): resfiles uconv.o: $(UCONVMSG_HDR) endif package-resfiles: $(RESDIR)/$(RESDIR).lst pkgdata.inc $(INVOKE) $(top_builddir)/tools/pkgdata/pkgdata -p $(RESDIR) -O pkgdata.inc -m static -d $(RESDIR) -T $(RESDIR) $(RESDIR)/$(RESDIR).lst $(RESDIR)/$(RESDIR).lst: Makefile pkgdata.inc $(srcdir)/resfiles.mk @$(MKINSTALLDIRS) $(RESDIR) @-$(RMV) $@ @for file in $(RESFILES); do \ echo `pwd`/$$file >> $@; \ done; ifneq ($(UCONVMSG_STATIC),YES) install-resfiles: $(RESFILES) $(MKINSTALLDIRS) $(DESTDIR)$(ICUDATA_DIR) $(INVOKE) $(top_builddir)/tools/pkgdata/pkgdata -p $(RESDIR) -O pkgdata.inc -m static -d $(RESDIR) -I $(DESTDIR)$(ICUDATA_DIR) -T $(RESDIR) $(RESDIR)/$(RESDIR).lst endif $(RESDIR)/%.res: $(srcdir)/%.txt @$(MKINSTALLDIRS) $(RESDIR) $(INVOKE) $(top_builddir)/tools/genrb/genrb -eUTF-8 -d $(RESDIR) $^ install-man: $(ALL_MAN_FILES) $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION) $(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION) %.$(SECTION): $(srcdir)/%.$(SECTION).in cd $(top_builddir) \ && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status # Don't do this. This is a problem when changing platforms. #ifneq ($(MAKECMDGOALS),distclean) #-include $(DEPS) #endif