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