2003-02-28 21:32:28 +00:00
|
|
|
## Makefile.in for ICU - tools/genidna
|
2003-03-19 20:21:48 +00:00
|
|
|
## Copyright (c) 2001, International Business Machines Corporation and
|
2003-02-28 21:32:28 +00:00
|
|
|
## others. All Rights Reserved.
|
2003-03-19 20:21:48 +00:00
|
|
|
## Steven R. Loomis/Markus W. Scherer
|
2003-02-28 21:32:28 +00:00
|
|
|
|
|
|
|
## Source directory information
|
|
|
|
srcdir = @srcdir@
|
|
|
|
top_srcdir = @top_srcdir@
|
|
|
|
|
|
|
|
top_builddir = ../..
|
|
|
|
|
|
|
|
include $(top_builddir)/icudefs.mk
|
|
|
|
|
|
|
|
##
|
|
|
|
|
|
|
|
SECTION = 8
|
|
|
|
|
|
|
|
MAN_FILES = $(TARGET:$(EXEEXT)=).$(SECTION)
|
|
|
|
|
|
|
|
## Build directory information
|
|
|
|
subdir = tools/genidna
|
|
|
|
|
2003-03-19 20:21:48 +00:00
|
|
|
ICUDATADIR=$(top_builddir)/data
|
|
|
|
UNICODEDATADIR=$(top_srcdir)/../data/unidata
|
|
|
|
|
2003-02-28 21:32:28 +00:00
|
|
|
## Extra files to remove for 'make clean'
|
2003-03-19 20:21:48 +00:00
|
|
|
CLEANFILES = *~ $(DEPS) $(RES_FILES) $(TEST_FILES) $(MAN_FILES)
|
2003-02-28 21:32:28 +00:00
|
|
|
|
|
|
|
## Target information
|
|
|
|
TARGET = genidna$(EXEEXT)
|
|
|
|
|
2003-03-19 20:21:48 +00:00
|
|
|
CPPFLAGS += -I$(top_builddir)/common -I$(top_srcdir)/common -I$(srcdir)/../toolutil
|
|
|
|
LIBS = $(LIBICUTOOLUTIL) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M)
|
2003-02-28 21:32:28 +00:00
|
|
|
|
|
|
|
OBJECTS = genidna.o store.o
|
|
|
|
|
|
|
|
DEPS = $(OBJECTS:.o=.d)
|
|
|
|
|
|
|
|
## List of phony targets
|
2003-03-19 20:21:48 +00:00
|
|
|
.PHONY : all all-local install install-local clean clean-local \
|
2003-02-28 21:32:28 +00:00
|
|
|
distclean distclean-local dist dist-local check \
|
2003-03-19 20:21:48 +00:00
|
|
|
check-local build-data install-man
|
2003-02-28 21:32:28 +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: all check-local
|
|
|
|
|
2003-03-19 20:21:48 +00:00
|
|
|
all-local: $(TARGET) build-data $(MAN_FILES)
|
2003-02-28 21:32:28 +00:00
|
|
|
|
|
|
|
install-local: all-local install-man
|
|
|
|
$(MKINSTALLDIRS) $(DESTDIR)$(sbindir)
|
|
|
|
$(INSTALL) $(TARGET) $(DESTDIR)$(sbindir)/$(TARGET)
|
|
|
|
|
|
|
|
# man page
|
|
|
|
install-man: $(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
|
|
|
|
|
|
|
|
# build postscript and pdf formats
|
|
|
|
#$(TARGET).ps: $(TARGET).$(SECTION)
|
|
|
|
# groff -man < $< > $@
|
|
|
|
|
|
|
|
#$(TARGET).pdf: $(TARGET).ps
|
|
|
|
# ps2pdf $< $@
|
|
|
|
|
2003-03-19 20:21:48 +00:00
|
|
|
dist-local:
|
|
|
|
|
|
|
|
clean-local:
|
|
|
|
test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
|
|
|
|
$(RMV) $(TARGET) $(OBJECTS)
|
|
|
|
|
|
|
|
distclean-local: clean-local
|
|
|
|
$(RMV) Makefile
|
|
|
|
|
|
|
|
check-local: all-local
|
|
|
|
|
|
|
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
|
|
|
cd $(top_builddir) \
|
|
|
|
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
|
|
|
|
|
|
|
$(TARGET) : $(OBJECTS)
|
|
|
|
$(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
|
|
|
|
|
2003-02-28 21:32:28 +00:00
|
|
|
ifeq (,$(MAKECMDGOALS))
|
|
|
|
-include $(DEPS)
|
|
|
|
else
|
|
|
|
ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
|
|
|
|
-include $(DEPS)
|
|
|
|
endif
|
|
|
|
endif
|
2003-03-19 20:21:48 +00:00
|
|
|
|