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