blob: 4847cc4d54a0bae58d5941b1fc66b196325effe6 [file] [log] [blame]
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001# Beginning of file MCONFIG
2
Theodore Ts'oef8901b1999-07-03 04:55:36 +00003all::
4
Theodore Ts'o3e377db2000-12-09 02:37:33 +00005check::
6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00007SHELL = /bin/sh
8
Theodore Ts'o482afc42002-10-31 03:32:34 -05009COMPRESS_EXT = gz bz2 bz Z
10
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011prefix = @prefix@
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000012root_prefix = @root_prefix@
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013exec_prefix = @exec_prefix@
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040014root_bindir = @root_bindir@
15root_sbindir = @root_sbindir@
16root_libdir = @root_libdir@
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000017bindir = @bindir@
18sbindir = @sbindir@
19libdir = @libdir@
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040020datadir= @datadir@
21root_sysconfdir= @root_sysconfdir@
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000022includedir = @includedir@
23mandir = @mandir@
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000024man1dir = $(mandir)/man1
25man3dir = $(mandir)/man3
26man8dir = $(mandir)/man8
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000027infodir = @infodir@
28datadir = @datadir@
Theodore Ts'o50e1e101997-04-26 13:58:21 +000029
30@SET_MAKE@
31
32INSTALL_PROGRAM = @INSTALL_PROGRAM@
33INSTALL_DATA = @INSTALL_DATA@
34CC = @CC@
Theodore Ts'o6c133521999-07-03 20:37:03 +000035BUILD_CC = @BUILD_CC@
Theodore Ts'o50e1e101997-04-26 13:58:21 +000036DEFS = @DEFS@
Theodore Ts'o74becf31997-04-26 14:37:06 +000037CFLAGS = @CFLAGS@
Theodore Ts'oe8aed8c2000-04-03 03:18:59 +000038CPPFLAGS = @CPPFLAGS@
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +000039ALL_CFLAGS = $(CPPFLAGS) $(DEFS) $(USE_WFLAGS) $(CFLAGS) $(XTRA_CFLAGS) \
Theodore Ts'o96b5cac2001-12-24 15:33:49 -050040 -I$(top_builddir)/lib -I$(top_srcdir)/lib $(LINUX_INCLUDE)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000041LDFLAGS = @LDFLAGS@
Theodore Ts'o74becf31997-04-26 14:37:06 +000042ALL_LDFLAGS = $(LDFLAGS)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000043RM = @RM@
44LN = @LN@
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000045LN_S = @LN_S@
Theodore Ts'o50e1e101997-04-26 13:58:21 +000046MV = @MV@
47CP = @CP@
48CHMOD = @CHMOD@
49AR = @AR@
50AWK = @AWK@
51SED = @SED@
Theodore Ts'o9d564f71999-07-03 20:25:58 +000052PERL = @PERL@
Theodore Ts'o50e1e101997-04-26 13:58:21 +000053RANLIB = @RANLIB@
54STRIP = @STRIP@
55LD = $(PURE) @CC@
56ARUPD = $(AR) r
Theodore Ts'o250f79f2001-05-19 22:02:22 +000057LDCONFIG = @LDCONFIG@
Theodore Ts'o50e1e101997-04-26 13:58:21 +000058
59#
Theodore Ts'oa4d09611997-04-29 14:28:00 +000060# Library definitions
61#
62LIB = $(top_builddir)/lib
63LIBSS = $(LIB)/libss@LIB_EXT@
64LIBCOM_ERR = $(LIB)/libcom_err@LIB_EXT@
65LIBE2P = $(LIB)/libe2p@LIB_EXT@
66LIBEXT2FS = $(LIB)/libext2fs@LIB_EXT@
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000067LIBUUID = $(LIB)/libuuid@LIB_EXT@ @SOCKET_LIB@
Theodore Ts'o77200f42000-01-18 17:53:27 +000068DEPLIBUUID = $(LIB)/libuuid@LIB_EXT@
Theodore Ts'oa4d09611997-04-29 14:28:00 +000069
70STATIC_LIBSS = $(LIB)/libss@STATIC_LIB_EXT@
71STATIC_LIBCOM_ERR = $(LIB)/libcom_err@STATIC_LIB_EXT@
72STATIC_LIBE2P = $(LIB)/libe2p@STATIC_LIB_EXT@
73STATIC_LIBEXT2FS = $(LIB)/libext2fs@STATIC_LIB_EXT@
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000074STATIC_LIBUUID = $(LIB)/libuuid@STATIC_LIB_EXT@ @SOCKET_LIB@
Theodore Ts'o77200f42000-01-18 17:53:27 +000075DEPSTATIC_LIBUUID = $(LIB)/libuuid@STATIC_LIB_EXT@
Theodore Ts'oa4d09611997-04-29 14:28:00 +000076
77PROFILED_LIBSS = $(LIB)/libss@PROFILED_LIB_EXT@
78PROFILED_LIBCOM_ERR = $(LIB)/libcom_err@PROFILED_LIB_EXT@
79PROFILED_LIBE2P = $(LIB)/libe2p@PROFILED_LIB_EXT@
80PROFILED_LIBEXT2FS = $(LIB)/libext2fs@PROFILED_LIB_EXT@
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000081PROFILED_LIBUUID = $(LIB)/libuuid@PROFILED_LIB_EXT@ @SOCKET_LIB@
Theodore Ts'o77200f42000-01-18 17:53:27 +000082DEPPROFILED_LIBUUID = $(LIB)/libuuid@PROFILED_LIB_EXT@
Theodore Ts'oa4d09611997-04-29 14:28:00 +000083
84#
Theodore Ts'o50e1e101997-04-26 13:58:21 +000085# Use these definitions is you use tools 2.x, x < 16
86#
87#DLL_BIN=/usr/dll/bin
88#JUMP_PREFIX=/usr/dll/jump/
89
90#
91# Use these definitions if you use tools 2.16 or above
92#
93DLL_BIN=/usr/bin
94JUMP_PREFIX=/usr/bin/jump
95
96# An include directive pointing to a directory holding enough linux-like
97# include files to satisfy some programs here
98LINUX_INCLUDE=@LINUX_INCLUDE@
99
100#
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000101# A fast substitution command for fixing up man pages, shell scripts, etc.
102#
Theodore Ts'o44339bd1997-10-15 02:47:20 +0000103SUBST_CONF=$(top_builddir)/util/subst.conf
104SUBSTITUTE= $(top_builddir)/util/subst -f $(SUBST_CONF)
105DEP_SUBSTITUTE= $(top_builddir)/util/subst $(SUBST_CONF)
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000106
Theodore Ts'oef8901b1999-07-03 04:55:36 +0000107$(top_builddir)/util/subst:
Theodore Ts'oe8aed8c2000-04-03 03:18:59 +0000108 cd $(top_builddir)/util ; $(MAKE) subst
Theodore Ts'oef8901b1999-07-03 04:55:36 +0000109
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000110#
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000111# Warning flags
112#
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +0000113# Run make gcc-wall to do a build with warning messages.
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000114#
115#
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +0000116WFLAGS= -ansi -D_POSIX_SOURCE -pedantic \
117 -Wall -Wwrite-strings -Wpointer-arith \
118 -Wcast-qual -Wcast-align -Wtraditional \
119 -Wstrict-prototypes -Wmissing-prototypes \
120 -Wnested-externs -Winline -DNO_INLINE_FUNCS -Wshadow
121
Theodore Ts'oc8c071a2001-01-11 16:08:23 +0000122gcc-wall-new:
123 (make USE_WFLAGS="$(WFLAGS)" > /dev/null) 2>&1 | sed -f $(top_srcdir)/util/gcc-wall-cleanup
124
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +0000125gcc-wall:
126 make clean > /dev/null
Theodore Ts'oc8c071a2001-01-11 16:08:23 +0000127 make gcc-wall-new
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000128
129#
130# Installation user and groups
131#
132BINGRP= bin
133BINOWN= bin
134BINMODE= 555
135INCGRP= bin
136INCOWN= bin
137INCMODE= 444
138LIBOWN= bin
139LIBGRP= bin
140LIBMODE= 444
141MANGRP= bin
142MANOWN= bin
143MANMODE= 444
144
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000145#
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000146# Autoconf magic...
147#
148
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +0000149DEP_LIB_MAKEFILES = $(top_srcdir)/lib/Makefile.elf-lib \
150 $(top_srcdir)/lib/Makefile.dll-lib $(top_srcdir)/lib/Makefile.bsd-lib \
151 $(top_srcdir)/lib/Makefile.checker $(top_srcdir)/lib/Makefile.profile
152
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000153$(top_builddir)/config.status: $(top_srcdir)/configure
Theodore Ts'oe8aed8c2000-04-03 03:18:59 +0000154 cd $(top_builddir); ./config.status --recheck
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000155
156$(top_builddir)/MCONFIG: $(top_srcdir)/MCONFIG.in $(top_builddir)/config.status
Theodore Ts'oe8aed8c2000-04-03 03:18:59 +0000157 cd $(top_builddir); CONFIG_FILES=MCONFIG ./config.status
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000158
159$(top_builddir)/lib/substitute_sh: $(top_srcdir)/lib/substitute_sh.in \
160 $(top_builddir)/config.status
Theodore Ts'oe8aed8c2000-04-03 03:18:59 +0000161 cd $(top_builddir); CONFIG_FILES=lib/substitute_sh ./config.status
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000162
Theodore Ts'obf2602b1998-03-30 01:11:44 +0000163$(top_builddir)/util/subst.conf: $(top_srcdir)/util/subst.conf.in \
164 $(top_builddir)/config.status
Theodore Ts'oe8aed8c2000-04-03 03:18:59 +0000165 cd $(top_builddir); CONFIG_FILES=util/subst.conf ./config.status
Theodore Ts'obf2602b1998-03-30 01:11:44 +0000166
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000167Makefile: $(srcdir)/Makefile.in $(top_builddir)/MCONFIG \
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +0000168 $(DEP_MAKEFILE) $(top_builddir)/config.status
Theodore Ts'oe8aed8c2000-04-03 03:18:59 +0000169 cd $(top_builddir); CONFIG_FILES=$(my_dir)/Makefile ./config.status
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000170
171$(top_srcdir)/configure: $(top_srcdir)/configure.in
172 cd $(top_srcdir) && autoconf
173
174#
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000175# Make depend magic...
176#
177
Theodore Ts'o9d564f71999-07-03 20:25:58 +0000178.depend: Makefile $(SRCS) $(top_srcdir)/depfix.sed $(top_srcdir)/wordwrap.pl
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000179 if test -n "$(SRCS)" ; then \
Theodore Ts'o74becf31997-04-26 14:37:06 +0000180 $(CC) -M $(ALL_CFLAGS) $(SRCS) | \
Theodore Ts'o9d564f71999-07-03 20:25:58 +0000181 $(SED) -f $(top_srcdir)/depfix.sed \
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000182 -e 's; $(srcdir)/; $$(srcdir)/;g' \
183 -e 's; $(top_srcdir)/; $$(top_srcdir)/;g' \
184 -e 's; $(top_builddir)/; $$(top_builddir)/;g' \
185 -e 's; \./; ;g' \
Theodore Ts'o9d564f71999-07-03 20:25:58 +0000186 -e '/^ *\\$$/d' | \
187 $(PERL) $(top_srcdir)/wordwrap.pl > .depend; \
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000188 else :; fi
189
190depend:: .depend
191 if test -n "$(SRCS)" ; then \
192 sed -e '/^# +++ Dependency line eater +++/,$$d' \
193 < $(srcdir)/Makefile.in | cat - .depend \
194 > $(srcdir)/Makefile.in.new; \
Theodore Ts'o9d564f71999-07-03 20:25:58 +0000195 if cmp -s $(srcdir)/Makefile.in $(srcdir)/Makefile.in.new ; then \
196 $(RM) $(srcdir)/Makefile.in.new ; \
197 else \
198 $(MV) $(srcdir)/Makefile.in $(srcdir)/Makefile.in.old; \
199 $(MV) $(srcdir)/Makefile.in.new $(srcdir)/Makefile.in; \
200 fi ; else :; fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000201
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000202# End of file MCONFIG