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 infodir = $(usr_prefix)/info
21
22 @SET_MAKE@
23
24 INSTALL_PROGRAM = @INSTALL_PROGRAM@
25 INSTALL_DATA = @INSTALL_DATA@
26 CC = @CC@
27 DEFS = @DEFS@
28 CFLAGS = @CFLAGS@
29 ALL_CFLAGS = $(CPPFLAGS) $(DEFS) $(WFLAGS) $(CFLAGS) $(XTRA_CFLAGS) \
30         -I$(top_builddir)/lib -I$(top_srcdir)/lib $(LINUX_INCLUDE) 
31 LDFLAGS = @LDFLAGS@
32 ALL_LDFLAGS = $(LDFLAGS)
33 RM = @RM@
34 LN = @LN@
35 LN_S = @LN_S@
36 MV = @MV@
37 CP = @CP@
38 CHMOD = @CHMOD@
39 AR = @AR@
40 AWK = @AWK@
41 SED = @SED@
42 RANLIB = @RANLIB@
43 STRIP = @STRIP@
44 LD = $(PURE) @CC@
45 ARUPD = $(AR) r
46
47 #
48 # Library definitions
49 #
50 LIB = $(top_builddir)/lib
51 LIBSS = $(LIB)/libss@LIB_EXT@
52 LIBCOM_ERR = $(LIB)/libcom_err@LIB_EXT@
53 LIBE2P = $(LIB)/libe2p@LIB_EXT@
54 LIBEXT2FS = $(LIB)/libext2fs@LIB_EXT@
55 LIBUUID = $(LIB)/libuuid@LIB_EXT@ @SOCKET_LIB@ 
56
57 STATIC_LIBSS = $(LIB)/libss@STATIC_LIB_EXT@
58 STATIC_LIBCOM_ERR = $(LIB)/libcom_err@STATIC_LIB_EXT@
59 STATIC_LIBE2P = $(LIB)/libe2p@STATIC_LIB_EXT@
60 STATIC_LIBEXT2FS = $(LIB)/libext2fs@STATIC_LIB_EXT@
61 STATIC_LIBUUID = $(LIB)/libuuid@STATIC_LIB_EXT@ @SOCKET_LIB@ 
62
63 PROFILED_LIBSS = $(LIB)/libss@PROFILED_LIB_EXT@
64 PROFILED_LIBCOM_ERR = $(LIB)/libcom_err@PROFILED_LIB_EXT@
65 PROFILED_LIBE2P = $(LIB)/libe2p@PROFILED_LIB_EXT@
66 PROFILED_LIBEXT2FS = $(LIB)/libext2fs@PROFILED_LIB_EXT@
67 PROFILED_LIBUUID = $(LIB)/libuuid@PROFILED_LIB_EXT@ @SOCKET_LIB@ 
68
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 #
78 DLL_BIN=/usr/bin
79 JUMP_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
83 LINUX_INCLUDE=@LINUX_INCLUDE@
84
85 #
86 # A fast substitution command for fixing up man pages, shell scripts, etc.
87 #
88 SUBST_CONF=$(top_builddir)/util/subst.conf
89 SUBSTITUTE= $(top_builddir)/util/subst -f $(SUBST_CONF)
90 DEP_SUBSTITUTE= $(top_builddir)/util/subst $(SUBST_CONF)
91
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 \
100 @W@                     -Wcast-qual -Wcast-align -Wtraditional \
101 @W@                     -Wstrict-prototypes -Wmissing-prototypes \
102 @W@                     -Wnested-externs -Winline -DNO_INLINE_FUNCS -Wshadow 
103
104 #
105 # Installation user and groups
106 #
107 BINGRP=         bin
108 BINOWN=         bin
109 BINMODE=        555
110 INCGRP=         bin
111 INCOWN=         bin
112 INCMODE=        444
113 LIBOWN=         bin
114 LIBGRP=         bin
115 LIBMODE=        444
116 MANGRP=         bin
117 MANOWN=         bin
118 MANMODE=        444
119
120 all::
121
122 #
123 # Autoconf magic...
124 #
125
126 $(top_builddir)/config.status: $(top_srcdir)/configure
127         (cd $(top_builddir); ./config.status --recheck)
128
129 $(top_builddir)/MCONFIG: $(top_srcdir)/MCONFIG.in $(top_builddir)/config.status
130         (cd $(top_builddir); CONFIG_FILES=MCONFIG ./config.status)
131
132 $(top_builddir)/lib/substitute_sh: $(top_srcdir)/lib/substitute_sh.in \
133                 $(top_builddir)/config.status
134         (cd $(top_builddir); CONFIG_FILES=lib/substitute_sh ./config.status)
135
136 Makefile: $(srcdir)/Makefile.in $(top_builddir)/MCONFIG \
137                 $(top_builddir)/config.status
138         (cd $(top_builddir); CONFIG_FILES=$(my_dir)/Makefile ./config.status)
139
140 $(top_srcdir)/configure: $(top_srcdir)/configure.in
141         cd $(top_srcdir) && autoconf
142
143 #
144 # Make depend magic...
145 #
146
147 .depend: Makefile $(SRCS) $(top_srcdir)/depfix.sed
148         if test -n "$(SRCS)" ; then \
149                 $(CC) -M $(ALL_CFLAGS) $(SRCS) | \
150                         sed -f $(top_srcdir)/depfix.sed \
151                             -e 's; $(srcdir)/; $$(srcdir)/;g' \
152                             -e 's; $(top_srcdir)/; $$(top_srcdir)/;g' \
153                             -e 's; $(top_builddir)/; $$(top_builddir)/;g' \
154                             -e 's; \./; ;g' \
155                             -e '/^ *\\$$/d' > .depend; \
156         else :; fi
157
158 depend:: .depend
159         if test -n "$(SRCS)" ; then \
160                 sed -e '/^# +++ Dependency line eater +++/,$$d' \
161                         < $(srcdir)/Makefile.in | cat - .depend \
162                         > $(srcdir)/Makefile.in.new; \
163         $(MV) $(srcdir)/Makefile.in $(srcdir)/Makefile.in.old; \
164         $(MV) $(srcdir)/Makefile.in.new $(srcdir)/Makefile.in; \
165         else :; fi
166
167 # End of file MCONFIG