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