blob: 7504392889b411f91736072f72a90b4b56be189a [file] [log] [blame]
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001# Beginning of file MCONFIG
2
3SHELL = /bin/sh
4
5prefix = @prefix@
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00006root_prefix = @root_prefix@
Theodore Ts'o50e1e101997-04-26 13:58:21 +00007exec_prefix = @exec_prefix@
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00008root_bindir = $(root_prefix)/bin
9root_sbindir = $(root_prefix)/sbin
10root_libdir = $(root_prefix)/lib
11bindir = @bindir@
12sbindir = @sbindir@
13libdir = @libdir@
14includedir = @includedir@
15mandir = @mandir@
16man1dir = $(prefix)/man/man1
17man3dir = $(prefix)/man/man3
18man8dir = $(prefix)/man/man8
19infodir = @infodir@
20datadir = @datadir@
Theodore Ts'o50e1e101997-04-26 13:58:21 +000021
22@SET_MAKE@
23
24INSTALL_PROGRAM = @INSTALL_PROGRAM@
25INSTALL_DATA = @INSTALL_DATA@
26CC = @CC@
27DEFS = @DEFS@
Theodore Ts'o74becf31997-04-26 14:37:06 +000028CFLAGS = @CFLAGS@
29ALL_CFLAGS = $(CPPFLAGS) $(DEFS) $(WFLAGS) $(CFLAGS) $(XTRA_CFLAGS) \
Theodore Ts'o50e1e101997-04-26 13:58:21 +000030 -I$(top_builddir)/lib -I$(top_srcdir)/lib $(LINUX_INCLUDE)
31LDFLAGS = @LDFLAGS@
Theodore Ts'o74becf31997-04-26 14:37:06 +000032ALL_LDFLAGS = $(LDFLAGS)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000033RM = @RM@
34LN = @LN@
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000035LN_S = @LN_S@
Theodore Ts'o50e1e101997-04-26 13:58:21 +000036MV = @MV@
37CP = @CP@
38CHMOD = @CHMOD@
39AR = @AR@
40AWK = @AWK@
41SED = @SED@
42RANLIB = @RANLIB@
43STRIP = @STRIP@
44LD = $(PURE) @CC@
45ARUPD = $(AR) r
46
47#
Theodore Ts'oa4d09611997-04-29 14:28:00 +000048# Library definitions
49#
50LIB = $(top_builddir)/lib
51LIBSS = $(LIB)/libss@LIB_EXT@
52LIBCOM_ERR = $(LIB)/libcom_err@LIB_EXT@
53LIBE2P = $(LIB)/libe2p@LIB_EXT@
54LIBEXT2FS = $(LIB)/libext2fs@LIB_EXT@
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000055LIBUUID = $(LIB)/libuuid@LIB_EXT@ @SOCKET_LIB@
Theodore Ts'oa4d09611997-04-29 14:28:00 +000056
57STATIC_LIBSS = $(LIB)/libss@STATIC_LIB_EXT@
58STATIC_LIBCOM_ERR = $(LIB)/libcom_err@STATIC_LIB_EXT@
59STATIC_LIBE2P = $(LIB)/libe2p@STATIC_LIB_EXT@
60STATIC_LIBEXT2FS = $(LIB)/libext2fs@STATIC_LIB_EXT@
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000061STATIC_LIBUUID = $(LIB)/libuuid@STATIC_LIB_EXT@ @SOCKET_LIB@
Theodore Ts'oa4d09611997-04-29 14:28:00 +000062
63PROFILED_LIBSS = $(LIB)/libss@PROFILED_LIB_EXT@
64PROFILED_LIBCOM_ERR = $(LIB)/libcom_err@PROFILED_LIB_EXT@
65PROFILED_LIBE2P = $(LIB)/libe2p@PROFILED_LIB_EXT@
66PROFILED_LIBEXT2FS = $(LIB)/libext2fs@PROFILED_LIB_EXT@
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000067PROFILED_LIBUUID = $(LIB)/libuuid@PROFILED_LIB_EXT@ @SOCKET_LIB@
Theodore Ts'oa4d09611997-04-29 14:28:00 +000068
69#
Theodore Ts'o50e1e101997-04-26 13:58:21 +000070# 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#
78DLL_BIN=/usr/bin
79JUMP_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
83LINUX_INCLUDE=@LINUX_INCLUDE@
84
85#
Theodore Ts'oa4d09611997-04-29 14:28:00 +000086# A fast substitution command for fixing up man pages, shell scripts, etc.
87#
Theodore Ts'o44339bd1997-10-15 02:47:20 +000088SUBST_CONF=$(top_builddir)/util/subst.conf
89SUBSTITUTE= $(top_builddir)/util/subst -f $(SUBST_CONF)
90DEP_SUBSTITUTE= $(top_builddir)/util/subst $(SUBST_CONF)
Theodore Ts'oa4d09611997-04-29 14:28:00 +000091
92#
Theodore Ts'o50e1e101997-04-26 13:58:21 +000093# 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'ofc6d9d51997-04-29 14:51:31 +0000100@W@ -Wcast-qual -Wcast-align -Wtraditional \
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000101@W@ -Wstrict-prototypes -Wmissing-prototypes \
102@W@ -Wnested-externs -Winline -DNO_INLINE_FUNCS -Wshadow
103
104#
105# Installation user and groups
106#
107BINGRP= bin
108BINOWN= bin
109BINMODE= 555
110INCGRP= bin
111INCOWN= bin
112INCMODE= 444
113LIBOWN= bin
114LIBGRP= bin
115LIBMODE= 444
116MANGRP= bin
117MANOWN= bin
118MANMODE= 444
119
120all::
121
122#
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000123# Autoconf magic...
124#
125
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +0000126DEP_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'ofc6d9d51997-04-29 14:51:31 +0000130$(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'obf2602b1998-03-30 01:11:44 +0000140$(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'ofc6d9d51997-04-29 14:51:31 +0000144Makefile: $(srcdir)/Makefile.in $(top_builddir)/MCONFIG \
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +0000145 $(DEP_MAKEFILE) $(top_builddir)/config.status
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000146 (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'o50e1e101997-04-26 13:58:21 +0000152# Make depend magic...
153#
154
155.depend: Makefile $(SRCS) $(top_srcdir)/depfix.sed
156 if test -n "$(SRCS)" ; then \
Theodore Ts'o74becf31997-04-26 14:37:06 +0000157 $(CC) -M $(ALL_CFLAGS) $(SRCS) | \
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000158 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'o50e1e101997-04-26 13:58:21 +0000164 else :; fi
165
166depend:: .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'o50e1e101997-04-26 13:58:21 +0000175# End of file MCONFIG