1
# Beginning of file MCONFIG
2
3
all::
4
5
check::
6
7
SHELL = /bin/sh
8
9
COMPRESS_EXT = gz bz2 bz Z
10
11
prefix = @prefix@
12
root_prefix = @root_prefix@
13
exec_prefix = @exec_prefix@
14
root_bindir = @root_bindir@
15
root_sbindir = @root_sbindir@
16
root_libdir = @root_libdir@
17
datarootdir = @datarootdir@
18
bindir = @bindir@
19
sbindir = @sbindir@
20
libdir = @libdir@
21
datadir= @datadir@
22
localedir = $(datadir)/locale
23
root_sysconfdir= @root_sysconfdir@
24
includedir = @includedir@
25
mandir = @mandir@
26
man1dir = $(mandir)/man1
27
man3dir = $(mandir)/man3
28
man5dir = $(mandir)/man5
29
man8dir = $(mandir)/man8
30
infodir = @infodir@
31
datadir = @datadir@
32
33
@SET_MAKE@
34
35
CC = @CC@
36
BUILD_CC = @BUILD_CC@
37
DEFS = -DLOCALEDIR=\"$(localedir)\" -DROOT_SYSCONFDIR=\"$(root_sysconfdir)\" @DEFS@
38
CFLAGS = @CFLAGS@
39
CPPFLAGS =  -I$(top_builddir)/lib -I$(top_srcdir)/lib @CPPFLAGS@
40
INTL_FLAGS = @INTL_FLAGS@
41
ALL_CFLAGS = $(CPPFLAGS) $(DEFS) $(USE_WFLAGS) $(CFLAGS) $(XTRA_CFLAGS) \
42
	$(INTL_FLAGS) $(LINUX_INCLUDE) 
43
LDFLAGS = @LDFLAGS@
44
ALL_LDFLAGS = $(LDFLAGS)
45
BUILD_CFLAGS = @BUILD_CFLAGS@
46
BUILD_LDFLAGS = @BUILD_LDFLAGS@
47
RM = @RM@
48
LN = @LN@
49
LN_S = @LN_S@
50
MV = @MV@
51
CP = @CP@
52
CHMOD = @CHMOD@
53
AR = @AR@
54
AWK = @AWK@
55
SED = @SED@
56
PERL = @PERL@
57
RANLIB = @RANLIB@
58
STRIP = @STRIP@
59
LD = $(PURE) @CC@
60
ARUPD = $(AR) r
61
ARGEN = $(AR) rc
62
LDCONFIG = @LDCONFIG@
63
INSTALL_PROGRAM = @INSTALL_PROGRAM@
64
INSTALL_DATA = @INSTALL_DATA@
65
INSTALL_SCRIPT = @INSTALL_SCRIPT@
66
MKINSTALLDIRS = @MKINSTALLDIRS@
67
68
#
69
# Library definitions
70
#
71
DEVMAPPER_LIBS = @DEVMAPPER_LIBS@
72
STATIC_DEVMAPPER_LIBS = @STATIC_DEVMAPPER_LIBS@
73
74
LIB = $(top_builddir)/lib
75
LIBSS = $(LIB)/libss@LIB_EXT@
76
LIBCOM_ERR = $(LIB)/libcom_err@LIB_EXT@
77
LIBE2P = $(LIB)/libe2p@LIB_EXT@
78
LIBEXT2FS = $(LIB)/libext2fs@LIB_EXT@
79
LIBUUID = $(LIB)/libuuid@LIB_EXT@ @SOCKET_LIB@
80
LIBBLKID = $(LIB)/libblkid@LIB_EXT@ @STATIC_BLKID_DEVMAPPER_LIBS@
81
LIBINTL = @LIBINTL@
82
DEPLIBUUID = $(LIB)/libuuid@LIB_EXT@
83
DEPLIBBLKID = $(LIB)/libblkid@LIB_EXT@
84
85
STATIC_LIBSS = $(LIB)/libss@STATIC_LIB_EXT@
86
STATIC_LIBCOM_ERR = $(LIB)/libcom_err@STATIC_LIB_EXT@
87
STATIC_LIBE2P = $(LIB)/libe2p@STATIC_LIB_EXT@
88
STATIC_LIBEXT2FS = $(LIB)/libext2fs@STATIC_LIB_EXT@
89
STATIC_LIBUUID = $(LIB)/libuuid@STATIC_LIB_EXT@ @SOCKET_LIB@ 
90
STATIC_LIBBLKID = $(LIB)/libblkid@STATIC_LIB_EXT@ $(STATIC_DEVMAPPER_LIBS)
91
DEPSTATIC_LIBUUID = $(LIB)/libuuid@STATIC_LIB_EXT@
92
DEPSTATIC_LIBBLKID = $(LIB)/libblkid@STATIC_LIB_EXT@
93
94
PROFILED_LIBSS = $(LIB)/libss@PROFILED_LIB_EXT@
95
PROFILED_LIBCOM_ERR = $(LIB)/libcom_err@PROFILED_LIB_EXT@
96
PROFILED_LIBE2P = $(LIB)/libe2p@PROFILED_LIB_EXT@
97
PROFILED_LIBEXT2FS = $(LIB)/libext2fs@PROFILED_LIB_EXT@
98
PROFILED_LIBUUID = $(LIB)/libuuid@PROFILED_LIB_EXT@ @SOCKET_LIB@ 
99
PROFILED_LIBBLKID = $(LIB)/libblkid@PROFILED_LIB_EXT@
100
DEPPROFILED_LIBUUID = $(LIB)/libuuid@PROFILED_LIB_EXT@
101
DEPPROFILED_LIBBLKID = $(LIB)/libblkid@PROFILED_LIB_EXT@
102
103
# An include directive pointing to a directory holding enough linux-like
104
# include files to satisfy some programs here
105
LINUX_INCLUDE=@LINUX_INCLUDE@
106
107
#
108
# A fast substitution command for fixing up man pages, shell scripts, etc.
109
#
110
SUBST_CONF=$(top_builddir)/util/subst.conf
111
SUBSTITUTE= $(top_builddir)/util/subst -f $(SUBST_CONF)
112
SUBSTITUTE_UPTIME= $(top_builddir)/util/subst -t -f $(SUBST_CONF)
113
DEP_SUBSTITUTE= $(top_builddir)/util/subst $(SUBST_CONF)
114
115
$(top_builddir)/util/subst:
116
	cd $(top_builddir)/util ; $(MAKE) subst
