]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blame - MCONFIG.in
ChangeLog, openfs.c:
[thirdparty/e2fsprogs.git] / MCONFIG.in
CommitLineData
50e1e10f
TT
1# Beginning of file MCONFIG
2
3SHELL = /bin/sh
4
5prefix = @prefix@
a4b2d3ce 6root_prefix = @root_prefix@
50e1e10f 7exec_prefix = @exec_prefix@
a4b2d3ce
TT
8root_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@
50e1e10f
TT
21
22@SET_MAKE@
23
24INSTALL_PROGRAM = @INSTALL_PROGRAM@
25INSTALL_DATA = @INSTALL_DATA@
26CC = @CC@
27DEFS = @DEFS@
74becf3c
TT
28CFLAGS = @CFLAGS@
29ALL_CFLAGS = $(CPPFLAGS) $(DEFS) $(WFLAGS) $(CFLAGS) $(XTRA_CFLAGS) \
50e1e10f
TT
30 -I$(top_builddir)/lib -I$(top_srcdir)/lib $(LINUX_INCLUDE)
31LDFLAGS = @LDFLAGS@
74becf3c 32ALL_LDFLAGS = $(LDFLAGS)
50e1e10f
TT
33RM = @RM@
34LN = @LN@
fc6d9d51 35LN_S = @LN_S@
50e1e10f
TT
36MV = @MV@
37CP = @CP@
38CHMOD = @CHMOD@
39AR = @AR@
40AWK = @AWK@
41SED = @SED@
42RANLIB = @RANLIB@
43STRIP = @STRIP@
44LD = $(PURE) @CC@
45ARUPD = $(AR) r
46
a4d09610
TT
47#
48# 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@
fc6d9d51 55LIBUUID = $(LIB)/libuuid@LIB_EXT@ @SOCKET_LIB@
a4d09610
TT
56
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@
fc6d9d51 61STATIC_LIBUUID = $(LIB)/libuuid@STATIC_LIB_EXT@ @SOCKET_LIB@
a4d09610
TT
62
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@
fc6d9d51 67PROFILED_LIBUUID = $(LIB)/libuuid@PROFILED_LIB_EXT@ @SOCKET_LIB@
a4d09610 68
50e1e10f
TT
69#
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#
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
a4d09610
TT
85#
86# A fast substitution command for fixing up man pages, shell scripts, etc.
87#
44339bdf
TT
88SUBST_CONF=$(top_builddir)/util/subst.conf
89SUBSTITUTE= $(top_builddir)/util/subst -f $(SUBST_CONF)
90DEP_SUBSTITUTE= $(top_builddir)/util/subst $(SUBST_CONF)
a4d09610 91
50e1e10f
TT
92#
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 \
fc6d9d51 100@W@ -Wcast-qual -Wcast-align -Wtraditional \
50e1e10f
TT
101@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
fc6d9d51
TT
122#
123# Autoconf magic...
124#
125
a4b2d3ce
TT
126DEP_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
fc6d9d51
TT
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
bf2602be
TT
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
fc6d9d51 144Makefile: $(srcdir)/Makefile.in $(top_builddir)/MCONFIG \
a4b2d3ce 145 $(DEP_MAKEFILE) $(top_builddir)/config.status
fc6d9d51
TT
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
50e1e10f
TT
151#
152# Make depend magic...
153#
154
155.depend: Makefile $(SRCS) $(top_srcdir)/depfix.sed
156 if test -n "$(SRCS)" ; then \
74becf3c 157 $(CC) -M $(ALL_CFLAGS) $(SRCS) | \
fc6d9d51
TT
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; \
50e1e10f
TT
164 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
50e1e10f 175# End of file MCONFIG