Whamcloud - gitweb
MCONFIG.in:
[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 RM = @RM@
44 LN = @LN@
45 LN_S = @LN_S@
46 MV = @MV@
47 CP = @CP@
48 CHMOD = @CHMOD@
49 AR = @AR@
50 AWK = @AWK@
51 SED = @SED@
52 PERL = @PERL@
53 RANLIB = @RANLIB@
54 STRIP = @STRIP@
55 LD = $(PURE) @CC@
56 ARUPD = $(AR) r
57 ARGEN = $(AR) rc
58 LDCONFIG = @LDCONFIG@
59 INSTALL_PROGRAM = @INSTALL_PROGRAM@
60 INSTALL_DATA = @INSTALL_DATA@
61 INSTALL_SCRIPT = @INSTALL_SCRIPT@
62 MKINSTALLDIRS = @MKINSTALLDIRS@
63
64 #
65 # Library definitions
66 #
67 LIB = $(top_builddir)/lib
68 LIBSS = $(LIB)/libss@LIB_EXT@
69 LIBCOM_ERR = $(LIB)/libcom_err@LIB_EXT@
70 LIBE2P = $(LIB)/libe2p@LIB_EXT@
71 LIBEXT2FS = $(LIB)/libext2fs@LIB_EXT@
72 LIBUUID = $(LIB)/libuuid@LIB_EXT@ @SOCKET_LIB@ 
73 LIBBLKID = $(LIB)/libblkid@LIB_EXT@
74 LIBINTL = @LIBINTL@
75 DEPLIBUUID = $(LIB)/libuuid@LIB_EXT@
76
77 STATIC_LIBSS = $(LIB)/libss@STATIC_LIB_EXT@
78 STATIC_LIBCOM_ERR = $(LIB)/libcom_err@STATIC_LIB_EXT@
79 STATIC_LIBE2P = $(LIB)/libe2p@STATIC_LIB_EXT@
80 STATIC_LIBEXT2FS = $(LIB)/libext2fs@STATIC_LIB_EXT@
81 STATIC_LIBUUID = $(LIB)/libuuid@STATIC_LIB_EXT@ @SOCKET_LIB@ 
82 STATIC_LIBBLKID = $(LIB)/libblkid@STATIC_LIB_EXT@
83 DEPSTATIC_LIBUUID = $(LIB)/libuuid@STATIC_LIB_EXT@
84
85 PROFILED_LIBSS = $(LIB)/libss@PROFILED_LIB_EXT@
86 PROFILED_LIBCOM_ERR = $(LIB)/libcom_err@PROFILED_LIB_EXT@
87 PROFILED_LIBE2P = $(LIB)/libe2p@PROFILED_LIB_EXT@
88 PROFILED_LIBEXT2FS = $(LIB)/libext2fs@PROFILED_LIB_EXT@
89 PROFILED_LIBUUID = $(LIB)/libuuid@PROFILED_LIB_EXT@ @SOCKET_LIB@ 
90 PROFILED_LIBBLKID = $(LIB)/libblkid@PROFILED_LIB_EXT@
91 DEPPROFILED_LIBUUID = $(LIB)/libuuid@PROFILED_LIB_EXT@
92
93 # An include directive pointing to a directory holding enough linux-like
94 # include files to satisfy some programs here
95 LINUX_INCLUDE=@LINUX_INCLUDE@
96
97 #
98 # A fast substitution command for fixing up man pages, shell scripts, etc.
99 #
100 SUBST_CONF=$(top_builddir)/util/subst.conf
101 SUBSTITUTE= $(top_builddir)/util/subst -f $(SUBST_CONF)
102 SUBSTITUTE_UPTIME= $(top_builddir)/util/subst -t -f $(SUBST_CONF)
103 DEP_SUBSTITUTE= $(top_builddir)/util/subst $(SUBST_CONF)
104
105 $(top_builddir)/util/subst:
106         cd $(top_builddir)/util ; $(MAKE) subst
107
108 #
109 # Warning flags
110 #
111 # Run make gcc-wall to do a build with warning messages.
112 #
113 #
114 WFLAGS=         -ansi -D_POSIX_SOURCE -pedantic $(WFLAGS_EXTRA) \
115                         -Wall -W -Wwrite-strings -Wpointer-arith \
116                         -Wcast-qual -Wcast-align  \
117                         -Wstrict-prototypes -Wmissing-prototypes \
118                         -Wformat-security  -Wformat-nonliteral \
119                         -Wmissing-format-attribute \
120                         -Wnested-externs -Winline -DNO_INLINE_FUNCS -Wshadow \
121                         -UENABLE_NLS
122
123 gcc-wall-new:
124         (make USE_WFLAGS="$(WFLAGS)" > /dev/null) 2>&1 | sed -f $(top_srcdir)/util/gcc-wall-cleanup 
125
126 gcc-wall:
127         make clean > /dev/null
128         make gcc-wall-new
129
130 #
131 # Installation user and groups
132 #
133 BINGRP=         bin
134 BINOWN=         bin
135 BINMODE=        555
136 INCGRP=         bin
137 INCOWN=         bin
138 INCMODE=        444
139 LIBOWN=         bin
140 LIBGRP=         bin
141 LIBMODE=        444
142 MANGRP=         bin
143 MANOWN=         bin
144 MANMODE=        444
145
146 #
147 # Autoconf magic...
148 #
149
150 DEP_LIB_MAKEFILES = $(top_srcdir)/lib/Makefile.elf-lib  \
151         $(top_srcdir)/lib/Makefile.bsd-lib $(top_srcdir)/lib/Makefile.darwin-lib \
152         $(top_srcdir)/lib/Makefile.solaris-lib $(top_srcdir)/lib/Makefile.checker \
153         $(top_srcdir)/lib/Makefile.profile
154
155 $(top_builddir)/config.status: $(top_srcdir)/configure
156         cd $(top_builddir); ./config.status --recheck
157
158 $(top_builddir)/MCONFIG: $(top_srcdir)/MCONFIG.in $(top_builddir)/config.status
159         cd $(top_builddir); CONFIG_FILES=MCONFIG ./config.status
160
161 $(top_builddir)/lib/substitute_sh: $(top_srcdir)/lib/substitute_sh.in \
162                 $(top_builddir)/config.status
163         cd $(top_builddir); CONFIG_FILES=lib/substitute_sh ./config.status
164
165 $(top_builddir)/util/subst.conf: $(top_srcdir)/util/subst.conf.in \
166                 $(top_builddir)/config.status
167         cd $(top_builddir); CONFIG_FILES=util/subst.conf ./config.status
168
169 Makefile: $(srcdir)/Makefile.in $(top_builddir)/MCONFIG \
170                 $(DEP_MAKEFILE) $(top_builddir)/config.status
171         cd $(top_builddir); CONFIG_FILES=$(my_dir)/Makefile ./config.status
172
173 $(top_srcdir)/configure: $(top_srcdir)/configure.in
174         cd $(top_srcdir) && autoconf
175
176 #
177 # Make depend magic...
178 #
179
180 .depend: Makefile $(SRCS) $(top_srcdir)/depfix.sed $(top_srcdir)/wordwrap.pl
181         if test -n "$(SRCS)" ; then \
182                 $(CC) -M $(ALL_CFLAGS) $(SRCS) | \
183                         $(SED) -f $(top_srcdir)/depfix.sed \
184                             -e 's; $(srcdir)/; $$(srcdir)/;g' \
185                             -e 's; $(top_srcdir)/; $$(top_srcdir)/;g' \
186                             -e 's; $(top_builddir)/; $$(top_builddir)/;g' \
187                             -e 's; \./; ;g' \
188                             -e '/^#/d' \
189                             -e '/^ *\\$$/d' | \
190                         $(PERL) $(top_srcdir)/wordwrap.pl > .depend; \
191         else :; fi
192
193 depend:: .depend
194         if test -n "$(SRCS)" ; then \
195                 sed -e '/^# +++ Dependency line eater +++/,$$d' \
196                         < $(srcdir)/Makefile.in | cat - .depend \
197                         > $(srcdir)/Makefile.in.new; \
198         if cmp -s $(srcdir)/Makefile.in $(srcdir)/Makefile.in.new ; then \
199                 $(RM) $(srcdir)/Makefile.in.new ; \
200         else \
201                 $(MV) $(srcdir)/Makefile.in $(srcdir)/Makefile.in.old; \
202                 $(MV) $(srcdir)/Makefile.in.new $(srcdir)/Makefile.in; \
203         fi ; else :; fi
204
205 # End of file MCONFIG