blob: 1776cf8aedb9dc999cf75aa2346070a81a6955e2 [file] [log] [blame]
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001# Beginning of file MCONFIG
2
3SHELL = /bin/sh
4
5prefix = @prefix@
6exec_prefix = @exec_prefix@
7usr_prefix = @usr_prefix@
8bindir = $(exec_prefix)/bin
9ubindir = $(usr_prefix)/bin
10sbindir = $(exec_prefix)/sbin
11usbindir = $(usr_prefix)/sbin
12libdir = $(exec_prefix)/lib
13ulibdir = $(usr_prefix)/lib
14includedir = $(usr_prefix)/include
15mandir = $(usr_prefix)/man
16man1dir = $(usr_prefix)/man/man1
17man8dir = $(usr_prefix)/man/man8
18cat1dir = $(usr_prefix)/man/cat1
19cat8dir = $(usr_prefix)/man/cat8
20
21@SET_MAKE@
22
23INSTALL_PROGRAM = @INSTALL_PROGRAM@
24INSTALL_DATA = @INSTALL_DATA@
25CC = @CC@
26DEFS = @DEFS@
Theodore Ts'o74becf31997-04-26 14:37:06 +000027CFLAGS = @CFLAGS@
28ALL_CFLAGS = $(CPPFLAGS) $(DEFS) $(WFLAGS) $(CFLAGS) $(XTRA_CFLAGS) \
Theodore Ts'o50e1e101997-04-26 13:58:21 +000029 -I$(top_builddir)/lib -I$(top_srcdir)/lib $(LINUX_INCLUDE)
30LDFLAGS = @LDFLAGS@
Theodore Ts'o74becf31997-04-26 14:37:06 +000031ALL_LDFLAGS = $(LDFLAGS)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000032RM = @RM@
33LN = @LN@
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000034LN_S = @LN_S@
Theodore Ts'o50e1e101997-04-26 13:58:21 +000035MV = @MV@
36CP = @CP@
37CHMOD = @CHMOD@
38AR = @AR@
39AWK = @AWK@
40SED = @SED@
41RANLIB = @RANLIB@
42STRIP = @STRIP@
43LD = $(PURE) @CC@
44ARUPD = $(AR) r
45
46#
Theodore Ts'oa4d09611997-04-29 14:28:00 +000047# Library definitions
48#
49LIB = $(top_builddir)/lib
50LIBSS = $(LIB)/libss@LIB_EXT@
51LIBCOM_ERR = $(LIB)/libcom_err@LIB_EXT@
52LIBE2P = $(LIB)/libe2p@LIB_EXT@
53LIBEXT2FS = $(LIB)/libext2fs@LIB_EXT@
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000054LIBUUID = $(LIB)/libuuid@LIB_EXT@ @SOCKET_LIB@
Theodore Ts'oa4d09611997-04-29 14:28:00 +000055
56STATIC_LIBSS = $(LIB)/libss@STATIC_LIB_EXT@
57STATIC_LIBCOM_ERR = $(LIB)/libcom_err@STATIC_LIB_EXT@
58STATIC_LIBE2P = $(LIB)/libe2p@STATIC_LIB_EXT@
59STATIC_LIBEXT2FS = $(LIB)/libext2fs@STATIC_LIB_EXT@
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000060STATIC_LIBUUID = $(LIB)/libuuid@STATIC_LIB_EXT@ @SOCKET_LIB@
Theodore Ts'oa4d09611997-04-29 14:28:00 +000061
62PROFILED_LIBSS = $(LIB)/libss@PROFILED_LIB_EXT@
63PROFILED_LIBCOM_ERR = $(LIB)/libcom_err@PROFILED_LIB_EXT@
64PROFILED_LIBE2P = $(LIB)/libe2p@PROFILED_LIB_EXT@
65PROFILED_LIBEXT2FS = $(LIB)/libext2fs@PROFILED_LIB_EXT@
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000066PROFILED_LIBUUID = $(LIB)/libuuid@PROFILED_LIB_EXT@ @SOCKET_LIB@
Theodore Ts'oa4d09611997-04-29 14:28:00 +000067
68#
Theodore Ts'o50e1e101997-04-26 13:58:21 +000069# 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#
77DLL_BIN=/usr/bin
78JUMP_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
82LINUX_INCLUDE=@LINUX_INCLUDE@
83
84#
Theodore Ts'oa4d09611997-04-29 14:28:00 +000085# A fast substitution command for fixing up man pages, shell scripts, etc.
86#
87SUBSTITUTE= $(top_builddir)/lib/substitute_sh
88
89#
Theodore Ts'o50e1e101997-04-26 13:58:21 +000090# 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 \
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000097@W@ -Wcast-qual -Wcast-align -Wtraditional \
Theodore Ts'o50e1e101997-04-26 13:58:21 +000098@W@ -Wstrict-prototypes -Wmissing-prototypes \
99@W@ -Wnested-externs -Winline -DNO_INLINE_FUNCS -Wshadow
100
101#
102# Installation user and groups
103#
104BINGRP= bin
105BINOWN= bin
106BINMODE= 555
107INCGRP= bin
108INCOWN= bin
109INCMODE= 444
110LIBOWN= bin
111LIBGRP= bin
112LIBMODE= 444
113MANGRP= bin
114MANOWN= bin
115MANMODE= 444
116
117all::
118
119#
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000120# 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
133Makefile: $(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#
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000141# Make depend magic...
142#
143
144.depend: Makefile $(SRCS) $(top_srcdir)/depfix.sed
145 if test -n "$(SRCS)" ; then \
Theodore Ts'o74becf31997-04-26 14:37:06 +0000146 $(CC) -M $(ALL_CFLAGS) $(SRCS) | \
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000147 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; \
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000153 else :; fi
154
155depend:: .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