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