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