blob: 48c934d135a8ebf51b12343fc7a85bb321c7a0bf [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
9prefix = @prefix@
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000010root_prefix = @root_prefix@
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011exec_prefix = @exec_prefix@
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000012root_bindir = $(root_prefix)/bin
13root_sbindir = $(root_prefix)/sbin
14root_libdir = $(root_prefix)/lib
15bindir = @bindir@
16sbindir = @sbindir@
17libdir = @libdir@
18includedir = @includedir@
19mandir = @mandir@
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000020man1dir = $(mandir)/man1
21man3dir = $(mandir)/man3
22man8dir = $(mandir)/man8
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000023infodir = @infodir@
24datadir = @datadir@
Theodore Ts'o50e1e101997-04-26 13:58:21 +000025
26@SET_MAKE@
27
28INSTALL_PROGRAM = @INSTALL_PROGRAM@
29INSTALL_DATA = @INSTALL_DATA@
30CC = @CC@
Theodore Ts'o6c133521999-07-03 20:37:03 +000031BUILD_CC = @BUILD_CC@
Theodore Ts'o50e1e101997-04-26 13:58:21 +000032DEFS = @DEFS@
Theodore Ts'o74becf31997-04-26 14:37:06 +000033CFLAGS = @CFLAGS@
Theodore Ts'oe8aed8c2000-04-03 03:18:59 +000034CPPFLAGS = @CPPFLAGS@
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +000035ALL_CFLAGS = $(CPPFLAGS) $(DEFS) $(USE_WFLAGS) $(CFLAGS) $(XTRA_CFLAGS) \
Theodore Ts'o73ae2d42000-02-02 16:13:14 +000036 -I$(top_builddir)/lib -I$(top_srcdir)/lib \
37 -I$(top_srcdir)/include $(LINUX_INCLUDE)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000038LDFLAGS = @LDFLAGS@
Theodore Ts'o74becf31997-04-26 14:37:06 +000039ALL_LDFLAGS = $(LDFLAGS)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000040RM = @RM@
41LN = @LN@
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000042LN_S = @LN_S@
Theodore Ts'o50e1e101997-04-26 13:58:21 +000043MV = @MV@
44CP = @CP@
45CHMOD = @CHMOD@
46AR = @AR@
47AWK = @AWK@
48SED = @SED@
Theodore Ts'o9d564f71999-07-03 20:25:58 +000049PERL = @PERL@
Theodore Ts'o50e1e101997-04-26 13:58:21 +000050RANLIB = @RANLIB@
51STRIP = @STRIP@
52LD = $(PURE) @CC@
53ARUPD = $(AR) r
Theodore Ts'o250f79f2001-05-19 22:02:22 +000054LDCONFIG = @LDCONFIG@
Theodore Ts'o50e1e101997-04-26 13:58:21 +000055
56#
Theodore Ts'oa4d09611997-04-29 14:28:00 +000057# Library definitions
58#
59LIB = $(top_builddir)/lib
60LIBSS = $(LIB)/libss@LIB_EXT@
61LIBCOM_ERR = $(LIB)/libcom_err@LIB_EXT@
62LIBE2P = $(LIB)/libe2p@LIB_EXT@
63LIBEXT2FS = $(LIB)/libext2fs@LIB_EXT@
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000064LIBUUID = $(LIB)/libuuid@LIB_EXT@ @SOCKET_LIB@
Theodore Ts'o77200f42000-01-18 17:53:27 +000065DEPLIBUUID = $(LIB)/libuuid@LIB_EXT@
Theodore Ts'oa4d09611997-04-29 14:28:00 +000066
67STATIC_LIBSS = $(LIB)/libss@STATIC_LIB_EXT@
68STATIC_LIBCOM_ERR = $(LIB)/libcom_err@STATIC_LIB_EXT@
69STATIC_LIBE2P = $(LIB)/libe2p@STATIC_LIB_EXT@
70STATIC_LIBEXT2FS = $(LIB)/libext2fs@STATIC_LIB_EXT@
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000071STATIC_LIBUUID = $(LIB)/libuuid@STATIC_LIB_EXT@ @SOCKET_LIB@
Theodore Ts'o77200f42000-01-18 17:53:27 +000072DEPSTATIC_LIBUUID = $(LIB)/libuuid@STATIC_LIB_EXT@
Theodore Ts'oa4d09611997-04-29 14:28:00 +000073
74PROFILED_LIBSS = $(LIB)/libss@PROFILED_LIB_EXT@
75PROFILED_LIBCOM_ERR = $(LIB)/libcom_err@PROFILED_LIB_EXT@
76PROFILED_LIBE2P = $(LIB)/libe2p@PROFILED_LIB_EXT@
77PROFILED_LIBEXT2FS = $(LIB)/libext2fs@PROFILED_LIB_EXT@
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000078PROFILED_LIBUUID = $(LIB)/libuuid@PROFILED_LIB_EXT@ @SOCKET_LIB@
Theodore Ts'o77200f42000-01-18 17:53:27 +000079DEPPROFILED_LIBUUID = $(LIB)/libuuid@PROFILED_LIB_EXT@
Theodore Ts'oa4d09611997-04-29 14:28:00 +000080
81#
Theodore Ts'o50e1e101997-04-26 13:58:21 +000082# Use these definitions is you use tools 2.x, x < 16
83#
84#DLL_BIN=/usr/dll/bin
85#JUMP_PREFIX=/usr/dll/jump/
86
87#
88# Use these definitions if you use tools 2.16 or above
89#
90DLL_BIN=/usr/bin
91JUMP_PREFIX=/usr/bin/jump
92
93# An include directive pointing to a directory holding enough linux-like
94# include files to satisfy some programs here
95LINUX_INCLUDE=@LINUX_INCLUDE@
96
97#
Theodore Ts'oa4d09611997-04-29 14:28:00 +000098# A fast substitution command for fixing up man pages, shell scripts, etc.
99#
Theodore Ts'o44339bd1997-10-15 02:47:20 +0000100SUBST_CONF=$(top_builddir)/util/subst.conf
101SUBSTITUTE= $(top_builddir)/util/subst -f $(SUBST_CONF)
102DEP_SUBSTITUTE= $(top_builddir)/util/subst $(SUBST_CONF)
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000103
Theodore Ts'oef8901b1999-07-03 04:55:36 +0000104$(top_builddir)/util/subst:
Theodore Ts'oe8aed8c2000-04-03 03:18:59 +0000105 cd $(top_builddir)/util ; $(MAKE) subst
Theodore Ts'oef8901b1999-07-03 04:55:36 +0000106
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000107#
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000108# Warning flags
109#
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +0000110# Run make gcc-wall to do a build with warning messages.
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000111#
112#
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +0000113WFLAGS= -ansi -D_POSIX_SOURCE -pedantic \
114 -Wall -Wwrite-strings -Wpointer-arith \
115 -Wcast-qual -Wcast-align -Wtraditional \
116 -Wstrict-prototypes -Wmissing-prototypes \
117 -Wnested-externs -Winline -DNO_INLINE_FUNCS -Wshadow
118
Theodore Ts'oc8c071a2001-01-11 16:08:23 +0000119gcc-wall-new:
120 (make USE_WFLAGS="$(WFLAGS)" > /dev/null) 2>&1 | sed -f $(top_srcdir)/util/gcc-wall-cleanup
121
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +0000122gcc-wall:
123 make clean > /dev/null
Theodore Ts'oc8c071a2001-01-11 16:08:23 +0000124 make gcc-wall-new
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000125
126#
127# Installation user and groups
128#
129BINGRP= bin
130BINOWN= bin
131BINMODE= 555
132INCGRP= bin
133INCOWN= bin
134INCMODE= 444
135LIBOWN= bin
136LIBGRP= bin
137LIBMODE= 444
138MANGRP= bin
139MANOWN= bin
140MANMODE= 444
141
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000142#
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000143# Autoconf magic...
144#
145
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +0000146DEP_LIB_MAKEFILES = $(top_srcdir)/lib/Makefile.elf-lib \
147 $(top_srcdir)/lib/Makefile.dll-lib $(top_srcdir)/lib/Makefile.bsd-lib \
148 $(top_srcdir)/lib/Makefile.checker $(top_srcdir)/lib/Makefile.profile
149
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000150$(top_builddir)/config.status: $(top_srcdir)/configure
Theodore Ts'oe8aed8c2000-04-03 03:18:59 +0000151 cd $(top_builddir); ./config.status --recheck
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000152
153$(top_builddir)/MCONFIG: $(top_srcdir)/MCONFIG.in $(top_builddir)/config.status
Theodore Ts'oe8aed8c2000-04-03 03:18:59 +0000154 cd $(top_builddir); CONFIG_FILES=MCONFIG ./config.status
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000155
156$(top_builddir)/lib/substitute_sh: $(top_srcdir)/lib/substitute_sh.in \
157 $(top_builddir)/config.status
Theodore Ts'oe8aed8c2000-04-03 03:18:59 +0000158 cd $(top_builddir); CONFIG_FILES=lib/substitute_sh ./config.status
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000159
Theodore Ts'obf2602b1998-03-30 01:11:44 +0000160$(top_builddir)/util/subst.conf: $(top_srcdir)/util/subst.conf.in \
161 $(top_builddir)/config.status
Theodore Ts'oe8aed8c2000-04-03 03:18:59 +0000162 cd $(top_builddir); CONFIG_FILES=util/subst.conf ./config.status
Theodore Ts'obf2602b1998-03-30 01:11:44 +0000163
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000164Makefile: $(srcdir)/Makefile.in $(top_builddir)/MCONFIG \
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +0000165 $(DEP_MAKEFILE) $(top_builddir)/config.status
Theodore Ts'oe8aed8c2000-04-03 03:18:59 +0000166 cd $(top_builddir); CONFIG_FILES=$(my_dir)/Makefile ./config.status
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000167
168$(top_srcdir)/configure: $(top_srcdir)/configure.in
169 cd $(top_srcdir) && autoconf
170
171#
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000172# Make depend magic...
173#
174
Theodore Ts'o9d564f71999-07-03 20:25:58 +0000175.depend: Makefile $(SRCS) $(top_srcdir)/depfix.sed $(top_srcdir)/wordwrap.pl
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000176 if test -n "$(SRCS)" ; then \
Theodore Ts'o74becf31997-04-26 14:37:06 +0000177 $(CC) -M $(ALL_CFLAGS) $(SRCS) | \
Theodore Ts'o9d564f71999-07-03 20:25:58 +0000178 $(SED) -f $(top_srcdir)/depfix.sed \
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000179 -e 's; $(srcdir)/; $$(srcdir)/;g' \
180 -e 's; $(top_srcdir)/; $$(top_srcdir)/;g' \
181 -e 's; $(top_builddir)/; $$(top_builddir)/;g' \
182 -e 's; \./; ;g' \
Theodore Ts'o9d564f71999-07-03 20:25:58 +0000183 -e '/^ *\\$$/d' | \
184 $(PERL) $(top_srcdir)/wordwrap.pl > .depend; \
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000185 else :; fi
186
187depend:: .depend
188 if test -n "$(SRCS)" ; then \
189 sed -e '/^# +++ Dependency line eater +++/,$$d' \
190 < $(srcdir)/Makefile.in | cat - .depend \
191 > $(srcdir)/Makefile.in.new; \
Theodore Ts'o9d564f71999-07-03 20:25:58 +0000192 if cmp -s $(srcdir)/Makefile.in $(srcdir)/Makefile.in.new ; then \
193 $(RM) $(srcdir)/Makefile.in.new ; \
194 else \
195 $(MV) $(srcdir)/Makefile.in $(srcdir)/Makefile.in.old; \
196 $(MV) $(srcdir)/Makefile.in.new $(srcdir)/Makefile.in; \
197 fi ; else :; fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000198
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000199# End of file MCONFIG