OLD | NEW |
(Empty) | |
| 1 ## Makefile.in for ICU - tools/pkgdata |
| 2 ## Copyright (c) 1999-2009, International Business Machines Corporation and |
| 3 ## others. All Rights Reserved. |
| 4 ## Steven R. Loomis |
| 5 |
| 6 ## Source directory information |
| 7 srcdir = @srcdir@ |
| 8 top_srcdir = @top_srcdir@ |
| 9 |
| 10 top_builddir = ../.. |
| 11 |
| 12 include $(top_builddir)/icudefs.mk |
| 13 |
| 14 ## Build directory information |
| 15 subdir = tools/pkgdata |
| 16 |
| 17 TARGET_STUB_NAME = pkgdata |
| 18 |
| 19 SECTION = 1 |
| 20 |
| 21 MAN_FILES = $(TARGET_STUB_NAME).$(SECTION) |
| 22 |
| 23 ## Extra files to remove for 'make clean' |
| 24 CLEANFILES = *~ $(DEPS) $(MAN_FILES) |
| 25 |
| 26 ifneq ($(PKGDATA_DEFS),) |
| 27 DEFS += $(PKGDATA_DEFS) |
| 28 endif |
| 29 |
| 30 ## Target information |
| 31 TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT) |
| 32 |
| 33 ifneq ($(top_builddir),$(top_srcdir)) |
| 34 CPPFLAGS += -I$(top_builddir)/common |
| 35 endif |
| 36 CPPFLAGS += -I$(top_srcdir)/common -I$(srcdir)/../toolutil |
| 37 DEFS += -DUDATA_SO_SUFFIX=\".$(SO)\" -DSTATIC_O=\"$(STATIC_O)\" |
| 38 LIBS = $(LIBICUTOOLUTIL) $(LIBICUI18N) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M) |
| 39 |
| 40 OBJECTS = pkgdata.o pkgtypes.o |
| 41 |
| 42 DEPS = $(OBJECTS:.o=.d) |
| 43 |
| 44 ## List of phony targets |
| 45 .PHONY : all all-local install install-local clean clean-local \ |
| 46 distclean distclean-local dist dist-local check check-local install-man |
| 47 |
| 48 ## Clear suffix list |
| 49 .SUFFIXES : |
| 50 |
| 51 ## List of standard targets |
| 52 all: all-local |
| 53 install: install-local |
| 54 clean: clean-local |
| 55 distclean : distclean-local |
| 56 dist: dist-local |
| 57 check: all check-local |
| 58 |
| 59 all-local: $(TARGET) $(MAN_FILES) |
| 60 |
| 61 install-local: all-local install-man |
| 62 $(MKINSTALLDIRS) $(DESTDIR)$(bindir) |
| 63 $(INSTALL) $(TARGET) $(DESTDIR)$(bindir) |
| 64 |
| 65 install-man: $(MAN_FILES) |
| 66 $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION) |
| 67 $(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION) |
| 68 |
| 69 |
| 70 dist-local: |
| 71 |
| 72 clean-local: |
| 73 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES) |
| 74 $(RMV) $(TARGET) $(OBJECTS) |
| 75 |
| 76 distclean-local: clean-local |
| 77 $(RMV) Makefile |
| 78 |
| 79 check-local: all-local |
| 80 |
| 81 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
| 82 cd $(top_builddir) \ |
| 83 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status |
| 84 |
| 85 $(TARGET) : $(OBJECTS) |
| 86 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS) |
| 87 $(POST_BUILD_STEP) |
| 88 |
| 89 |
| 90 %.$(SECTION): $(srcdir)/%.$(SECTION).in |
| 91 cd $(top_builddir) \ |
| 92 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status |
| 93 |
| 94 |
| 95 ifeq (,$(MAKECMDGOALS)) |
| 96 -include $(DEPS) |
| 97 else |
| 98 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),) |
| 99 -include $(DEPS) |
| 100 endif |
| 101 endif |
| 102 |
OLD | NEW |