Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 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 |
| 20 | |
| 21 | @SET_MAKE@ |
| 22 | |
| 23 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
| 24 | INSTALL_DATA = @INSTALL_DATA@ |
| 25 | CC = @CC@ |
| 26 | DEFS = @DEFS@ |
| 27 | LIBS = @LIBS@ |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 28 | CFLAGS = @CFLAGS@ |
| 29 | ALL_CFLAGS = $(CPPFLAGS) $(DEFS) $(WFLAGS) $(CFLAGS) $(XTRA_CFLAGS) \ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 30 | -I$(top_builddir)/lib -I$(top_srcdir)/lib $(LINUX_INCLUDE) |
| 31 | LDFLAGS = @LDFLAGS@ |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 32 | ALL_LDFLAGS = $(LDFLAGS) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 33 | RM = @RM@ |
| 34 | LN = @LN@ |
| 35 | MV = @MV@ |
| 36 | CP = @CP@ |
| 37 | CHMOD = @CHMOD@ |
| 38 | AR = @AR@ |
| 39 | AWK = @AWK@ |
| 40 | SED = @SED@ |
| 41 | RANLIB = @RANLIB@ |
| 42 | STRIP = @STRIP@ |
| 43 | LD = $(PURE) @CC@ |
| 44 | ARUPD = $(AR) r |
| 45 | |
| 46 | # |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame^] | 47 | # Library definitions |
| 48 | # |
| 49 | LIB = $(top_builddir)/lib |
| 50 | LIBSS = $(LIB)/libss@LIB_EXT@ |
| 51 | LIBCOM_ERR = $(LIB)/libcom_err@LIB_EXT@ |
| 52 | LIBE2P = $(LIB)/libe2p@LIB_EXT@ |
| 53 | LIBEXT2FS = $(LIB)/libext2fs@LIB_EXT@ |
| 54 | |
| 55 | STATIC_LIBSS = $(LIB)/libss@STATIC_LIB_EXT@ |
| 56 | STATIC_LIBCOM_ERR = $(LIB)/libcom_err@STATIC_LIB_EXT@ |
| 57 | STATIC_LIBE2P = $(LIB)/libe2p@STATIC_LIB_EXT@ |
| 58 | STATIC_LIBEXT2FS = $(LIB)/libext2fs@STATIC_LIB_EXT@ |
| 59 | |
| 60 | PROFILED_LIBSS = $(LIB)/libss@PROFILED_LIB_EXT@ |
| 61 | PROFILED_LIBCOM_ERR = $(LIB)/libcom_err@PROFILED_LIB_EXT@ |
| 62 | PROFILED_LIBE2P = $(LIB)/libe2p@PROFILED_LIB_EXT@ |
| 63 | PROFILED_LIBEXT2FS = $(LIB)/libext2fs@PROFILED_LIB_EXT@ |
| 64 | |
| 65 | # |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 66 | # 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 | # |
| 74 | DLL_BIN=/usr/bin |
| 75 | JUMP_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 |
| 79 | LINUX_INCLUDE=@LINUX_INCLUDE@ |
| 80 | |
| 81 | # |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame^] | 82 | # A fast substitution command for fixing up man pages, shell scripts, etc. |
| 83 | # |
| 84 | SUBSTITUTE= $(top_builddir)/lib/substitute_sh |
| 85 | |
| 86 | # |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 87 | # 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 | # |
| 101 | BINGRP= bin |
| 102 | BINOWN= bin |
| 103 | BINMODE= 555 |
| 104 | INCGRP= bin |
| 105 | INCOWN= bin |
| 106 | INCMODE= 444 |
| 107 | LIBOWN= bin |
| 108 | LIBGRP= bin |
| 109 | LIBMODE= 444 |
| 110 | MANGRP= bin |
| 111 | MANOWN= bin |
| 112 | MANMODE= 444 |
| 113 | |
| 114 | all:: |
| 115 | |
| 116 | # |
| 117 | # Make depend magic... |
| 118 | # |
| 119 | |
| 120 | .depend: Makefile $(SRCS) $(top_srcdir)/depfix.sed |
| 121 | if test -n "$(SRCS)" ; then \ |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 122 | $(CC) -M $(ALL_CFLAGS) $(SRCS) | \ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 123 | 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 | |
| 131 | depend:: .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 |