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