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