blob: 3f26b5e743033202f59989027de29c2611d63189 [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
Theodore Ts'o21c84b71997-04-29 16:15:03 +000020infodir = $(usr_prefix)/info
Theodore Ts'o50e1e101997-04-26 13:58:21 +000021
22@SET_MAKE@
23
24INSTALL_PROGRAM = @INSTALL_PROGRAM@
25INSTALL_DATA = @INSTALL_DATA@
26CC = @CC@
27DEFS = @DEFS@
Theodore Ts'o74becf31997-04-26 14:37:06 +000028CFLAGS = @CFLAGS@
29ALL_CFLAGS = $(CPPFLAGS) $(DEFS) $(WFLAGS) $(CFLAGS) $(XTRA_CFLAGS) \
Theodore Ts'o50e1e101997-04-26 13:58:21 +000030 -I$(top_builddir)/lib -I$(top_srcdir)/lib $(LINUX_INCLUDE)
31LDFLAGS = @LDFLAGS@
Theodore Ts'o74becf31997-04-26 14:37:06 +000032ALL_LDFLAGS = $(LDFLAGS)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000033RM = @RM@
34LN = @LN@
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000035LN_S = @LN_S@
Theodore Ts'o50e1e101997-04-26 13:58:21 +000036MV = @MV@
37CP = @CP@
38CHMOD = @CHMOD@
39AR = @AR@
40AWK = @AWK@
41SED = @SED@
42RANLIB = @RANLIB@
43STRIP = @STRIP@
44LD = $(PURE) @CC@
45ARUPD = $(AR) r
46
47#
Theodore Ts'oa4d09611997-04-29 14:28:00 +000048# Library definitions
49#
50LIB = $(top_builddir)/lib
51LIBSS = $(LIB)/libss@LIB_EXT@
52LIBCOM_ERR = $(LIB)/libcom_err@LIB_EXT@
53LIBE2P = $(LIB)/libe2p@LIB_EXT@
54LIBEXT2FS = $(LIB)/libext2fs@LIB_EXT@
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000055LIBUUID = $(LIB)/libuuid@LIB_EXT@ @SOCKET_LIB@
Theodore Ts'oa4d09611997-04-29 14:28:00 +000056
57STATIC_LIBSS = $(LIB)/libss@STATIC_LIB_EXT@
58STATIC_LIBCOM_ERR = $(LIB)/libcom_err@STATIC_LIB_EXT@
59STATIC_LIBE2P = $(LIB)/libe2p@STATIC_LIB_EXT@
60STATIC_LIBEXT2FS = $(LIB)/libext2fs@STATIC_LIB_EXT@
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000061STATIC_LIBUUID = $(LIB)/libuuid@STATIC_LIB_EXT@ @SOCKET_LIB@
Theodore Ts'oa4d09611997-04-29 14:28:00 +000062
63PROFILED_LIBSS = $(LIB)/libss@PROFILED_LIB_EXT@
64PROFILED_LIBCOM_ERR = $(LIB)/libcom_err@PROFILED_LIB_EXT@
65PROFILED_LIBE2P = $(LIB)/libe2p@PROFILED_LIB_EXT@
66PROFILED_LIBEXT2FS = $(LIB)/libext2fs@PROFILED_LIB_EXT@
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000067PROFILED_LIBUUID = $(LIB)/libuuid@PROFILED_LIB_EXT@ @SOCKET_LIB@
Theodore Ts'oa4d09611997-04-29 14:28:00 +000068
69#
Theodore Ts'o50e1e101997-04-26 13:58:21 +000070# 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#
78DLL_BIN=/usr/bin
79JUMP_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
83LINUX_INCLUDE=@LINUX_INCLUDE@
84
85#
Theodore Ts'oa4d09611997-04-29 14:28:00 +000086# A fast substitution command for fixing up man pages, shell scripts, etc.
87#
Theodore Ts'o44339bd1997-10-15 02:47:20 +000088SUBST_CONF=$(top_builddir)/util/subst.conf
89SUBSTITUTE= $(top_builddir)/util/subst -f $(SUBST_CONF)
90DEP_SUBSTITUTE= $(top_builddir)/util/subst $(SUBST_CONF)
Theodore Ts'oa4d09611997-04-29 14:28:00 +000091
92#
Theodore Ts'o50e1e101997-04-26 13:58:21 +000093# 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 \
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000100@W@ -Wcast-qual -Wcast-align -Wtraditional \
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000101@W@ -Wstrict-prototypes -Wmissing-prototypes \
102@W@ -Wnested-externs -Winline -DNO_INLINE_FUNCS -Wshadow
103
104#
105# Installation user and groups
106#
107BINGRP= bin
108BINOWN= bin
109BINMODE= 555
110INCGRP= bin
111INCOWN= bin
112INCMODE= 444
113LIBOWN= bin
114LIBGRP= bin
115LIBMODE= 444
116MANGRP= bin
117MANOWN= bin
118MANMODE= 444
119
120all::
121
122#
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000123# 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
136Makefile: $(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#
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000144# Make depend magic...
145#
146
147.depend: Makefile $(SRCS) $(top_srcdir)/depfix.sed
148 if test -n "$(SRCS)" ; then \
Theodore Ts'o74becf31997-04-26 14:37:06 +0000149 $(CC) -M $(ALL_CFLAGS) $(SRCS) | \
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000150 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; \
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000156 else :; fi
157
158depend:: .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
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000167# End of file MCONFIG