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