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