Whamcloud - gitweb
Add device-mapper support to the blkid library
[tools/e2fsprogs.git] / MCONFIG.in
1 # Beginning of file MCONFIG
2
3 all::
4
5 check::
6
7 SHELL = /bin/sh
8
9 COMPRESS_EXT = gz bz2 bz Z
10
11 prefix = @prefix@
12 root_prefix = @root_prefix@
13 exec_prefix = @exec_prefix@
14 root_bindir = @root_bindir@
15 root_sbindir = @root_sbindir@
16 root_libdir = @root_libdir@
17 bindir = @bindir@
18 sbindir = @sbindir@
19 libdir = @libdir@
20 datadir= @datadir@
21 localedir = $(datadir)/locale
22 root_sysconfdir= @root_sysconfdir@
23 includedir = @includedir@
24 mandir = @mandir@
25 man1dir = $(mandir)/man1
26 man3dir = $(mandir)/man3
27 man8dir = $(mandir)/man8
28 infodir = @infodir@
29 datadir = @datadir@
30
31 @SET_MAKE@
32
33 CC = @CC@
34 BUILD_CC = @BUILD_CC@
35 DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@
36 CFLAGS = @CFLAGS@
37 CPPFLAGS =  -I$(top_builddir)/lib -I$(top_srcdir)/lib @CPPFLAGS@
38 INTL_FLAGS = @INTL_FLAGS@
39 ALL_CFLAGS = $(CPPFLAGS) $(DEFS) $(USE_WFLAGS) $(CFLAGS) $(XTRA_CFLAGS) \
40         $(INTL_FLAGS) $(LINUX_INCLUDE) 
41 LDFLAGS = @LDFLAGS@
42 ALL_LDFLAGS = $(LDFLAGS)
43 BUILD_CFLAGS = @BUILD_CFLAGS@
44 BUILD_LDFLAGS = @BUILD_LDFLAGS@
45 RM = @RM@
46 LN = @LN@
47 LN_S = @LN_S@
48 MV = @MV@
49 CP = @CP@
50 CHMOD = @CHMOD@
51 AR = @AR@
52 AWK = @AWK@
53 SED = @SED@
54 PERL = @PERL@
55 RANLIB = @RANLIB@
56 STRIP = @STRIP@
57 LD = $(PURE) @CC@
58 ARUPD = $(AR) r
59 ARGEN = $(AR) rc
60 LDCONFIG = @LDCONFIG@
61 INSTALL_PROGRAM = @INSTALL_PROGRAM@
62 INSTALL_DATA = @INSTALL_DATA@
63 INSTALL_SCRIPT = @INSTALL_SCRIPT@
64 MKINSTALLDIRS = @MKINSTALLDIRS@
65
66 #
67 # Library definitions
68 #
69 DEVMAPPER_LIBS = @DEVMAPPER_LIBS@
70 STATIC_DEVMAPPER_LIBS = @STATIC_DEVMAPPER_LIBS@
71
72 LIB = $(top_builddir)/lib
73 LIBSS = $(LIB)/libss@LIB_EXT@
74 LIBCOM_ERR = $(LIB)/libcom_err@LIB_EXT@
75 LIBE2P = $(LIB)/libe2p@LIB_EXT@
76 LIBEXT2FS = $(LIB)/libext2fs@LIB_EXT@
77 LIBUUID = $(LIB)/libuuid@LIB_EXT@ @SOCKET_LIB@ 
78 LIBBLKID = $(LIB)/libblkid@LIB_EXT@ $(DEVMAPPER_LIBS)
79 LIBINTL = @LIBINTL@
80 DEPLIBUUID = $(LIB)/libuuid@LIB_EXT@
81
82 STATIC_LIBSS = $(LIB)/libss@STATIC_LIB_EXT@
83 STATIC_LIBCOM_ERR = $(LIB)/libcom_err@STATIC_LIB_EXT@
84 STATIC_LIBE2P = $(LIB)/libe2p@STATIC_LIB_EXT@
85 STATIC_LIBEXT2FS = $(LIB)/libext2fs@STATIC_LIB_EXT@
86 STATIC_LIBUUID = $(LIB)/libuuid@STATIC_LIB_EXT@ @SOCKET_LIB@ 
87 STATIC_LIBBLKID = $(LIB)/libblkid@STATIC_LIB_EXT@ $(STATIC_DEVMAPPER_LIBS)
88 DEPSTATIC_LIBUUID = $(LIB)/libuuid@STATIC_LIB_EXT@
89
90 PROFILED_LIBSS = $(LIB)/libss@PROFILED_LIB_EXT@
91 PROFILED_LIBCOM_ERR = $(LIB)/libcom_err@PROFILED_LIB_EXT@
92 PROFILED_LIBE2P = $(LIB)/libe2p@PROFILED_LIB_EXT@
93 PROFILED_LIBEXT2FS = $(LIB)/libext2fs@PROFILED_LIB_EXT@
94 PROFILED_LIBUUID = $(LIB)/libuuid@PROFILED_LIB_EXT@ @SOCKET_LIB@ 
95 PROFILED_LIBBLKID = $(LIB)/libblkid@PROFILED_LIB_EXT@
96 DEPPROFILED_LIBUUID = $(LIB)/libuuid@PROFILED_LIB_EXT@
97
98 # An include directive pointing to a directory holding enough linux-like
99 # include files to satisfy some programs here
100 LINUX_INCLUDE=@LINUX_INCLUDE@
101
102 #
103 # A fast substitution command for fixing up man pages, shell scripts, etc.
104 #
105 SUBST_CONF=$(top_builddir)/util/subst.conf
106 SUBSTITUTE= $(top_builddir)/util/subst -f $(SUBST_CONF)
107 SUBSTITUTE_UPTIME= $(top_builddir)/util/subst -t -f $(SUBST_CONF)
108 DEP_SUBSTITUTE= $(top_builddir)/util/subst $(SUBST_CONF)
109
110 $(top_builddir)/util/subst:
111         cd $(top_builddir)/util ; $(MAKE) subst
112
113 #
114 # Warning flags
115 #
116 # Run make gcc-wall to do a build with warning messages.
117 #
118 #
119 WFLAGS=         -ansi -D_POSIX_SOURCE -pedantic $(WFLAGS_EXTRA) \
120                         -Wall -W -Wwrite-strings -Wpointer-arith \
121                         -Wcast-qual -Wcast-align  \
122                         -Wstrict-prototypes -Wmissing-prototypes \
123                         -Wformat-security  -Wformat-nonliteral \
124                         -Wmissing-format-attribute \
125                         -Wnested-externs -Winline -DNO_INLINE_FUNCS -Wshadow \
126                         -UENABLE_NLS
127
128 gcc-wall-new:
129         (make USE_WFLAGS="$(WFLAGS)" > /dev/null) 2>&1 | sed -f $(top_srcdir)/util/gcc-wall-cleanup 
130
131 gcc-wall:
132         make clean > /dev/null
133         make gcc-wall-new
134
135 #
136 # Installation user and groups
137 #
138 BINGRP=         bin
139 BINOWN=         bin
140 BINMODE=        555
141 INCGRP=         bin
142 INCOWN=         bin
143 INCMODE=        444
144 LIBOWN=         bin
145 LIBGRP=         bin
146 LIBMODE=        444
147 MANGRP=         bin
148 MANOWN=         bin
149 MANMODE=        444
150
151 #
152 # Autoconf magic...
153 #
154
155 DEP_LIB_MAKEFILES = $(top_srcdir)/lib/Makefile.elf-lib  \
156         $(top_srcdir)/lib/Makefile.bsd-lib $(top_srcdir)/lib/Makefile.darwin-lib \
157         $(top_srcdir)/lib/Makefile.solaris-lib $(top_srcdir)/lib/Makefile.checker \
158         $(top_srcdir)/lib/Makefile.profile
159
160 $(top_builddir)/config.status: $(top_srcdir)/configure
161         cd $(top_builddir); ./config.status --recheck
162
163 $(top_builddir)/MCONFIG: $(top_srcdir)/MCONFIG.in $(top_builddir)/config.status
164         cd $(top_builddir); CONFIG_FILES=MCONFIG ./config.status
165
166 $(top_builddir)/lib/substitute_sh: $(top_srcdir)/lib/substitute_sh.in \
167                 $(top_builddir)/config.status
168         cd $(top_builddir); CONFIG_FILES=lib/substitute_sh ./config.status
169
170 $(top_builddir)/util/subst.conf: $(top_srcdir)/util/subst.conf.in \
171                 $(top_builddir)/config.status
172         cd $(top_builddir); CONFIG_FILES=util/subst.conf ./config.status
173
174 Makefile: $(srcdir)/Makefile.in $(top_builddir)/MCONFIG \
175                 $(DEP_MAKEFILE) $(top_builddir)/config.status
176         cd $(top_builddir); CONFIG_FILES=$(my_dir)/Makefile ./config.status
177
178 @MAINTAINER_CMT@$(top_srcdir)/configure: $(top_srcdir)/configure.in
179 @MAINTAINER_CMT@        cd $(top_srcdir) && autoconf
180
181 #
182 # Make depend magic...
183 #
184
185 .depend: Makefile $(SRCS) $(top_srcdir)/depfix.sed $(top_srcdir)/wordwrap.pl
186         if test -n "$(SRCS)" ; then \
187                 $(CC) -M $(ALL_CFLAGS) $(SRCS) | \
188                         $(SED) -f $(top_srcdir)/depfix.sed \
189                             -e 's; $(srcdir)/; $$(srcdir)/;g' \
190                             -e 's; $(top_srcdir)/; $$(top_srcdir)/;g' \
191                             -e 's; $(top_builddir)/; $$(top_builddir)/;g' \
192                             -e 's; \./; ;g' \
193                             -e '/^#/d' \
194                             -e '/^ *\\$$/d' | \
195                         $(PERL) $(top_srcdir)/wordwrap.pl > .depend; \
196         else :; fi
197
198 depend:: .depend
199         if test -n "$(SRCS)" ; then \
200                 sed -e '/^# +++ Dependency line eater +++/,$$d' \
201                         < $(srcdir)/Makefile.in | cat - .depend \
202                         > $(srcdir)/Makefile.in.new; \
203         if cmp -s $(srcdir)/Makefile.in $(srcdir)/Makefile.in.new ; then \
204                 $(RM) $(srcdir)/Makefile.in.new ; \
205         else \
206                 $(MV) $(srcdir)/Makefile.in $(srcdir)/Makefile.in.old; \
207                 $(MV) $(srcdir)/Makefile.in.new $(srcdir)/Makefile.in; \
208         fi ; else :; fi
209
210 # End of file MCONFIG