blob: 89918ca64585751a8765f34645184cd623f4d670 [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@
Theodore Ts'oe8aed8c2000-04-03 03:18:59 +000032CPPFLAGS = @CPPFLAGS@
Theodore Ts'o74becf31997-04-26 14:37:06 +000033ALL_CFLAGS = $(CPPFLAGS) $(DEFS) $(WFLAGS) $(CFLAGS) $(XTRA_CFLAGS) \
Theodore Ts'o73ae2d42000-02-02 16:13:14 +000034 -I$(top_builddir)/lib -I$(top_srcdir)/lib \
35 -I$(top_srcdir)/include $(LINUX_INCLUDE)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000036LDFLAGS = @LDFLAGS@
Theodore Ts'o74becf31997-04-26 14:37:06 +000037ALL_LDFLAGS = $(LDFLAGS)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000038RM = @RM@
39LN = @LN@
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000040LN_S = @LN_S@
Theodore Ts'o50e1e101997-04-26 13:58:21 +000041MV = @MV@
42CP = @CP@
43CHMOD = @CHMOD@
44AR = @AR@
45AWK = @AWK@
46SED = @SED@
Theodore Ts'o9d564f71999-07-03 20:25:58 +000047PERL = @PERL@
Theodore Ts'o50e1e101997-04-26 13:58:21 +000048RANLIB = @RANLIB@
49STRIP = @STRIP@
50LD = $(PURE) @CC@
51ARUPD = $(AR) r
52
53#
Theodore Ts'oa4d09611997-04-29 14:28:00 +000054# Library definitions
55#
56LIB = $(top_builddir)/lib
57LIBSS = $(LIB)/libss@LIB_EXT@
58LIBCOM_ERR = $(LIB)/libcom_err@LIB_EXT@
59LIBE2P = $(LIB)/libe2p@LIB_EXT@
60LIBEXT2FS = $(LIB)/libext2fs@LIB_EXT@
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000061LIBUUID = $(LIB)/libuuid@LIB_EXT@ @SOCKET_LIB@
Theodore Ts'o77200f42000-01-18 17:53:27 +000062DEPLIBUUID = $(LIB)/libuuid@LIB_EXT@
Theodore Ts'oa4d09611997-04-29 14:28:00 +000063
64STATIC_LIBSS = $(LIB)/libss@STATIC_LIB_EXT@
65STATIC_LIBCOM_ERR = $(LIB)/libcom_err@STATIC_LIB_EXT@
66STATIC_LIBE2P = $(LIB)/libe2p@STATIC_LIB_EXT@
67STATIC_LIBEXT2FS = $(LIB)/libext2fs@STATIC_LIB_EXT@
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000068STATIC_LIBUUID = $(LIB)/libuuid@STATIC_LIB_EXT@ @SOCKET_LIB@
Theodore Ts'o77200f42000-01-18 17:53:27 +000069DEPSTATIC_LIBUUID = $(LIB)/libuuid@STATIC_LIB_EXT@
Theodore Ts'oa4d09611997-04-29 14:28:00 +000070
71PROFILED_LIBSS = $(LIB)/libss@PROFILED_LIB_EXT@
72PROFILED_LIBCOM_ERR = $(LIB)/libcom_err@PROFILED_LIB_EXT@
73PROFILED_LIBE2P = $(LIB)/libe2p@PROFILED_LIB_EXT@
74PROFILED_LIBEXT2FS = $(LIB)/libext2fs@PROFILED_LIB_EXT@
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000075PROFILED_LIBUUID = $(LIB)/libuuid@PROFILED_LIB_EXT@ @SOCKET_LIB@
Theodore Ts'o77200f42000-01-18 17:53:27 +000076DEPPROFILED_LIBUUID = $(LIB)/libuuid@PROFILED_LIB_EXT@
Theodore Ts'oa4d09611997-04-29 14:28:00 +000077
78#
Theodore Ts'o50e1e101997-04-26 13:58:21 +000079# Use these definitions is you use tools 2.x, x < 16
80#
81#DLL_BIN=/usr/dll/bin
82#JUMP_PREFIX=/usr/dll/jump/
83
84#
85# Use these definitions if you use tools 2.16 or above
86#
87DLL_BIN=/usr/bin
88JUMP_PREFIX=/usr/bin/jump
89
90# An include directive pointing to a directory holding enough linux-like
91# include files to satisfy some programs here
92LINUX_INCLUDE=@LINUX_INCLUDE@
93
94#
Theodore Ts'oa4d09611997-04-29 14:28:00 +000095# A fast substitution command for fixing up man pages, shell scripts, etc.
96#
Theodore Ts'o44339bd1997-10-15 02:47:20 +000097SUBST_CONF=$(top_builddir)/util/subst.conf
98SUBSTITUTE= $(top_builddir)/util/subst -f $(SUBST_CONF)
99DEP_SUBSTITUTE= $(top_builddir)/util/subst $(SUBST_CONF)
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000100
Theodore Ts'oef8901b1999-07-03 04:55:36 +0000101$(top_builddir)/util/subst:
Theodore Ts'oe8aed8c2000-04-03 03:18:59 +0000102 cd $(top_builddir)/util ; $(MAKE) subst
Theodore Ts'oef8901b1999-07-03 04:55:36 +0000103
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000104#
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000105# Warning flags
106#
107# Uncomment WFLAGS if you want really anal GCC warning messages
108#
109#
110@W@WFLAGS= -ansi -D_POSIX_SOURCE -pedantic \
111@W@ -Wall -Wwrite-strings -Wpointer-arith \
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000112@W@ -Wcast-qual -Wcast-align -Wtraditional \
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000113@W@ -Wstrict-prototypes -Wmissing-prototypes \
114@W@ -Wnested-externs -Winline -DNO_INLINE_FUNCS -Wshadow
115
116#
117# Installation user and groups
118#
119BINGRP= bin
120BINOWN= bin
121BINMODE= 555
122INCGRP= bin
123INCOWN= bin
124INCMODE= 444
125LIBOWN= bin
126LIBGRP= bin
127LIBMODE= 444
128MANGRP= bin
129MANOWN= bin
130MANMODE= 444
131
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000132#
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000133# Autoconf magic...
134#
135
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +0000136DEP_LIB_MAKEFILES = $(top_srcdir)/lib/Makefile.elf-lib \
137 $(top_srcdir)/lib/Makefile.dll-lib $(top_srcdir)/lib/Makefile.bsd-lib \
138 $(top_srcdir)/lib/Makefile.checker $(top_srcdir)/lib/Makefile.profile
139
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000140$(top_builddir)/config.status: $(top_srcdir)/configure
Theodore Ts'oe8aed8c2000-04-03 03:18:59 +0000141 cd $(top_builddir); ./config.status --recheck
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000142
143$(top_builddir)/MCONFIG: $(top_srcdir)/MCONFIG.in $(top_builddir)/config.status
Theodore Ts'oe8aed8c2000-04-03 03:18:59 +0000144 cd $(top_builddir); CONFIG_FILES=MCONFIG ./config.status
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000145
146$(top_builddir)/lib/substitute_sh: $(top_srcdir)/lib/substitute_sh.in \
147 $(top_builddir)/config.status
Theodore Ts'oe8aed8c2000-04-03 03:18:59 +0000148 cd $(top_builddir); CONFIG_FILES=lib/substitute_sh ./config.status
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000149
Theodore Ts'obf2602b1998-03-30 01:11:44 +0000150$(top_builddir)/util/subst.conf: $(top_srcdir)/util/subst.conf.in \
151 $(top_builddir)/config.status
Theodore Ts'oe8aed8c2000-04-03 03:18:59 +0000152 cd $(top_builddir); CONFIG_FILES=util/subst.conf ./config.status
Theodore Ts'obf2602b1998-03-30 01:11:44 +0000153
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000154Makefile: $(srcdir)/Makefile.in $(top_builddir)/MCONFIG \
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +0000155 $(DEP_MAKEFILE) $(top_builddir)/config.status
Theodore Ts'oe8aed8c2000-04-03 03:18:59 +0000156 cd $(top_builddir); CONFIG_FILES=$(my_dir)/Makefile ./config.status
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000157
158$(top_srcdir)/configure: $(top_srcdir)/configure.in
159 cd $(top_srcdir) && autoconf
160
161#
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000162# Make depend magic...
163#
164
Theodore Ts'o9d564f71999-07-03 20:25:58 +0000165.depend: Makefile $(SRCS) $(top_srcdir)/depfix.sed $(top_srcdir)/wordwrap.pl
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000166 if test -n "$(SRCS)" ; then \
Theodore Ts'o74becf31997-04-26 14:37:06 +0000167 $(CC) -M $(ALL_CFLAGS) $(SRCS) | \
Theodore Ts'o9d564f71999-07-03 20:25:58 +0000168 $(SED) -f $(top_srcdir)/depfix.sed \
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000169 -e 's; $(srcdir)/; $$(srcdir)/;g' \
170 -e 's; $(top_srcdir)/; $$(top_srcdir)/;g' \
171 -e 's; $(top_builddir)/; $$(top_builddir)/;g' \
172 -e 's; \./; ;g' \
Theodore Ts'o9d564f71999-07-03 20:25:58 +0000173 -e '/^ *\\$$/d' | \
174 $(PERL) $(top_srcdir)/wordwrap.pl > .depend; \
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000175 else :; fi
176
177depend:: .depend
178 if test -n "$(SRCS)" ; then \
179 sed -e '/^# +++ Dependency line eater +++/,$$d' \
180 < $(srcdir)/Makefile.in | cat - .depend \
181 > $(srcdir)/Makefile.in.new; \
Theodore Ts'o9d564f71999-07-03 20:25:58 +0000182 if cmp -s $(srcdir)/Makefile.in $(srcdir)/Makefile.in.new ; then \
183 $(RM) $(srcdir)/Makefile.in.new ; \
184 else \
185 $(MV) $(srcdir)/Makefile.in $(srcdir)/Makefile.in.old; \
186 $(MV) $(srcdir)/Makefile.in.new $(srcdir)/Makefile.in; \
187 fi ; else :; fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000188
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000189# End of file MCONFIG