blob: 54047997c8063953841c08773b10655e70f449a5 [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'o50e1e101997-04-26 13:58:21 +00005SHELL = /bin/sh
6
7prefix = @prefix@
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00008root_prefix = @root_prefix@
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009exec_prefix = @exec_prefix@
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000010root_bindir = $(root_prefix)/bin
11root_sbindir = $(root_prefix)/sbin
12root_libdir = $(root_prefix)/lib
13bindir = @bindir@
14sbindir = @sbindir@
15libdir = @libdir@
16includedir = @includedir@
17mandir = @mandir@
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000018man1dir = $(mandir)/man1
19man3dir = $(mandir)/man3
20man8dir = $(mandir)/man8
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000021infodir = @infodir@
22datadir = @datadir@
Theodore Ts'o50e1e101997-04-26 13:58:21 +000023
24@SET_MAKE@
25
26INSTALL_PROGRAM = @INSTALL_PROGRAM@
27INSTALL_DATA = @INSTALL_DATA@
28CC = @CC@
Theodore Ts'o6c133521999-07-03 20:37:03 +000029BUILD_CC = @BUILD_CC@
Theodore Ts'o50e1e101997-04-26 13:58:21 +000030DEFS = @DEFS@
Theodore Ts'o74becf31997-04-26 14:37:06 +000031CFLAGS = @CFLAGS@
32ALL_CFLAGS = $(CPPFLAGS) $(DEFS) $(WFLAGS) $(CFLAGS) $(XTRA_CFLAGS) \
Theodore Ts'o73ae2d42000-02-02 16:13:14 +000033 -I$(top_builddir)/lib -I$(top_srcdir)/lib \
34 -I$(top_srcdir)/include $(LINUX_INCLUDE)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000035LDFLAGS = @LDFLAGS@
Theodore Ts'o74becf31997-04-26 14:37:06 +000036ALL_LDFLAGS = $(LDFLAGS)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000037RM = @RM@
38LN = @LN@
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000039LN_S = @LN_S@
Theodore Ts'o50e1e101997-04-26 13:58:21 +000040MV = @MV@
41CP = @CP@
42CHMOD = @CHMOD@
43AR = @AR@
44AWK = @AWK@
45SED = @SED@
Theodore Ts'o9d564f71999-07-03 20:25:58 +000046PERL = @PERL@
Theodore Ts'o50e1e101997-04-26 13:58:21 +000047RANLIB = @RANLIB@
48STRIP = @STRIP@
49LD = $(PURE) @CC@
50ARUPD = $(AR) r
51
52#
Theodore Ts'oa4d09611997-04-29 14:28:00 +000053# Library definitions
54#
55LIB = $(top_builddir)/lib
56LIBSS = $(LIB)/libss@LIB_EXT@
57LIBCOM_ERR = $(LIB)/libcom_err@LIB_EXT@
58LIBE2P = $(LIB)/libe2p@LIB_EXT@
59LIBEXT2FS = $(LIB)/libext2fs@LIB_EXT@
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000060LIBUUID = $(LIB)/libuuid@LIB_EXT@ @SOCKET_LIB@
Theodore Ts'o77200f42000-01-18 17:53:27 +000061DEPLIBUUID = $(LIB)/libuuid@LIB_EXT@
Theodore Ts'oa4d09611997-04-29 14:28:00 +000062
63STATIC_LIBSS = $(LIB)/libss@STATIC_LIB_EXT@
64STATIC_LIBCOM_ERR = $(LIB)/libcom_err@STATIC_LIB_EXT@
65STATIC_LIBE2P = $(LIB)/libe2p@STATIC_LIB_EXT@
66STATIC_LIBEXT2FS = $(LIB)/libext2fs@STATIC_LIB_EXT@
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000067STATIC_LIBUUID = $(LIB)/libuuid@STATIC_LIB_EXT@ @SOCKET_LIB@
Theodore Ts'o77200f42000-01-18 17:53:27 +000068DEPSTATIC_LIBUUID = $(LIB)/libuuid@STATIC_LIB_EXT@
Theodore Ts'oa4d09611997-04-29 14:28:00 +000069
70PROFILED_LIBSS = $(LIB)/libss@PROFILED_LIB_EXT@
71PROFILED_LIBCOM_ERR = $(LIB)/libcom_err@PROFILED_LIB_EXT@
72PROFILED_LIBE2P = $(LIB)/libe2p@PROFILED_LIB_EXT@
73PROFILED_LIBEXT2FS = $(LIB)/libext2fs@PROFILED_LIB_EXT@
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000074PROFILED_LIBUUID = $(LIB)/libuuid@PROFILED_LIB_EXT@ @SOCKET_LIB@
Theodore Ts'o77200f42000-01-18 17:53:27 +000075DEPPROFILED_LIBUUID = $(LIB)/libuuid@PROFILED_LIB_EXT@
Theodore Ts'oa4d09611997-04-29 14:28:00 +000076
77#
Theodore Ts'o50e1e101997-04-26 13:58:21 +000078# Use these definitions is you use tools 2.x, x < 16
79#
80#DLL_BIN=/usr/dll/bin
81#JUMP_PREFIX=/usr/dll/jump/
82
83#
84# Use these definitions if you use tools 2.16 or above
85#
86DLL_BIN=/usr/bin
87JUMP_PREFIX=/usr/bin/jump
88
89# An include directive pointing to a directory holding enough linux-like
90# include files to satisfy some programs here
91LINUX_INCLUDE=@LINUX_INCLUDE@
92
93#
Theodore Ts'oa4d09611997-04-29 14:28:00 +000094# A fast substitution command for fixing up man pages, shell scripts, etc.
95#
Theodore Ts'o44339bd1997-10-15 02:47:20 +000096SUBST_CONF=$(top_builddir)/util/subst.conf
97SUBSTITUTE= $(top_builddir)/util/subst -f $(SUBST_CONF)
98DEP_SUBSTITUTE= $(top_builddir)/util/subst $(SUBST_CONF)
Theodore Ts'oa4d09611997-04-29 14:28:00 +000099
Theodore Ts'oef8901b1999-07-03 04:55:36 +0000100$(top_builddir)/util/subst:
Theodore Ts'o77200f42000-01-18 17:53:27 +0000101 (cd $(top_builddir)/util ; $(MAKE) subst)
Theodore Ts'oef8901b1999-07-03 04:55:36 +0000102
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000103#
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000104# Warning flags
105#
106# Uncomment WFLAGS if you want really anal GCC warning messages
107#
108#
109@W@WFLAGS= -ansi -D_POSIX_SOURCE -pedantic \
110@W@ -Wall -Wwrite-strings -Wpointer-arith \
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000111@W@ -Wcast-qual -Wcast-align -Wtraditional \
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000112@W@ -Wstrict-prototypes -Wmissing-prototypes \
113@W@ -Wnested-externs -Winline -DNO_INLINE_FUNCS -Wshadow
114
115#
116# Installation user and groups
117#
118BINGRP= bin
119BINOWN= bin
120BINMODE= 555
121INCGRP= bin
122INCOWN= bin
123INCMODE= 444
124LIBOWN= bin
125LIBGRP= bin
126LIBMODE= 444
127MANGRP= bin
128MANOWN= bin
129MANMODE= 444
130
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000131#
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000132# Autoconf magic...
133#
134
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +0000135DEP_LIB_MAKEFILES = $(top_srcdir)/lib/Makefile.elf-lib \
136 $(top_srcdir)/lib/Makefile.dll-lib $(top_srcdir)/lib/Makefile.bsd-lib \
137 $(top_srcdir)/lib/Makefile.checker $(top_srcdir)/lib/Makefile.profile
138
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000139$(top_builddir)/config.status: $(top_srcdir)/configure
140 (cd $(top_builddir); ./config.status --recheck)
141
142$(top_builddir)/MCONFIG: $(top_srcdir)/MCONFIG.in $(top_builddir)/config.status
143 (cd $(top_builddir); CONFIG_FILES=MCONFIG ./config.status)
144
145$(top_builddir)/lib/substitute_sh: $(top_srcdir)/lib/substitute_sh.in \
146 $(top_builddir)/config.status
147 (cd $(top_builddir); CONFIG_FILES=lib/substitute_sh ./config.status)
148
Theodore Ts'obf2602b1998-03-30 01:11:44 +0000149$(top_builddir)/util/subst.conf: $(top_srcdir)/util/subst.conf.in \
150 $(top_builddir)/config.status
151 (cd $(top_builddir); CONFIG_FILES=util/subst.conf ./config.status)
152
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000153Makefile: $(srcdir)/Makefile.in $(top_builddir)/MCONFIG \
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +0000154 $(DEP_MAKEFILE) $(top_builddir)/config.status
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000155 (cd $(top_builddir); CONFIG_FILES=$(my_dir)/Makefile ./config.status)
156
157$(top_srcdir)/configure: $(top_srcdir)/configure.in
158 cd $(top_srcdir) && autoconf
159
160#
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000161# Make depend magic...
162#
163
Theodore Ts'o9d564f71999-07-03 20:25:58 +0000164.depend: Makefile $(SRCS) $(top_srcdir)/depfix.sed $(top_srcdir)/wordwrap.pl
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000165 if test -n "$(SRCS)" ; then \
Theodore Ts'o74becf31997-04-26 14:37:06 +0000166 $(CC) -M $(ALL_CFLAGS) $(SRCS) | \
Theodore Ts'o9d564f71999-07-03 20:25:58 +0000167 $(SED) -f $(top_srcdir)/depfix.sed \
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000168 -e 's; $(srcdir)/; $$(srcdir)/;g' \
169 -e 's; $(top_srcdir)/; $$(top_srcdir)/;g' \
170 -e 's; $(top_builddir)/; $$(top_builddir)/;g' \
171 -e 's; \./; ;g' \
Theodore Ts'o9d564f71999-07-03 20:25:58 +0000172 -e '/^ *\\$$/d' | \
173 $(PERL) $(top_srcdir)/wordwrap.pl > .depend; \
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000174 else :; fi
175
176depend:: .depend
177 if test -n "$(SRCS)" ; then \
178 sed -e '/^# +++ Dependency line eater +++/,$$d' \
179 < $(srcdir)/Makefile.in | cat - .depend \
180 > $(srcdir)/Makefile.in.new; \
Theodore Ts'o9d564f71999-07-03 20:25:58 +0000181 if cmp -s $(srcdir)/Makefile.in $(srcdir)/Makefile.in.new ; then \
182 $(RM) $(srcdir)/Makefile.in.new ; \
183 else \
184 $(MV) $(srcdir)/Makefile.in $(srcdir)/Makefile.in.old; \
185 $(MV) $(srcdir)/Makefile.in.new $(srcdir)/Makefile.in; \
186 fi ; else :; fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000187
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000188# End of file MCONFIG