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 | b6b65c3 | 2006-10-22 00:14:26 -0400 | [diff] [blame] | 17 | datarootdir = @datarootdir@ |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 18 | bindir = @bindir@ |
| 19 | sbindir = @sbindir@ |
| 20 | libdir = @libdir@ |
Theodore Ts'o | b5ffead | 2002-05-11 19:17:00 -0400 | [diff] [blame] | 21 | datadir= @datadir@ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 22 | localedir = $(datadir)/locale |
Theodore Ts'o | b5ffead | 2002-05-11 19:17:00 -0400 | [diff] [blame] | 23 | root_sysconfdir= @root_sysconfdir@ |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 24 | includedir = @includedir@ |
| 25 | mandir = @mandir@ |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 26 | man1dir = $(mandir)/man1 |
| 27 | man3dir = $(mandir)/man3 |
Theodore Ts'o | 9dc6ad1 | 2006-03-23 22:00:01 -0500 | [diff] [blame] | 28 | man5dir = $(mandir)/man5 |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 29 | man8dir = $(mandir)/man8 |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 30 | infodir = @infodir@ |
| 31 | datadir = @datadir@ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 32 | |
| 33 | @SET_MAKE@ |
| 34 | |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 35 | @ifGNUmake@ V = |
| 36 | @ifGNUmake@ ifeq ($(strip $(V)),) |
| 37 | @ifGNUmake@ # E = @echo |
| 38 | @ifGNUmake@ # Q = @ |
| 39 | @ifGNUmake@ E = @E@ |
| 40 | @ifGNUmake@ Q = @Q@ |
| 41 | @ifGNUmake@ else |
| 42 | @ifGNUmake@ E = @\# |
| 43 | @ifGNUmake@ Q = |
| 44 | @ifGNUmake@ endif |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 45 | |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 46 | @ifNotGNUmake@ E = @E@ |
| 47 | @ifNotGNUmake@ Q = @Q@ |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 48 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 49 | CC = @CC@ |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 50 | BUILD_CC = @BUILD_CC@ |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 51 | CFLAGS = @CFLAGS@ |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 52 | CPPFLAGS = @INCLUDES@ |
| 53 | ALL_CFLAGS = $(CPPFLAGS) $(CFLAGS) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 54 | LDFLAGS = @LDFLAGS@ |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 55 | ALL_LDFLAGS = $(LDFLAGS) @LDFLAG_DYNAMIC@ |
| 56 | LDFLAGS_STATIC = $(LDFLAGS) @LDFLAG_STATIC@ |
Theodore Ts'o | dd947da | 2005-11-09 18:37:07 -0400 | [diff] [blame] | 57 | BUILD_CFLAGS = @BUILD_CFLAGS@ |
| 58 | BUILD_LDFLAGS = @BUILD_LDFLAGS@ |
Theodore Ts'o | 9b3018a | 2011-08-11 14:56:49 -0400 | [diff] [blame] | 59 | RDYNAMIC = @RDYNAMIC@ |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 60 | LINK_BUILD_FLAGS = @LINK_BUILD_FLAGS@ |
| 61 | LINK_INSTALL_FLAGS = @LINK_INSTALL_FLAGS@ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 62 | RM = @RM@ |
| 63 | LN = @LN@ |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 64 | LN_S = @LN_S@ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 65 | MV = @MV@ |
| 66 | CP = @CP@ |
| 67 | CHMOD = @CHMOD@ |
| 68 | AR = @AR@ |
| 69 | AWK = @AWK@ |
| 70 | SED = @SED@ |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 71 | PERL = @PERL@ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 72 | RANLIB = @RANLIB@ |
| 73 | STRIP = @STRIP@ |
| 74 | LD = $(PURE) @CC@ |
| 75 | ARUPD = $(AR) r |
Theodore Ts'o | 47204ff | 2004-11-30 10:52:27 -0500 | [diff] [blame] | 76 | ARGEN = $(AR) rc |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 77 | LDCONFIG = @LDCONFIG@ |
Theodore Ts'o | 6d40227 | 2004-12-14 21:46:26 -0500 | [diff] [blame] | 78 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
| 79 | INSTALL_DATA = @INSTALL_DATA@ |
| 80 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ |
| 81 | MKINSTALLDIRS = @MKINSTALLDIRS@ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 82 | |
| 83 | # |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 84 | # Library definitions |
| 85 | # |
| 86 | LIB = $(top_builddir)/lib |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 87 | LIBSS = $(LIB)/libss@LIB_EXT@ @PRIVATE_LIBS_CMT@ @DLOPEN_LIB@ |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 88 | LIBCOM_ERR = $(LIB)/libcom_err@LIB_EXT@ @PRIVATE_LIBS_CMT@ @SEM_INIT_LIB@ |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 89 | LIBE2P = $(LIB)/libe2p@LIB_EXT@ |
| 90 | LIBEXT2FS = $(LIB)/libext2fs@LIB_EXT@ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 91 | LIBUUID = @LIBUUID@ @SOCKET_LIB@ |
Theodore Ts'o | 8f9d708 | 2011-09-19 13:39:38 -0400 | [diff] [blame] | 92 | LIBQUOTA = @STATIC_LIBQUOTA@ |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 93 | LIBBLKID = @LIBBLKID@ @PRIVATE_LIBS_CMT@ $(LIBUUID) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 94 | LIBINTL = @LIBINTL@ |
Theodore Ts'o | 9d99416 | 2008-06-07 21:53:35 -0400 | [diff] [blame] | 95 | DEPLIBSS = $(LIB)/libss@LIB_EXT@ |
Theodore Ts'o | a6a1c08 | 2009-07-01 22:06:51 -0400 | [diff] [blame] | 96 | DEPLIBCOM_ERR = $(LIB)/libcom_err@LIB_EXT@ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 97 | DEPLIBUUID = @DEPLIBUUID@ |
Theodore Ts'o | 8f9d708 | 2011-09-19 13:39:38 -0400 | [diff] [blame] | 98 | DEPLIBQUOTA = @DEPSTATIC_LIBQUOTA@ |
Theodore Ts'o | 4a1e15a | 2009-07-01 17:20:24 -0400 | [diff] [blame] | 99 | DEPLIBBLKID = @DEPLIBBLKID@ @PRIVATE_LIBS_CMT@ $(DEPLIBUUID) |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 100 | |
Theodore Ts'o | daf7a6e | 2008-04-17 16:54:24 -0400 | [diff] [blame] | 101 | STATIC_LIBSS = $(LIB)/libss@STATIC_LIB_EXT@ @DLOPEN_LIB@ |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 102 | STATIC_LIBCOM_ERR = $(LIB)/libcom_err@STATIC_LIB_EXT@ @SEM_INIT_LIB@ |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 103 | STATIC_LIBE2P = $(LIB)/libe2p@STATIC_LIB_EXT@ |
| 104 | STATIC_LIBEXT2FS = $(LIB)/libext2fs@STATIC_LIB_EXT@ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 105 | STATIC_LIBUUID = @STATIC_LIBUUID@ @SOCKET_LIB@ |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 106 | STATIC_LIBQUOTA = @STATIC_LIBQUOTA@ |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 107 | STATIC_LIBBLKID = @STATIC_LIBBLKID@ $(STATIC_LIBUUID) |
Theodore Ts'o | 9d99416 | 2008-06-07 21:53:35 -0400 | [diff] [blame] | 108 | DEPSTATIC_LIBSS = $(LIB)/libss@STATIC_LIB_EXT@ |
Theodore Ts'o | a6a1c08 | 2009-07-01 22:06:51 -0400 | [diff] [blame] | 109 | DEPSTATIC_LIBCOM_ERR = $(LIB)/libcom_err@STATIC_LIB_EXT@ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 110 | DEPSTATIC_LIBUUID = @DEPSTATIC_LIBUUID@ |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 111 | DEPSTATIC_LIBQUOTA = @DEPSTATIC_LIBQUOTA@ |
Theodore Ts'o | 5f70f2e | 2010-11-26 19:25:26 -0500 | [diff] [blame] | 112 | DEPSTATIC_LIBBLKID = @DEPSTATIC_LIBBLKID@ $(DEPSTATIC_LIBUUID) |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 113 | |
Theodore Ts'o | daf7a6e | 2008-04-17 16:54:24 -0400 | [diff] [blame] | 114 | PROFILED_LIBSS = $(LIB)/libss@PROFILED_LIB_EXT@ @DLOPEN_LIB@ |
Theodore Ts'o | 992a2f7 | 2008-11-15 12:12:57 -0500 | [diff] [blame] | 115 | PROFILED_LIBCOM_ERR = $(LIB)/libcom_err@PROFILED_LIB_EXT@ @SEM_INIT_LIB@ |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 116 | PROFILED_LIBE2P = $(LIB)/libe2p@PROFILED_LIB_EXT@ |
| 117 | PROFILED_LIBEXT2FS = $(LIB)/libext2fs@PROFILED_LIB_EXT@ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 118 | PROFILED_LIBUUID = @PROFILED_LIBUUID@ @SOCKET_LIB@ |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 119 | PROFILED_LIBQUOTA = @PROFILED_LIBQUOTA@ |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 120 | PROFILED_LIBBLKID = @PROFILED_LIBBLKID@ $(PROFILED_LIBUUID) |
Theodore Ts'o | a6a1c08 | 2009-07-01 22:06:51 -0400 | [diff] [blame] | 121 | DEPPROFILED_LIBSS = $(LIB)/libss@PROFILED_LIB_EXT@ |
| 122 | DEPPROFILED_LIBCOM_ERR = $(LIB)/libcom_err@PROFILED_LIB_EXT@ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 123 | DEPPROFILED_LIBUUID = @PROFILED_LIBUUID@ |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 124 | DEPPROFILED_LIBQUOTA = @PROFILED_LIBQUOTA@ |
Theodore Ts'o | 5f70f2e | 2010-11-26 19:25:26 -0500 | [diff] [blame] | 125 | DEPPROFILED_LIBBLKID = @PROFILED_LIBBLKID@ $(DEPPROFILED_LIBUUID) |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 126 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 127 | # |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 128 | # A fast substitution command for fixing up man pages, shell scripts, etc. |
| 129 | # |
Theodore Ts'o | 44339bd | 1997-10-15 02:47:20 +0000 | [diff] [blame] | 130 | SUBST_CONF=$(top_builddir)/util/subst.conf |
| 131 | SUBSTITUTE= $(top_builddir)/util/subst -f $(SUBST_CONF) |
Theodore Ts'o | dd60705 | 2004-04-03 13:53:46 -0500 | [diff] [blame] | 132 | SUBSTITUTE_UPTIME= $(top_builddir)/util/subst -t -f $(SUBST_CONF) |
Theodore Ts'o | 44339bd | 1997-10-15 02:47:20 +0000 | [diff] [blame] | 133 | DEP_SUBSTITUTE= $(top_builddir)/util/subst $(SUBST_CONF) |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 134 | |
Theodore Ts'o | ef8901b | 1999-07-03 04:55:36 +0000 | [diff] [blame] | 135 | $(top_builddir)/util/subst: |
Theodore Ts'o | e8aed8c | 2000-04-03 03:18:59 +0000 | [diff] [blame] | 136 | cd $(top_builddir)/util ; $(MAKE) subst |
Theodore Ts'o | ef8901b | 1999-07-03 04:55:36 +0000 | [diff] [blame] | 137 | |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 138 | # |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 139 | # Script for installing symlinks (for shared libraries) |
| 140 | # |
| 141 | $(top_builddir)/util/install-symlink: $(top_srcdir)/util/install-symlink.in \ |
| 142 | $(top_builddir)/config.status |
| 143 | cd $(top_builddir); CONFIG_FILES=util/install-symlink ./config.status |
| 144 | chmod +x $(top_builddir)/util/install-symlink |
| 145 | |
| 146 | $(top_builddir)/util/symlinks: |
| 147 | cd $(top_builddir)/util ; $(MAKE) symlinks |
| 148 | |
| 149 | INSTALL_SYMLINK = /bin/sh $(top_builddir)/util/install-symlink \ |
| 150 | @SYMLINK_RELATIVE@ \ |
| 151 | --symlinks=$(top_builddir)/util/symlinks |
| 152 | DEP_INSTALL_SYMLINK = $(top_builddir)/util/install-symlink \ |
| 153 | $(top_builddir)/util/symlinks |
| 154 | |
| 155 | # |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 156 | # Warning flags |
| 157 | # |
Theodore Ts'o | 4d0f3e1 | 2001-01-11 15:48:50 +0000 | [diff] [blame] | 158 | # Run make gcc-wall to do a build with warning messages. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 159 | # |
| 160 | # |
Theodore Ts'o | 19c000e | 2006-11-14 23:40:19 -0500 | [diff] [blame] | 161 | WFLAGS= -std=c99 -D_XOPEN_SOURCE=600 -D_GNU_SOURCE \ |
| 162 | -pedantic $(WFLAGS_EXTRA) \ |
Theodore Ts'o | 032a763 | 2003-11-26 23:18:56 -0500 | [diff] [blame] | 163 | -Wall -W -Wwrite-strings -Wpointer-arith \ |
Theodore Ts'o | 19c000e | 2006-11-14 23:40:19 -0500 | [diff] [blame] | 164 | -Wcast-qual -Wcast-align -Wno-variadic-macros \ |
Theodore Ts'o | 4d0f3e1 | 2001-01-11 15:48:50 +0000 | [diff] [blame] | 165 | -Wstrict-prototypes -Wmissing-prototypes \ |
Theodore Ts'o | 48e6e81 | 2003-07-06 00:36:48 -0400 | [diff] [blame] | 166 | -Wformat-security -Wformat-nonliteral \ |
Theodore Ts'o | 19c000e | 2006-11-14 23:40:19 -0500 | [diff] [blame] | 167 | -Wmissing-format-attribute -O2 -Wstrict-aliasing \ |
Theodore Ts'o | 032a763 | 2003-11-26 23:18:56 -0500 | [diff] [blame] | 168 | -Wnested-externs -Winline -DNO_INLINE_FUNCS -Wshadow \ |
| 169 | -UENABLE_NLS |
Theodore Ts'o | 4d0f3e1 | 2001-01-11 15:48:50 +0000 | [diff] [blame] | 170 | |
Theodore Ts'o | c8c071a | 2001-01-11 16:08:23 +0000 | [diff] [blame] | 171 | gcc-wall-new: |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 172 | (make CFLAGS="@CFLAGS@ $(WFLAGS)" > /dev/null) 2>&1 | sed -f $(top_srcdir)/util/gcc-wall-cleanup |
Theodore Ts'o | c8c071a | 2001-01-11 16:08:23 +0000 | [diff] [blame] | 173 | |
Theodore Ts'o | 4d0f3e1 | 2001-01-11 15:48:50 +0000 | [diff] [blame] | 174 | gcc-wall: |
| 175 | make clean > /dev/null |
Theodore Ts'o | c8c071a | 2001-01-11 16:08:23 +0000 | [diff] [blame] | 176 | make gcc-wall-new |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 177 | |
| 178 | # |
| 179 | # Installation user and groups |
| 180 | # |
| 181 | BINGRP= bin |
| 182 | BINOWN= bin |
| 183 | BINMODE= 555 |
| 184 | INCGRP= bin |
| 185 | INCOWN= bin |
| 186 | INCMODE= 444 |
| 187 | LIBOWN= bin |
| 188 | LIBGRP= bin |
| 189 | LIBMODE= 444 |
| 190 | MANGRP= bin |
| 191 | MANOWN= bin |
| 192 | MANMODE= 444 |
| 193 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 194 | # |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 195 | # Autoconf magic... |
| 196 | # |
| 197 | |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 198 | DEP_LIB_MAKEFILES = $(top_srcdir)/lib/Makefile.library \ |
| 199 | $(top_srcdir)/lib/Makefile.elf-lib \ |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 200 | $(top_srcdir)/lib/Makefile.bsd-lib $(top_srcdir)/lib/Makefile.darwin-lib \ |
| 201 | $(top_srcdir)/lib/Makefile.solaris-lib $(top_srcdir)/lib/Makefile.checker \ |
| 202 | $(top_srcdir)/lib/Makefile.profile |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 203 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 204 | $(top_builddir)/config.status: $(top_srcdir)/configure |
Theodore Ts'o | e8aed8c | 2000-04-03 03:18:59 +0000 | [diff] [blame] | 205 | cd $(top_builddir); ./config.status --recheck |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 206 | |
| 207 | $(top_builddir)/MCONFIG: $(top_srcdir)/MCONFIG.in $(top_builddir)/config.status |
Theodore Ts'o | e8aed8c | 2000-04-03 03:18:59 +0000 | [diff] [blame] | 208 | cd $(top_builddir); CONFIG_FILES=MCONFIG ./config.status |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 209 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 210 | $(top_builddir)/lib/config.h: $(top_srcdir)/lib/config.h.in \ |
| 211 | $(top_builddir)/config.status |
| 212 | cd $(top_builddir); CONFIG_FILES=lib/config.h ./config.status |
| 213 | |
| 214 | $(top_builddir)/lib/dirpaths.h: $(DEP_SUBSTITUTE) $(top_srcdir)/lib/dirpaths.h.in |
| 215 | $(E) " SUBST $@" |
| 216 | $(Q) $(SUBSTITUTE) $(top_srcdir)/lib/dirpaths.h.in $@ |
| 217 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 218 | $(top_builddir)/lib/substitute_sh: $(top_srcdir)/lib/substitute_sh.in \ |
| 219 | $(top_builddir)/config.status |
Theodore Ts'o | e8aed8c | 2000-04-03 03:18:59 +0000 | [diff] [blame] | 220 | cd $(top_builddir); CONFIG_FILES=lib/substitute_sh ./config.status |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 221 | |
Theodore Ts'o | bf2602b | 1998-03-30 01:11:44 +0000 | [diff] [blame] | 222 | $(top_builddir)/util/subst.conf: $(top_srcdir)/util/subst.conf.in \ |
| 223 | $(top_builddir)/config.status |
Theodore Ts'o | e8aed8c | 2000-04-03 03:18:59 +0000 | [diff] [blame] | 224 | cd $(top_builddir); CONFIG_FILES=util/subst.conf ./config.status |
Theodore Ts'o | bf2602b | 1998-03-30 01:11:44 +0000 | [diff] [blame] | 225 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 226 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/MCONFIG \ |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 227 | $(DEP_MAKEFILE) $(top_builddir)/config.status |
Theodore Ts'o | e8aed8c | 2000-04-03 03:18:59 +0000 | [diff] [blame] | 228 | cd $(top_builddir); CONFIG_FILES=$(my_dir)/Makefile ./config.status |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 229 | |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 230 | @MAINTAINER_CMT@$(top_srcdir)/configure: $(top_srcdir)/configure.in |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 231 | @MAINTAINER_CMT@ cd $(top_srcdir) && autoheader && autoconf |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 232 | |
| 233 | # |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 234 | # Make depend magic... |
| 235 | # |
| 236 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 237 | .depend: Makefile $(SRCS) $(top_srcdir)/depfix.sed $(top_srcdir)/wordwrap.pl |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 238 | if test -n "$(SRCS)" ; then \ |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 239 | $(CC) -M $(ALL_CFLAGS) $(SRCS) | \ |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 240 | $(SED) -f $(top_srcdir)/depfix.sed \ |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 241 | -e 's; $(srcdir)/; $$(srcdir)/;g' \ |
| 242 | -e 's; $(top_srcdir)/; $$(top_srcdir)/;g' \ |
| 243 | -e 's; $(top_builddir)/; $$(top_builddir)/;g' \ |
| 244 | -e 's; \./; ;g' \ |
Theodore Ts'o | 6d40227 | 2004-12-14 21:46:26 -0500 | [diff] [blame] | 245 | -e '/^#/d' \ |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 246 | -e '/^ *\\$$/d' | \ |
| 247 | $(PERL) $(top_srcdir)/wordwrap.pl > .depend; \ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 248 | else :; fi |
| 249 | |
| 250 | depend:: .depend |
| 251 | if test -n "$(SRCS)" ; then \ |
| 252 | sed -e '/^# +++ Dependency line eater +++/,$$d' \ |
| 253 | < $(srcdir)/Makefile.in | cat - .depend \ |
| 254 | > $(srcdir)/Makefile.in.new; \ |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 255 | if cmp -s $(srcdir)/Makefile.in $(srcdir)/Makefile.in.new ; then \ |
| 256 | $(RM) $(srcdir)/Makefile.in.new ; \ |
| 257 | else \ |
| 258 | $(MV) $(srcdir)/Makefile.in $(srcdir)/Makefile.in.old; \ |
| 259 | $(MV) $(srcdir)/Makefile.in.new $(srcdir)/Makefile.in; \ |
| 260 | fi ; else :; fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 261 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 262 | # End of file MCONFIG |