117
118
#
119
# Warning flags
120
#
121
# Run make gcc-wall to do a build with warning messages.
122
#
123
#
124
WFLAGS=		-std=c99 -D_XOPEN_SOURCE=600 -D_GNU_SOURCE \
125
			-pedantic $(WFLAGS_EXTRA) \
126
			-Wall -W -Wwrite-strings -Wpointer-arith \
127
			-Wcast-qual -Wcast-align -Wno-variadic-macros \
128
			-Wstrict-prototypes -Wmissing-prototypes \
129
			-Wformat-security  -Wformat-nonliteral \
130
			-Wmissing-format-attribute -O2 -Wstrict-aliasing \
131
			-Wnested-externs -Winline -DNO_INLINE_FUNCS -Wshadow \
132
			-UENABLE_NLS
133
134
gcc-wall-new:
135
	(make USE_WFLAGS="$(WFLAGS)" > /dev/null) 2>&1 | sed -f $(top_srcdir)/util/gcc-wall-cleanup 
136
137
gcc-wall:
138
	make clean > /dev/null
139
	make gcc-wall-new
140
141
#
142
# Installation user and groups
143
#
144
BINGRP=		bin
145
BINOWN=		bin
146
BINMODE=	555
147
INCGRP=		bin
148
INCOWN=		bin
149
INCMODE=	444
150
LIBOWN=		bin
151
LIBGRP=		bin
152
LIBMODE=	444
153
MANGRP=		bin
154
MANOWN=		bin
155
MANMODE=	444
156
157
#
158
# Autoconf magic...
159
#
160
161
DEP_LIB_MAKEFILES = $(top_srcdir)/lib/Makefile.elf-lib  \
162
	$(top_srcdir)/lib/Makefile.bsd-lib $(top_srcdir)/lib/Makefile.darwin-lib \
163
	$(top_srcdir)/lib/Makefile.solaris-lib $(top_srcdir)/lib/Makefile.checker \
164
	$(top_srcdir)/lib/Makefile.profile
165
166
$(top_builddir)/config.status: $(top_srcdir)/configure
167
	cd $(top_builddir); ./config.status --recheck
168
169
$(top_builddir)/MCONFIG: $(top_srcdir)/MCONFIG.in $(top_builddir)/config.status
170
	cd $(top_builddir); CONFIG_FILES=MCONFIG ./config.status
171
172
$(top_builddir)/lib/substitute_sh: $(top_srcdir)/lib/substitute_sh.in \
173
		$(top_builddir)/config.status
174
	cd $(top_builddir); CONFIG_FILES=lib/substitute_sh ./config.status
175
176
$(top_builddir)/util/subst.conf: $(top_srcdir)/util/subst.conf.in \
177
		$(top_builddir)/config.status
178
	cd $(top_builddir); CONFIG_FILES=util/subst.conf ./config.status
179
180
Makefile: $(srcdir)/Makefile.in $(top_builddir)/MCONFIG \
181
		$(DEP_MAKEFILE) $(top_builddir)/config.status
182
	cd $(top_builddir); CONFIG_FILES=$(my_dir)/Makefile ./config.status
183
184
@MAINTAINER_CMT@$(top_srcdir)/configure: $(top_srcdir)/configure.in
185
@MAINTAINER_CMT@	cd $(top_srcdir) && autoconf
186
187
#
188
# Make depend magic...
189
#
190
191
.depend: Makefile $(SRCS) $(top_srcdir)/depfix.sed $(top_srcdir)/wordwrap.pl
192
	if test -n "$(SRCS)" ; then \
193
		$(CC) -M $(ALL_CFLAGS) $(SRCS) | \
194
			$(SED) -f $(top_srcdir)/depfix.sed \
195
			    -e 's; $(srcdir)/; $$(srcdir)/;g' \
196
			    -e 's; $(top_srcdir)/; $$(top_srcdir)/;g' \
197
			    -e 's; $(top_builddir)/; $$(top_builddir)/;g' \
198
			    -e 's; \./; ;g' \
199
			    -e '/^#/d' \
200
			    -e '/^ *\\$$/d' | \
201
			$(PERL) $(top_srcdir)/wordwrap.pl > .depend; \
202
	else :; fi
203
204
depend:: .depend
205
	if test -n "$(SRCS)" ; then \
206
		sed -e '/^# +++ Dependency line eater +++/,$$d' \
207
			< $(srcdir)/Makefile.in | cat - .depend \
208
			> $(srcdir)/Makefile.in.new; \
209
	if cmp -s $(srcdir)/Makefile.in $(srcdir)/Makefile.in.new ; then \
210
		$(RM) $(srcdir)/Makefile.in.new ; \
211
	else \
212
		$(MV) $(srcdir)/Makefile.in $(srcdir)/Makefile.in.old; \
213
		$(MV) $(srcdir)/Makefile.in.new $(srcdir)/Makefile.in; \
214
	fi ; else :; fi
215
216
# End of file MCONFIG