Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1 | # Beginning of file MCONFIG |
| 2 | |
Theodore Ts'o | ef8901b | 1999-07-03 04:55:36 +0000 | [diff] [blame] | 3 | all:: |
| 4 | |
Theodore Ts'o | 3e377db | 2000-12-09 02:37:33 +0000 | [diff] [blame] | 5 | check:: |
| 6 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 7 | SHELL = /bin/sh |
| 8 | |
Theodore Ts'o | 482afc4 | 2002-10-31 03:32:34 -0500 | [diff] [blame] | 9 | COMPRESS_EXT = gz bz2 bz Z |
| 10 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11 | prefix = @prefix@ |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 12 | root_prefix = @root_prefix@ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13 | exec_prefix = @exec_prefix@ |
Theodore Ts'o | b5ffead | 2002-05-11 19:17:00 -0400 | [diff] [blame] | 14 | root_bindir = @root_bindir@ |
| 15 | root_sbindir = @root_sbindir@ |
| 16 | root_libdir = @root_libdir@ |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 17 | bindir = @bindir@ |
| 18 | sbindir = @sbindir@ |
| 19 | libdir = @libdir@ |
Theodore Ts'o | b5ffead | 2002-05-11 19:17:00 -0400 | [diff] [blame] | 20 | datadir= @datadir@ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 21 | localedir = $(datadir)/locale |
Theodore Ts'o | b5ffead | 2002-05-11 19:17:00 -0400 | [diff] [blame] | 22 | root_sysconfdir= @root_sysconfdir@ |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 23 | includedir = @includedir@ |
| 24 | mandir = @mandir@ |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 25 | man1dir = $(mandir)/man1 |
| 26 | man3dir = $(mandir)/man3 |
| 27 | man8dir = $(mandir)/man8 |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 28 | infodir = @infodir@ |
| 29 | datadir = @datadir@ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 30 | |
| 31 | @SET_MAKE@ |
| 32 | |
| 33 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
| 34 | INSTALL_DATA = @INSTALL_DATA@ |
| 35 | CC = @CC@ |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 36 | BUILD_CC = @BUILD_CC@ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 37 | DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@ |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 38 | CFLAGS = @CFLAGS@ |
Theodore Ts'o | e8aed8c | 2000-04-03 03:18:59 +0000 | [diff] [blame] | 39 | CPPFLAGS = @CPPFLAGS@ |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame] | 40 | INTL_FLAGS = @INTL_FLAGS@ |
Theodore Ts'o | 4d0f3e1 | 2001-01-11 15:48:50 +0000 | [diff] [blame] | 41 | ALL_CFLAGS = $(CPPFLAGS) $(DEFS) $(USE_WFLAGS) $(CFLAGS) $(XTRA_CFLAGS) \ |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame] | 42 | $(INTL_FLAGS) -I$(top_builddir)/lib -I$(top_srcdir)/lib \ |
| 43 | $(LINUX_INCLUDE) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 44 | LDFLAGS = @LDFLAGS@ |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 45 | ALL_LDFLAGS = $(LDFLAGS) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 46 | RM = @RM@ |
| 47 | LN = @LN@ |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 48 | LN_S = @LN_S@ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 49 | MV = @MV@ |
| 50 | CP = @CP@ |
| 51 | CHMOD = @CHMOD@ |
| 52 | AR = @AR@ |
| 53 | AWK = @AWK@ |
| 54 | SED = @SED@ |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 55 | PERL = @PERL@ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 56 | RANLIB = @RANLIB@ |
| 57 | STRIP = @STRIP@ |
| 58 | LD = $(PURE) @CC@ |
| 59 | ARUPD = $(AR) r |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 60 | LDCONFIG = @LDCONFIG@ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 61 | |
| 62 | # |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 63 | # Library definitions |
| 64 | # |
| 65 | LIB = $(top_builddir)/lib |
| 66 | LIBSS = $(LIB)/libss@LIB_EXT@ |
| 67 | LIBCOM_ERR = $(LIB)/libcom_err@LIB_EXT@ |
| 68 | LIBE2P = $(LIB)/libe2p@LIB_EXT@ |
| 69 | LIBEXT2FS = $(LIB)/libext2fs@LIB_EXT@ |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 70 | LIBUUID = $(LIB)/libuuid@LIB_EXT@ @SOCKET_LIB@ |
Theodore Ts'o | e12f2ae | 2003-01-23 16:45:16 -0500 | [diff] [blame] | 71 | LIBBLKID = $(LIB)/libblkid@LIB_EXT@ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 72 | LIBINTL = @LIBINTL@ |
Theodore Ts'o | 77200f4 | 2000-01-18 17:53:27 +0000 | [diff] [blame] | 73 | DEPLIBUUID = $(LIB)/libuuid@LIB_EXT@ |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 74 | |
| 75 | STATIC_LIBSS = $(LIB)/libss@STATIC_LIB_EXT@ |
| 76 | STATIC_LIBCOM_ERR = $(LIB)/libcom_err@STATIC_LIB_EXT@ |
| 77 | STATIC_LIBE2P = $(LIB)/libe2p@STATIC_LIB_EXT@ |
| 78 | STATIC_LIBEXT2FS = $(LIB)/libext2fs@STATIC_LIB_EXT@ |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 79 | STATIC_LIBUUID = $(LIB)/libuuid@STATIC_LIB_EXT@ @SOCKET_LIB@ |
Theodore Ts'o | e12f2ae | 2003-01-23 16:45:16 -0500 | [diff] [blame] | 80 | STATIC_LIBBLKID = $(LIB)/libblkid@STATIC_LIB_EXT@ |
Theodore Ts'o | 77200f4 | 2000-01-18 17:53:27 +0000 | [diff] [blame] | 81 | DEPSTATIC_LIBUUID = $(LIB)/libuuid@STATIC_LIB_EXT@ |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 82 | |
| 83 | PROFILED_LIBSS = $(LIB)/libss@PROFILED_LIB_EXT@ |
| 84 | PROFILED_LIBCOM_ERR = $(LIB)/libcom_err@PROFILED_LIB_EXT@ |
| 85 | PROFILED_LIBE2P = $(LIB)/libe2p@PROFILED_LIB_EXT@ |
| 86 | PROFILED_LIBEXT2FS = $(LIB)/libext2fs@PROFILED_LIB_EXT@ |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 87 | PROFILED_LIBUUID = $(LIB)/libuuid@PROFILED_LIB_EXT@ @SOCKET_LIB@ |
Theodore Ts'o | e12f2ae | 2003-01-23 16:45:16 -0500 | [diff] [blame] | 88 | PROFILED_LIBBLKID = $(LIB)/libblkid@PROFILED_LIB_EXT@ |
Theodore Ts'o | 77200f4 | 2000-01-18 17:53:27 +0000 | [diff] [blame] | 89 | DEPPROFILED_LIBUUID = $(LIB)/libuuid@PROFILED_LIB_EXT@ |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 90 | |
| 91 | # |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 92 | # Use these definitions is you use tools 2.x, x < 16 |
| 93 | # |
| 94 | #DLL_BIN=/usr/dll/bin |
| 95 | #JUMP_PREFIX=/usr/dll/jump/ |
| 96 | |
| 97 | # |
| 98 | # Use these definitions if you use tools 2.16 or above |
| 99 | # |
| 100 | DLL_BIN=/usr/bin |
| 101 | JUMP_PREFIX=/usr/bin/jump |
| 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 | # |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 108 | # A fast substitution command for fixing up man pages, shell scripts, etc. |
| 109 | # |
Theodore Ts'o | 44339bd | 1997-10-15 02:47:20 +0000 | [diff] [blame] | 110 | SUBST_CONF=$(top_builddir)/util/subst.conf |
| 111 | SUBSTITUTE= $(top_builddir)/util/subst -f $(SUBST_CONF) |
Theodore Ts'o | dd60705 | 2004-04-03 13:53:46 -0500 | [diff] [blame] | 112 | SUBSTITUTE_UPTIME= $(top_builddir)/util/subst -t -f $(SUBST_CONF) |
Theodore Ts'o | 44339bd | 1997-10-15 02:47:20 +0000 | [diff] [blame] | 113 | DEP_SUBSTITUTE= $(top_builddir)/util/subst $(SUBST_CONF) |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 114 | |
Theodore Ts'o | ef8901b | 1999-07-03 04:55:36 +0000 | [diff] [blame] | 115 | $(top_builddir)/util/subst: |
Theodore Ts'o | e8aed8c | 2000-04-03 03:18:59 +0000 | [diff] [blame] | 116 | cd $(top_builddir)/util ; $(MAKE) subst |
Theodore Ts'o | ef8901b | 1999-07-03 04:55:36 +0000 | [diff] [blame] | 117 | |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 118 | # |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 119 | # Warning flags |
| 120 | # |
Theodore Ts'o | 4d0f3e1 | 2001-01-11 15:48:50 +0000 | [diff] [blame] | 121 | # Run make gcc-wall to do a build with warning messages. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 122 | # |
| 123 | # |
Theodore Ts'o | 48e6e81 | 2003-07-06 00:36:48 -0400 | [diff] [blame] | 124 | WFLAGS= -ansi -D_POSIX_SOURCE -pedantic $(WFLAGS_EXTRA) \ |
Theodore Ts'o | 032a763 | 2003-11-26 23:18:56 -0500 | [diff] [blame] | 125 | -Wall -W -Wwrite-strings -Wpointer-arith \ |
Theodore Ts'o | 48e6e81 | 2003-07-06 00:36:48 -0400 | [diff] [blame] | 126 | -Wcast-qual -Wcast-align \ |
Theodore Ts'o | 4d0f3e1 | 2001-01-11 15:48:50 +0000 | [diff] [blame] | 127 | -Wstrict-prototypes -Wmissing-prototypes \ |
Theodore Ts'o | 48e6e81 | 2003-07-06 00:36:48 -0400 | [diff] [blame] | 128 | -Wformat-security -Wformat-nonliteral \ |
| 129 | -Wmissing-format-attribute \ |
Theodore Ts'o | 032a763 | 2003-11-26 23:18:56 -0500 | [diff] [blame] | 130 | -Wnested-externs -Winline -DNO_INLINE_FUNCS -Wshadow \ |
| 131 | -UENABLE_NLS |
Theodore Ts'o | 4d0f3e1 | 2001-01-11 15:48:50 +0000 | [diff] [blame] | 132 | |
Theodore Ts'o | c8c071a | 2001-01-11 16:08:23 +0000 | [diff] [blame] | 133 | gcc-wall-new: |
| 134 | (make USE_WFLAGS="$(WFLAGS)" > /dev/null) 2>&1 | sed -f $(top_srcdir)/util/gcc-wall-cleanup |
| 135 | |
Theodore Ts'o | 4d0f3e1 | 2001-01-11 15:48:50 +0000 | [diff] [blame] | 136 | gcc-wall: |
| 137 | make clean > /dev/null |
Theodore Ts'o | c8c071a | 2001-01-11 16:08:23 +0000 | [diff] [blame] | 138 | make gcc-wall-new |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 139 | |
| 140 | # |
| 141 | # Installation user and groups |
| 142 | # |
| 143 | BINGRP= bin |
| 144 | BINOWN= bin |
| 145 | BINMODE= 555 |
| 146 | INCGRP= bin |
| 147 | INCOWN= bin |
| 148 | INCMODE= 444 |
| 149 | LIBOWN= bin |
| 150 | LIBGRP= bin |
| 151 | LIBMODE= 444 |
| 152 | MANGRP= bin |
| 153 | MANOWN= bin |
| 154 | MANMODE= 444 |
| 155 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 156 | # |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 157 | # Autoconf magic... |
| 158 | # |
| 159 | |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 160 | DEP_LIB_MAKEFILES = $(top_srcdir)/lib/Makefile.elf-lib \ |
| 161 | $(top_srcdir)/lib/Makefile.dll-lib $(top_srcdir)/lib/Makefile.bsd-lib \ |
| 162 | $(top_srcdir)/lib/Makefile.checker $(top_srcdir)/lib/Makefile.profile |
| 163 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 164 | $(top_builddir)/config.status: $(top_srcdir)/configure |
Theodore Ts'o | e8aed8c | 2000-04-03 03:18:59 +0000 | [diff] [blame] | 165 | cd $(top_builddir); ./config.status --recheck |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 166 | |
| 167 | $(top_builddir)/MCONFIG: $(top_srcdir)/MCONFIG.in $(top_builddir)/config.status |
Theodore Ts'o | e8aed8c | 2000-04-03 03:18:59 +0000 | [diff] [blame] | 168 | cd $(top_builddir); CONFIG_FILES=MCONFIG ./config.status |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 169 | |
| 170 | $(top_builddir)/lib/substitute_sh: $(top_srcdir)/lib/substitute_sh.in \ |
| 171 | $(top_builddir)/config.status |
Theodore Ts'o | e8aed8c | 2000-04-03 03:18:59 +0000 | [diff] [blame] | 172 | cd $(top_builddir); CONFIG_FILES=lib/substitute_sh ./config.status |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 173 | |
Theodore Ts'o | bf2602b | 1998-03-30 01:11:44 +0000 | [diff] [blame] | 174 | $(top_builddir)/util/subst.conf: $(top_srcdir)/util/subst.conf.in \ |
| 175 | $(top_builddir)/config.status |
Theodore Ts'o | e8aed8c | 2000-04-03 03:18:59 +0000 | [diff] [blame] | 176 | cd $(top_builddir); CONFIG_FILES=util/subst.conf ./config.status |
Theodore Ts'o | bf2602b | 1998-03-30 01:11:44 +0000 | [diff] [blame] | 177 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 178 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/MCONFIG \ |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 179 | $(DEP_MAKEFILE) $(top_builddir)/config.status |
Theodore Ts'o | e8aed8c | 2000-04-03 03:18:59 +0000 | [diff] [blame] | 180 | cd $(top_builddir); CONFIG_FILES=$(my_dir)/Makefile ./config.status |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 181 | |
| 182 | $(top_srcdir)/configure: $(top_srcdir)/configure.in |
| 183 | cd $(top_srcdir) && autoconf |
| 184 | |
| 185 | # |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 186 | # Make depend magic... |
| 187 | # |
| 188 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 189 | .depend: Makefile $(SRCS) $(top_srcdir)/depfix.sed $(top_srcdir)/wordwrap.pl |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 190 | if test -n "$(SRCS)" ; then \ |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 191 | $(CC) -M $(ALL_CFLAGS) $(SRCS) | \ |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 192 | $(SED) -f $(top_srcdir)/depfix.sed \ |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 193 | -e 's; $(srcdir)/; $$(srcdir)/;g' \ |
| 194 | -e 's; $(top_srcdir)/; $$(top_srcdir)/;g' \ |
| 195 | -e 's; $(top_builddir)/; $$(top_builddir)/;g' \ |
| 196 | -e 's; \./; ;g' \ |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 197 | -e '/^ *\\$$/d' | \ |
| 198 | $(PERL) $(top_srcdir)/wordwrap.pl > .depend; \ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 199 | else :; fi |
| 200 | |
| 201 | depend:: .depend |
| 202 | if test -n "$(SRCS)" ; then \ |
| 203 | sed -e '/^# +++ Dependency line eater +++/,$$d' \ |
| 204 | < $(srcdir)/Makefile.in | cat - .depend \ |
| 205 | > $(srcdir)/Makefile.in.new; \ |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 206 | if cmp -s $(srcdir)/Makefile.in $(srcdir)/Makefile.in.new ; then \ |
| 207 | $(RM) $(srcdir)/Makefile.in.new ; \ |
| 208 | else \ |
| 209 | $(MV) $(srcdir)/Makefile.in $(srcdir)/Makefile.in.old; \ |
| 210 | $(MV) $(srcdir)/Makefile.in.new $(srcdir)/Makefile.in; \ |
| 211 | fi ; else :; fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 212 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 213 | # End of file MCONFIG |