]> git.saurik.com Git - apple/icu.git/blob - icuSources/tools/icuswap/Makefile.in
ICU-6.2.15.tar.gz
[apple/icu.git] / icuSources / tools / icuswap / Makefile.in
1 ## Makefile.in for ICU - tools/icuswap
2 ## Copyright (c) 1999-2004, 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/icuswap
16
17 ##
18
19 TARGET_STUB_NAME = icuswap
20
21 SECTION = 1
22
23 #MANX_FILES = $(TARGET_STUB_NAME).$(SECTION)
24
25 #ALL_MAN_FILES = $(MANX_FILES)
26
27 ## Extra files to remove for 'make clean'
28 CLEANFILES = *~ $(DEPS) $(ALL_MAN_FILES)
29
30 ## Target information
31 TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
32
33 CPPFLAGS += -I$(top_builddir)/common -I$(top_srcdir)/common -I$(srcdir)/../toolutil $(BIR_CPPFLAGS)
34 LIBS = $(LIBICUTOOLUTIL) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M)
35
36 OBJECTS = icuswap.o
37
38 DEPS = $(OBJECTS:.o=.d)
39
40 ## List of phony targets
41 .PHONY : all all-local install install-local clean clean-local \
42 distclean distclean-local dist dist-local check \
43 check-local install-man install-manx
44
45 ## Clear suffix list
46 .SUFFIXES :
47
48 ## List of standard targets
49 all: all-local
50 install: install-local
51 clean: clean-local
52 distclean : distclean-local
53 dist: dist-local
54 check: all check-local
55
56 all-local: $(TARGET) $(ALL_MAN_FILES)
57
58 install-local: all-local install-man
59 $(MKINSTALLDIRS) $(DESTDIR)$(sbindir)
60 $(INSTALL) $(TARGET) $(DESTDIR)$(sbindir)
61
62 dist-local:
63
64 clean-local:
65 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
66 $(RMV) $(TARGET) $(OBJECTS)
67
68 distclean-local: clean-local
69 $(RMV) Makefile
70
71 check-local: all-local
72
73 Makefile: $(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
80 # man page
81 install-man: install-manx
82 install-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
90 ifeq (,$(MAKECMDGOALS))
91 -include $(DEPS)
92 else
93 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
94 -include $(DEPS)
95 endif
96 endif