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