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