1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140
|
###############################################################################
# TARGETS
###############################################################################
# make install:
# does a full make and installs the lde binary and man page
###############################################################################
srcdir = @srcdir@
VPATH = @srcdir@
LDE_VERSION=@LDEVERSION@
.EXPORT_ALL_VARIABLES:
###############################################################################
# Variables for binary installation
###############################################################################
# sbindir = where to install binary (/sbin)
# mandir = where to install man page (/usr/local/man/man1)
# program_name = name of installed binary (lde)
###############################################################################
prefix = @prefix@
exec_prefix = @exec_prefix@
libdir = @libdir@
sbindir = @SBIN_LOCATION@
mandir = $(prefix)/man/man8
manext = 8
program_name = lde
###############################################################################
# Curses support (include only when defined as LDE_CURSES_SRC)
###############################################################################
@CURSES_PREFIX@CURSES_SRC=nc_lde.c nc_block.c nc_inode.c nc_dir.c
@CURSES_PREFIX@CURSES_OBJ=nc_lde.o nc_block.o nc_inode.o nc_dir.o
###############################################################################
# Other defines which might be useful
#
# -DREAD_PART_TABLES -- for ext2fs currently, can read in the full
# disk tables if undefined, or just one group at
# a time when defined (memory savings should really be on the
# order of kb, maybe 10's of kb)
# -DNO_WRITE_INODE -- turn off inode writes
# -DPARANOID -- open device read only at all times
# -DNO_KERNEL_BITOPS -- use the C bitop replacement code instead of the ones
# in <asm/bitops.h>
# -DALPHA_CODE -- Activate some of the code that is still Alpha
# -DBETA_CODE -- Activate some of the code that is still Beta
# -DERRORS_SAVED=30 -- define the number of errors which are saved in the
# error history log (default to 30 if not set below).
# -DHAVE_LIBGPM -- use GPM Mouse support
#
###############################################################################
QUIET_CFLAGS=@shutup@
CPPFLAGS=@CPPFLAGS@ @DEFS@ @CURSES_INCLUDEDIR@
CFLAGS=-DLDE_VERSION=\"$(LDE_VERSION)\" $(CPPFLAGS) @CFLAGS@
LDFLAGS=@LDFLAGS@
STATIC_LDFLAGS=@STATIC_LDFLAGS@
LIBS=@LIBS@ @CURSES_LIBS@
###############################################################################
# Define compilers
###############################################################################
CC=@CC@
@SET_MAKE@
YACC=@YACC@
AR=@AR@
RM=@RM@ -f
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@ -m 0500
INSTALL_DATA = @INSTALL_DATA@
###############################################################################
# STOP EDITING HERE
###############################################################################
all: dummy.cr dummy.src
$(program_name): dummy.src
dummy.src:
( cd src ; $(MAKE) -f Makefile all )
dummy.cr:
( cd crash_recovery ; $(MAKE) -f Makefile all )
clean:
( cd src ; $(MAKE) -f Makefile clean )
( cd crash_recovery ; $(MAKE) -f Makefile clean )
clear:
( cd src ; $(MAKE) -f Makefile clear )
( cd crash_recovery ; $(MAKE) -f Makefile clear )
$(RM) macros/config.*
$(RM) lde
dep: depend
depend:
( cd src ; $(MAKE) -f Makefile depend )
( cd crash_recovery ; $(MAKE) -f Makefile depend )
install: $(program_name)
${INSTALL_PROGRAM} $(program_name) $(sbindir)/$(program_name)
${INSTALL_DATA} doc/lde.man $(mandir)/$(program_name).$(manext)
test:
( cd ../lde-testdata ; ./test.sh )
###############################################################################
# YOU SHOULD NEVER EVER NEED THESE
###############################################################################
doc/lde.man.text: doc/lde.man
groff -Tascii -P-u -P-b -man doc/lde.man > doc/lde.man.text
dist: clear doc/lde.man.text all clean tar
tar:
@if [ -f lde*tar.gz ] ; then mv -f lde*tar.gz old ; fi
( cd ..; tar -cvz -f lde/lde-$(LDE_VERSION).tar.gz lde \
--exclude lde-$(LDE_VERSION).tar.gz --exclude RCS \
--exclude lde/test\* --exclude \*~ --exclude CVS \
--exclude .depend --exclude old \
--exclude lde-$(LDE_VERSION).zip --exclude lde/Makefile \
--exclude lde/macros/config.\* --exclude configure.scan )
diff:
( cd ..; diff -u --recursive --new-file \
-x 'lde-$(LDE_VERSION).zip' -x 'lde/Makefile' \
-x lde/old/untar/lde/Makefile \
-x 'lde-$(LDE_VERSION).tar.gz' -x 'RCS' \
-x 'test*' -x '*~' \
-x '.depend' -x 'old' \
-x 'config.*' lde/old/untar/lde lde )
echo
echo
autoconf:
cd macros
autoconf ; $(RM) config.cache
|