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