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