blob: 8c10d38da747e42126f0a9e67e644c9baa789f20 [file] [log] [blame]
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001# Beginning of file MCONFIG
2
Theodore Ts'oef8901b1999-07-03 04:55:36 +00003all::
4
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005SHELL = /bin/sh
6
7prefix = @prefix@
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00008root_prefix = @root_prefix@
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009exec_prefix = @exec_prefix@
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000010root_bindir = $(root_prefix)/bin
11root_sbindir = $(root_prefix)/sbin
12root_libdir = $(root_prefix)/lib
13bindir = @bindir@
14sbindir = @sbindir@
15libdir = @libdir@
16includedir = @includedir@
17mandir = @mandir@
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000018man1dir = $(mandir)/man1
19man3dir = $(mandir)/man3
20man8dir = $(mandir)/man8
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000021infodir = @infodir@
22datadir = @datadir@
Theodore Ts'o50e1e101997-04-26 13:58:21 +000023
24@SET_MAKE@
25
26INSTALL_PROGRAM = @INSTALL_PROGRAM@
27INSTALL_DATA = @INSTALL_DATA@
28CC = @CC@
Theodore Ts'o6c133521999-07-03 20:37:03 +000029BUILD_CC = @BUILD_CC@
Theodore Ts'o50e1e101997-04-26 13:58:21 +000030DEFS = @DEFS@
Theodore Ts'o74becf31997-04-26 14:37:06 +000031CFLAGS = @CFLAGS@
32ALL_CFLAGS = $(CPPFLAGS) $(DEFS) $(WFLAGS) $(CFLAGS) $(XTRA_CFLAGS) \
Theodore Ts'o50e1e101997-04-26 13:58:21 +000033 -I$(top_builddir)/lib -I$(top_srcdir)/lib $(LINUX_INCLUDE)
34LDFLAGS = @LDFLAGS@
Theodore Ts'o74becf31997-04-26 14:37:06 +000035ALL_LDFLAGS = $(LDFLAGS)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000036RM = @RM@
37LN = @LN@
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000038LN_S = @LN_S@
Theodore Ts'o50e1e101997-04-26 13:58:21 +000039MV = @MV@
40CP = @CP@
41CHMOD = @CHMOD@
42AR = @AR@
43AWK = @AWK@
44SED = @SED@
Theodore Ts'o9d564f71999-07-03 20:25:58 +000045PERL = @PERL@
Theodore Ts'o50e1e101997-04-26 13:58:21 +000046RANLIB = @RANLIB@
47STRIP = @STRIP@
48LD = $(PURE) @CC@
49ARUPD = $(AR) r
50
51#
Theodore Ts'oa4d09611997-04-29 14:28:00 +000052# Library definitions
53#
54LIB = $(top_builddir)/lib
55LIBSS = $(LIB)/libss@LIB_EXT@
56LIBCOM_ERR = $(LIB)/libcom_err@LIB_EXT@
57LIBE2P = $(LIB)/libe2p@LIB_EXT@
58LIBEXT2FS = $(LIB)/libext2fs@LIB_EXT@
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000059LIBUUID = $(LIB)/libuuid@LIB_EXT@ @SOCKET_LIB@
Theodore Ts'oa4d09611997-04-29 14:28:00 +000060
61STATIC_LIBSS = $(LIB)/libss@STATIC_LIB_EXT@
62STATIC_LIBCOM_ERR = $(LIB)/libcom_err@STATIC_LIB_EXT@
63STATIC_LIBE2P = $(LIB)/libe2p@STATIC_LIB_EXT@
64STATIC_LIBEXT2FS = $(LIB)/libext2fs@STATIC_LIB_EXT@
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000065STATIC_LIBUUID = $(LIB)/libuuid@STATIC_LIB_EXT@ @SOCKET_LIB@
Theodore Ts'oa4d09611997-04-29 14:28:00 +000066
67PROFILED_LIBSS = $(LIB)/libss@PROFILED_LIB_EXT@
68PROFILED_LIBCOM_ERR = $(LIB)/libcom_err@PROFILED_LIB_EXT@
69PROFILED_LIBE2P = $(LIB)/libe2p@PROFILED_LIB_EXT@
70PROFILED_LIBEXT2FS = $(LIB)/libext2fs@PROFILED_LIB_EXT@
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000071PROFILED_LIBUUID = $(LIB)/libuuid@PROFILED_LIB_EXT@ @SOCKET_LIB@
Theodore Ts'oa4d09611997-04-29 14:28:00 +000072
73#
Theodore Ts'o50e1e101997-04-26 13:58:21 +000074# Use these definitions is you use tools 2.x, x < 16
75#
76#DLL_BIN=/usr/dll/bin
77#JUMP_PREFIX=/usr/dll/jump/
78
79#
80# Use these definitions if you use tools 2.16 or above
81#
82DLL_BIN=/usr/bin
83JUMP_PREFIX=/usr/bin/jump
84
85# An include directive pointing to a directory holding enough linux-like
86# include files to satisfy some programs here
87LINUX_INCLUDE=@LINUX_INCLUDE@
88
89#
Theodore Ts'oa4d09611997-04-29 14:28:00 +000090# A fast substitution command for fixing up man pages, shell scripts, etc.
91#
Theodore Ts'o44339bd1997-10-15 02:47:20 +000092SUBST_CONF=$(top_builddir)/util/subst.conf
93SUBSTITUTE= $(top_builddir)/util/subst -f $(SUBST_CONF)
94DEP_SUBSTITUTE= $(top_builddir)/util/subst $(SUBST_CONF)
Theodore Ts'oa4d09611997-04-29 14:28:00 +000095
Theodore Ts'oef8901b1999-07-03 04:55:36 +000096$(top_builddir)/util/subst:
97 $(MAKE) -C $(top_builddir)/util subst
98
Theodore Ts'oa4d09611997-04-29 14:28:00 +000099#
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000100# Warning flags
101#
102# Uncomment WFLAGS if you want really anal GCC warning messages
103#
104#
105@W@WFLAGS= -ansi -D_POSIX_SOURCE -pedantic \
106@W@ -Wall -Wwrite-strings -Wpointer-arith \
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000107@W@ -Wcast-qual -Wcast-align -Wtraditional \
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000108@W@ -Wstrict-prototypes -Wmissing-prototypes \
109@W@ -Wnested-externs -Winline -DNO_INLINE_FUNCS -Wshadow
110
111#
112# Installation user and groups
113#
114BINGRP= bin
115BINOWN= bin
116BINMODE= 555
117INCGRP= bin
118INCOWN= bin
119INCMODE= 444
120LIBOWN= bin
121LIBGRP= bin
122LIBMODE= 444
123MANGRP= bin
124MANOWN= bin
125MANMODE= 444
126
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000127#
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000128# Autoconf magic...
129#
130
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +0000131DEP_LIB_MAKEFILES = $(top_srcdir)/lib/Makefile.elf-lib \
132 $(top_srcdir)/lib/Makefile.dll-lib $(top_srcdir)/lib/Makefile.bsd-lib \
133 $(top_srcdir)/lib/Makefile.checker $(top_srcdir)/lib/Makefile.profile
134
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000135$(top_builddir)/config.status: $(top_srcdir)/configure
136 (cd $(top_builddir); ./config.status --recheck)
137
138$(top_builddir)/MCONFIG: $(top_srcdir)/MCONFIG.in $(top_builddir)/config.status
139 (cd $(top_builddir); CONFIG_FILES=MCONFIG ./config.status)
140
141$(top_builddir)/lib/substitute_sh: $(top_srcdir)/lib/substitute_sh.in \
142 $(top_builddir)/config.status
143 (cd $(top_builddir); CONFIG_FILES=lib/substitute_sh ./config.status)
144
Theodore Ts'obf2602b1998-03-30 01:11:44 +0000145$(top_builddir)/util/subst.conf: $(top_srcdir)/util/subst.conf.in \
146 $(top_builddir)/config.status
147 (cd $(top_builddir); CONFIG_FILES=util/subst.conf ./config.status)
148
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000149Makefile: $(srcdir)/Makefile.in $(top_builddir)/MCONFIG \
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +0000150 $(DEP_MAKEFILE) $(top_builddir)/config.status
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000151 (cd $(top_builddir); CONFIG_FILES=$(my_dir)/Makefile ./config.status)
152
153$(top_srcdir)/configure: $(top_srcdir)/configure.in
154 cd $(top_srcdir) && autoconf
155
156#
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000157# Make depend magic...
158#
159
Theodore Ts'o9d564f71999-07-03 20:25:58 +0000160.depend: Makefile $(SRCS) $(top_srcdir)/depfix.sed $(top_srcdir)/wordwrap.pl
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000161 if test -n "$(SRCS)" ; then \
Theodore Ts'o74becf31997-04-26 14:37:06 +0000162 $(CC) -M $(ALL_CFLAGS) $(SRCS) | \
Theodore Ts'o9d564f71999-07-03 20:25:58 +0000163 $(SED) -f $(top_srcdir)/depfix.sed \
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000164 -e 's; $(srcdir)/; $$(srcdir)/;g' \
165 -e 's; $(top_srcdir)/; $$(top_srcdir)/;g' \
166 -e 's; $(top_builddir)/; $$(top_builddir)/;g' \
167 -e 's; \./; ;g' \
Theodore Ts'o9d564f71999-07-03 20:25:58 +0000168 -e '/^ *\\$$/d' | \
169 $(PERL) $(top_srcdir)/wordwrap.pl > .depend; \
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000170 else :; fi
171
172depend:: .depend
173 if test -n "$(SRCS)" ; then \
174 sed -e '/^# +++ Dependency line eater +++/,$$d' \
175 < $(srcdir)/Makefile.in | cat - .depend \
176 > $(srcdir)/Makefile.in.new; \
Theodore Ts'o9d564f71999-07-03 20:25:58 +0000177 if cmp -s $(srcdir)/Makefile.in $(srcdir)/Makefile.in.new ; then \
178 $(RM) $(srcdir)/Makefile.in.new ; \
179 else \
180 $(MV) $(srcdir)/Makefile.in $(srcdir)/Makefile.in.old; \
181 $(MV) $(srcdir)/Makefile.in.new $(srcdir)/Makefile.in; \
182 fi ; else :; fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000183
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000184# End of file MCONFIG