2000-05-22 09:53:22 +00:00
|
|
|
# Makefile for less under DJGPP v2.0 or later.
|
|
|
|
|
|
|
|
#### Start of system configuration section. ####
|
|
|
|
|
|
|
|
srcdir = .
|
|
|
|
VPATH = .
|
|
|
|
|
|
|
|
CC = gcc
|
2004-04-17 07:16:34 +00:00
|
|
|
INSTALL = ginstall -c
|
|
|
|
INSTALL_PROGRAM = ginstall
|
|
|
|
INSTALL_DATA = ginstall -m 644
|
2000-05-22 09:53:22 +00:00
|
|
|
AWK = gawk
|
|
|
|
|
|
|
|
CFLAGS = -O2 -g
|
|
|
|
CFLAGS_COMPILE_ONLY = -c
|
|
|
|
#LDFLAGS = -s
|
|
|
|
LDFLAGS = -g
|
|
|
|
O=o
|
|
|
|
|
|
|
|
LIBS =
|
2004-04-17 07:16:34 +00:00
|
|
|
prefix = /dev/env/DJDIR
|
|
|
|
exec_prefix = ${prefix}
|
|
|
|
|
|
|
|
bindir = ${exec_prefix}/bin
|
|
|
|
sysconfdir = ${prefix}/etc
|
|
|
|
mandir = ${prefix}/man
|
|
|
|
manext = 1
|
2000-05-22 09:53:22 +00:00
|
|
|
|
|
|
|
#### End of system configuration section. ####
|
|
|
|
|
|
|
|
# This rule allows us to supply the necessary -D options
|
|
|
|
# in addition to whatever the user asks for.
|
|
|
|
.c.o:
|
2004-04-17 07:16:34 +00:00
|
|
|
${CC} -I. ${CFLAGS_COMPILE_ONLY} -DBINDIR=\"${bindir}\" -DSYSDIR=\"${sysconfdir}\" ${CPPFLAGS} ${CFLAGS} $<
|
2000-05-22 09:53:22 +00:00
|
|
|
|
2009-07-27 07:05:08 +00:00
|
|
|
OBJ = \
|
|
|
|
main.${O} screen.${O} brac.${O} ch.${O} charset.${O} cmdbuf.${O} \
|
|
|
|
command.${O} cvt.${O} decode.${O} edit.${O} filename.${O} forwback.${O} \
|
2000-05-22 09:53:22 +00:00
|
|
|
help.${O} ifile.${O} input.${O} jump.${O} line.${O} linenum.${O} \
|
|
|
|
lsystem.${O} mark.${O} optfunc.${O} option.${O} opttbl.${O} os.${O} \
|
2009-07-27 07:05:08 +00:00
|
|
|
output.${O} pattern.${O} position.${O} prompt.${O} search.${O} signal.${O} \
|
2000-05-22 09:53:22 +00:00
|
|
|
tags.${O} ttyin.${O} version.${O}
|
|
|
|
|
|
|
|
all: less lesskey lessecho
|
|
|
|
|
|
|
|
less: ${OBJ}
|
|
|
|
${CC} ${LDFLAGS} -o $@ ${OBJ} ${LIBS}
|
|
|
|
|
|
|
|
lesskey: lesskey.${O} version.${O}
|
|
|
|
${CC} ${LDFLAGS} -o $@ lesskey.${O} version.${O}
|
|
|
|
|
|
|
|
lessecho: lessecho.${O} version.${O}
|
|
|
|
${CC} ${LDFLAGS} -o $@ lessecho.${O} version.${O}
|
|
|
|
|
|
|
|
defines.h: defines.ds
|
|
|
|
command.com /c copy $< $@
|
|
|
|
|
2004-04-17 07:16:34 +00:00
|
|
|
${OBJ}: ${srcdir}/less.h defines.h ${srcdir}/funcs.h
|
|
|
|
|
|
|
|
install: all ${srcdir}/less.man ${srcdir}/lesskey.man
|
|
|
|
${INSTALL_PROGRAM} less.exe ${bindir}/less.exe
|
|
|
|
${INSTALL_PROGRAM} lesskey.exe ${bindir}/lesskey.exe
|
|
|
|
${INSTALL_PROGRAM} lessecho.exe ${bindir}/lessecho.exe
|
|
|
|
${INSTALL_DATA} ${srcdir}/less.man ${mandir}/man${manext}/less.${manext}
|
|
|
|
${INSTALL_DATA} ${srcdir}/lesskey.man ${mandir}/man${manext}/lesskey.${manext}
|
2000-05-22 09:53:22 +00:00
|
|
|
|
|
|
|
info:
|
|
|
|
install-info:
|
|
|
|
dvi:
|
|
|
|
check:
|
|
|
|
installcheck:
|
|
|
|
|
|
|
|
TAGS:
|
|
|
|
etags *.c *.h
|
|
|
|
|
|
|
|
clean:
|
|
|
|
command.com /c for %f in (*.${O} less lesskey lessecho *.exe) do if exist %f del %f
|
|
|
|
|
|
|
|
mostlyclean: clean
|
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
command.com /c if not exist Makefile.dsg ren Makefile Makefile.dsg
|
|
|
|
command.com /c if not exist defines.ds ren defines.h defines.ds
|
|
|
|
command.com /c for %f in (Makefile defines.h) do if exist %f del %f
|
|
|
|
|
|
|
|
realclean: distclean
|
|
|
|
command.com /c if exist TAGS del TAGS
|
|
|
|
|