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