~ubuntu-branches/ubuntu/quantal/icu/quantal

« back to all changes in this revision

Viewing changes to source/tools/gencmn/Makefile.in

  • Committer: Package Import Robot
  • Author(s): Yves Arrouye
  • Date: 2002-03-03 15:31:13 UTC
  • Revision ID: package-import@ubuntu.com-20020303153113-3ssceqlq45xbmbnc
Tags: upstream-2.0-2.1pre20020303
ImportĀ upstreamĀ versionĀ 2.0-2.1pre20020303

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
## Makefile.in for ICU - tools/gencmn
 
2
## Copyright (c) 1999-2001, 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
## Platform-specific setup
 
15
include @platform_make_fragment@
 
16
 
 
17
## Build directory information
 
18
subdir = tools/gencmn
 
19
 
 
20
##
 
21
 
 
22
SECTION = 8
 
23
 
 
24
MANX_FILES = $(TARGET).$(SECTION) $(DECMN).$(SECTION)
 
25
 
 
26
ALL_MAN_FILES = $(MANX_FILES)
 
27
 
 
28
## Extra files to remove for 'make clean'
 
29
CLEANFILES = *~ mkmap.tmp $(DEPS) $(RES_FILES) $(TEST_FILES) $(DECMN_DEP) $(ALL_MAN_FILES)
 
30
 
 
31
## Target information
 
32
TARGET = gencmn
 
33
DECMN = decmn
 
34
 
 
35
ENABLE_STATIC = @ENABLE_STATIC@
 
36
 
 
37
ifneq ($(ENABLE_STATIC),)
 
38
LINK = $(LINK.cc)
 
39
else
 
40
LINK = $(LINK.c)
 
41
endif
 
42
 
 
43
DEFS = @DEFS@
 
44
CPPFLAGS = @CPPFLAGS@ -I$(top_builddir)/common -I$(top_srcdir)/common -I$(srcdir)/../toolutil $(BIR_CPPFLAGS)
 
45
CFLAGS = @CFLAGS@
 
46
CXXFLAGS = @CXXFLAGS@
 
47
ENABLE_RPATH = @ENABLE_RPATH@
 
48
ifeq ($(ENABLE_RPATH),YES)
 
49
RPATHLDFLAGS = $(LD_RPATH)$(LD_RPATH_PRE)$(libdir)
 
50
endif
 
51
LDFLAGS = @LDFLAGS@ $(RPATHLDFLAGS)
 
52
LIBS = $(LIBICUTOOLUTIL) $(LIBICUUC) @LIBS@ @LIB_M@
 
53
 
 
54
OBJECTS = gencmn.o
 
55
DECMN_OBJ = decmn.o
 
56
 
 
57
DEPS = $(OBJECTS:.o=.d)
 
58
DECMN_DEP = $(DECMN_OBJ:.o=.d)
 
59
 
 
60
## List of phony targets
 
61
.PHONY : all all-local install install-local clean clean-local          \
 
62
distclean distclean-local dist dist-local check \
 
63
check-local install-man install-manx
 
64
 
 
65
## Clear suffix list
 
66
.SUFFIXES :
 
67
 
 
68
## List of standard targets
 
69
all: all-local
 
70
install: install-local
 
71
clean: clean-local
 
72
distclean : distclean-local
 
73
dist: dist-local
 
74
check: all check-local
 
75
 
 
76
all-local: $(TARGET) $(RES_FILES) $(TRANSLIT_RES) $(TEST_FILES) $(DECMN) $(ALL_MAN_FILES)
 
77
 
 
78
install-local: all-local install-man
 
79
        $(MKINSTALLDIRS) $(DESTDIR)$(sbindir)
 
80
        $(INSTALL) $(TARGET) $(DESTDIR)$(sbindir)/$(TARGET)
 
81
        $(INSTALL) $(DECMN) $(DESTDIR)$(sbindir)/$(DECMN)
 
82
 
 
83
dist-local:
 
84
 
 
85
clean-local:
 
86
        test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
 
87
        $(RMV) $(TARGET) $(OBJECTS) $(DECMN) $(DECMN_OBJ)
 
88
 
 
89
distclean-local: clean-local
 
90
        $(RMV) Makefile
 
91
 
 
92
check-local: all-local
 
93
 
 
94
Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
 
95
        cd $(top_builddir) \
 
96
         && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
 
97
 
 
98
$(TARGET) : $(OBJECTS)
 
99
        $(LINK) -o $@ $^ $(LIBS) 
 
100
 
 
101
$(DECMN) : $(DECMN_OBJ)
 
102
        $(LINK) -o $@ $^ $(LIBS) 
 
103
 
 
104
# man page
 
105
install-man: install-manx
 
106
install-manx: $(MANX_FILES)
 
107
        $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
 
108
        $(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION)
 
109
 
 
110
%.$(SECTION): $(srcdir)/%.$(SECTION).in
 
111
        cd $(top_builddir) \
 
112
         && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
 
113
 
 
114
ifeq (,$(MAKECMDGOALS))
 
115
-include $(DEPS)
 
116
-include $(DECMN_DEP)
 
117
else
 
118
ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
 
119
-include $(DEPS)
 
120
-include $(DECMN_DEP)
 
121
endif
 
122
endif