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