blob: 08743051f2dd9ff9ebc895117f665336dddc9a15 [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@
27LIBS = @LIBS@
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@
35MV = @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@
54
55STATIC_LIBSS = $(LIB)/libss@STATIC_LIB_EXT@
56STATIC_LIBCOM_ERR = $(LIB)/libcom_err@STATIC_LIB_EXT@
57STATIC_LIBE2P = $(LIB)/libe2p@STATIC_LIB_EXT@
58STATIC_LIBEXT2FS = $(LIB)/libext2fs@STATIC_LIB_EXT@
59
60PROFILED_LIBSS = $(LIB)/libss@PROFILED_LIB_EXT@
61PROFILED_LIBCOM_ERR = $(LIB)/libcom_err@PROFILED_LIB_EXT@
62PROFILED_LIBE2P = $(LIB)/libe2p@PROFILED_LIB_EXT@
63PROFILED_LIBEXT2FS = $(LIB)/libext2fs@PROFILED_LIB_EXT@
64
65#
Theodore Ts'o50e1e101997-04-26 13:58:21 +000066# Use these definitions is you use tools 2.x, x < 16
67#
68#DLL_BIN=/usr/dll/bin
69#JUMP_PREFIX=/usr/dll/jump/
70
71#
72# Use these definitions if you use tools 2.16 or above
73#
74DLL_BIN=/usr/bin
75JUMP_PREFIX=/usr/bin/jump
76
77# An include directive pointing to a directory holding enough linux-like
78# include files to satisfy some programs here
79LINUX_INCLUDE=@LINUX_INCLUDE@
80
81#
Theodore Ts'oa4d09611997-04-29 14:28:00 +000082# A fast substitution command for fixing up man pages, shell scripts, etc.
83#
84SUBSTITUTE= $(top_builddir)/lib/substitute_sh
85
86#
Theodore Ts'o50e1e101997-04-26 13:58:21 +000087# Warning flags
88#
89# Uncomment WFLAGS if you want really anal GCC warning messages
90#
91#
92@W@WFLAGS= -ansi -D_POSIX_SOURCE -pedantic \
93@W@ -Wall -Wwrite-strings -Wpointer-arith \
94@W@ -Wcast-qual -Wenum-clash -Wcast-align -Wtraditional \
95@W@ -Wstrict-prototypes -Wmissing-prototypes \
96@W@ -Wnested-externs -Winline -DNO_INLINE_FUNCS -Wshadow
97
98#
99# Installation user and groups
100#
101BINGRP= bin
102BINOWN= bin
103BINMODE= 555
104INCGRP= bin
105INCOWN= bin
106INCMODE= 444
107LIBOWN= bin
108LIBGRP= bin
109LIBMODE= 444
110MANGRP= bin
111MANOWN= bin
112MANMODE= 444
113
114all::
115
116#
117# Make depend magic...
118#
119
120.depend: Makefile $(SRCS) $(top_srcdir)/depfix.sed
121 if test -n "$(SRCS)" ; then \
Theodore Ts'o74becf31997-04-26 14:37:06 +0000122 $(CC) -M $(ALL_CFLAGS) $(SRCS) | \
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000123 sed -f $(top_srcdir)/depfix.sed | \
124 sed -e 's; $(srcdir)/; $$(srcdir)/;g' | \
125 sed -e 's; $(top_srcdir)/; $$(top_srcdir)/;g' | \
126 sed -e 's; $(top_builddir)/; $$(top_builddir)/;g' | \
127 sed -e 's; \./; ;g' | \
128 grep -v " \\\\$$" > .depend; \
129 else :; fi
130
131depend:: .depend
132 if test -n "$(SRCS)" ; then \
133 sed -e '/^# +++ Dependency line eater +++/,$$d' \
134 < $(srcdir)/Makefile.in | cat - .depend \
135 > $(srcdir)/Makefile.in.new; \
136 $(MV) $(srcdir)/Makefile.in $(srcdir)/Makefile.in.old; \
137 $(MV) $(srcdir)/Makefile.in.new $(srcdir)/Makefile.in; \
138 else :; fi
139
140
141
142
143
144# End of file MCONFIG