Whamcloud - gitweb
Update for 1.24a release
[tools/e2fsprogs.git] / MCONFIG.in
1 # Beginning of file MCONFIG
2
3 all::
4
5 check::
6
7 SHELL = /bin/sh
8
9 prefix = @prefix@
10 root_prefix = @root_prefix@
11 exec_prefix = @exec_prefix@
12 root_bindir = $(root_prefix)/bin
13 root_sbindir = $(root_prefix)/sbin
14 root_libdir = $(root_prefix)/lib
15 bindir = @bindir@
16 sbindir = @sbindir@
17 libdir = @libdir@
18 includedir = @includedir@
19 mandir = @mandir@
20 man1dir = $(mandir)/man1
21 man3dir = $(mandir)/man3
22 man8dir = $(mandir)/man8
23 infodir = @infodir@
24 datadir = @datadir@
25
26 @SET_MAKE@
27
28 INSTALL_PROGRAM = @INSTALL_PROGRAM@
29 INSTALL_DATA = @INSTALL_DATA@
30 CC = @CC@
31 BUILD_CC = @BUILD_CC@
32 DEFS = @DEFS@
33 CFLAGS = @CFLAGS@
34 CPPFLAGS = @CPPFLAGS@
35 ALL_CFLAGS = $(CPPFLAGS) $(DEFS) $(USE_WFLAGS) $(CFLAGS) $(XTRA_CFLAGS) \
36         -I$(top_builddir)/lib -I$(top_srcdir)/lib \
37         -I$(top_srcdir)/include $(LINUX_INCLUDE) 
38 LDFLAGS = @LDFLAGS@
39 ALL_LDFLAGS = $(LDFLAGS)
40 RM = @RM@
41 LN = @LN@
42 LN_S = @LN_S@
43 MV = @MV@
44 CP = @CP@
45 CHMOD = @CHMOD@
46 AR = @AR@
47 AWK = @AWK@
48 SED = @SED@
49 PERL = @PERL@
50 RANLIB = @RANLIB@
51 STRIP = @STRIP@
52 LD = $(PURE) @CC@
53 ARUPD = $(AR) r
54 LDCONFIG = @LDCONFIG@
55
56 #
57 # Library definitions
58 #
59 LIB = $(top_builddir)/lib
60 LIBSS = $(LIB)/libss@LIB_EXT@
61 LIBCOM_ERR = $(LIB)/libcom_err@LIB_EXT@
62 LIBE2P = $(LIB)/libe2p@LIB_EXT@
63 LIBEXT2FS = $(LIB)/libext2fs@LIB_EXT@
64 LIBUUID = $(LIB)/libuuid@LIB_EXT@ @SOCKET_LIB@ 
65 DEPLIBUUID = $(LIB)/libuuid@LIB_EXT@
66
67 STATIC_LIBSS = $(LIB)/libss@STATIC_LIB_EXT@
68 STATIC_LIBCOM_ERR = $(LIB)/libcom_err@STATIC_LIB_EXT@
69 STATIC_LIBE2P = $(LIB)/libe2p@STATIC_LIB_EXT@
70 STATIC_LIBEXT2FS = $(LIB)/libext2fs@STATIC_LIB_EXT@
71 STATIC_LIBUUID = $(LIB)/libuuid@STATIC_LIB_EXT@ @SOCKET_LIB@ 
72 DEPSTATIC_LIBUUID = $(LIB)/libuuid@STATIC_LIB_EXT@
73
74 PROFILED_LIBSS = $(LIB)/libss@PROFILED_LIB_EXT@
75 PROFILED_LIBCOM_ERR = $(LIB)/libcom_err@PROFILED_LIB_EXT@
76 PROFILED_LIBE2P = $(LIB)/libe2p@PROFILED_LIB_EXT@
77 PROFILED_LIBEXT2FS = $(LIB)/libext2fs@PROFILED_LIB_EXT@
78 PROFILED_LIBUUID = $(LIB)/libuuid@PROFILED_LIB_EXT@ @SOCKET_LIB@ 
79 DEPPROFILED_LIBUUID = $(LIB)/libuuid@PROFILED_LIB_EXT@
80
81 #
82 # Use these definitions is you use tools 2.x, x < 16
83 #
84 #DLL_BIN=/usr/dll/bin
85 #JUMP_PREFIX=/usr/dll/jump/
86
87 #
88 # Use these definitions if you use tools 2.16 or above
89 #
90 DLL_BIN=/usr/bin
91 JUMP_PREFIX=/usr/bin/jump
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 DEP_SUBSTITUTE= $(top_builddir)/util/subst $(SUBST_CONF)
103
104 $(top_builddir)/util/subst:
105         cd $(top_builddir)/util ; $(MAKE) subst
106
107 #
108 # Warning flags
109 #
110 # Run make gcc-wall to do a build with warning messages.
111 #
112 #
113 WFLAGS=         -ansi -D_POSIX_SOURCE -pedantic \
114                         -Wall -Wwrite-strings -Wpointer-arith \
115                         -Wcast-qual -Wcast-align -Wtraditional \
116                         -Wstrict-prototypes -Wmissing-prototypes \
117                         -Wnested-externs -Winline -DNO_INLINE_FUNCS -Wshadow 
118
119 gcc-wall-new:
120         (make USE_WFLAGS="$(WFLAGS)" > /dev/null) 2>&1 | sed -f $(top_srcdir)/util/gcc-wall-cleanup 
121
122 gcc-wall:
123         make clean > /dev/null
124         make gcc-wall-new
125
126 #
127 # Installation user and groups
128 #
129 BINGRP=         bin
130 BINOWN=         bin
131 BINMODE=        555
132 INCGRP=         bin
133 INCOWN=         bin
134 INCMODE=        444
135 LIBOWN=         bin
136 LIBGRP=         bin
137 LIBMODE=        444
138 MANGRP=         bin
139 MANOWN=         bin
140 MANMODE=        444
141
142 #
143 # Autoconf magic...
144 #
145
146 DEP_LIB_MAKEFILES = $(top_srcdir)/lib/Makefile.elf-lib  \
147         $(top_srcdir)/lib/Makefile.dll-lib $(top_srcdir)/lib/Makefile.bsd-lib \
148         $(top_srcdir)/lib/Makefile.checker $(top_srcdir)/lib/Makefile.profile
149
150 $(top_builddir)/config.status: $(top_srcdir)/configure
151         cd $(top_builddir); ./config.status --recheck
152
153 $(top_builddir)/MCONFIG: $(top_srcdir)/MCONFIG.in $(top_builddir)/config.status
154         cd $(top_builddir); CONFIG_FILES=MCONFIG ./config.status
155
156 $(top_builddir)/lib/substitute_sh: $(top_srcdir)/lib/substitute_sh.in \
157                 $(top_builddir)/config.status
158         cd $(top_builddir); CONFIG_FILES=lib/substitute_sh ./config.status
159
160 $(top_builddir)/util/subst.conf: $(top_srcdir)/util/subst.conf.in \
161                 $(top_builddir)/config.status
162         cd $(top_builddir); CONFIG_FILES=util/subst.conf ./config.status
163
164 Makefile: $(srcdir)/Makefile.in $(top_builddir)/MCONFIG \
165                 $(DEP_MAKEFILE) $(top_builddir)/config.status
166         cd $(top_builddir); CONFIG_FILES=$(my_dir)/Makefile ./config.status
167
168 $(top_srcdir)/configure: $(top_srcdir)/configure.in
169         cd $(top_srcdir) && autoconf
170
171 #
172 # Make depend magic...
173 #
174
175 .depend: Makefile $(SRCS) $(top_srcdir)/depfix.sed $(top_srcdir)/wordwrap.pl
176         if test -n "$(SRCS)" ; then \
177                 $(CC) -M $(ALL_CFLAGS) $(SRCS) | \
178                         $(SED) -f $(top_srcdir)/depfix.sed \
179                             -e 's; $(srcdir)/; $$(srcdir)/;g' \
180                             -e 's; $(top_srcdir)/; $$(top_srcdir)/;g' \
181                             -e 's; $(top_builddir)/; $$(top_builddir)/;g' \
182                             -e 's; \./; ;g' \
183                             -e '/^ *\\$$/d' | \
184                         $(PERL) $(top_srcdir)/wordwrap.pl > .depend; \
185         else :; fi
186
187 depend:: .depend
188         if test -n "$(SRCS)" ; then \
189                 sed -e '/^# +++ Dependency line eater +++/,$$d' \
190                         < $(srcdir)/Makefile.in | cat - .depend \
191                         > $(srcdir)/Makefile.in.new; \
192         if cmp -s $(srcdir)/Makefile.in $(srcdir)/Makefile.in.new ; then \
193                 $(RM) $(srcdir)/Makefile.in.new ; \
194         else \
195                 $(MV) $(srcdir)/Makefile.in $(srcdir)/Makefile.in.old; \
196                 $(MV) $(srcdir)/Makefile.in.new $(srcdir)/Makefile.in; \
197         fi ; else :; fi
198
199 # End of file MCONFIG