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