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