mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-29 12:03:03 +00:00
a5f0fb151d
distributed under your choice of the GPL or a BSD style license. Reviewed by: peter Obtained from: http://home.flash.net/~marknu/less/
75 lines
1.7 KiB
Makefile
75 lines
1.7 KiB
Makefile
# Makefile for less under DJGPP v2.0 or later.
|
|
|
|
#### Start of system configuration section. ####
|
|
|
|
srcdir = .
|
|
VPATH = .
|
|
|
|
CC = gcc
|
|
AWK = gawk
|
|
|
|
CFLAGS = -O2 -g
|
|
CFLAGS_COMPILE_ONLY = -c
|
|
#LDFLAGS = -s
|
|
LDFLAGS = -g
|
|
O=o
|
|
|
|
LIBS =
|
|
|
|
#### 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:
|
|
${CC} -I. ${CFLAGS_COMPILE_ONLY} ${CPPFLAGS} ${CFLAGS} $<
|
|
|
|
OBJ = main.${O} screen.${O} brac.${O} ch.${O} charset.${O} cmdbuf.${O} \
|
|
command.${O} decode.${O} edit.${O} filename.${O} forwback.${O} \
|
|
help.${O} ifile.${O} input.${O} jump.${O} line.${O} linenum.${O} \
|
|
lsystem.${O} mark.${O} optfunc.${O} option.${O} opttbl.${O} os.${O} \
|
|
output.${O} position.${O} prompt.${O} search.${O} signal.${O} \
|
|
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 $< $@
|
|
|
|
${OBJ}: less.h defines.h funcs.h
|
|
|
|
info:
|
|
install-info:
|
|
dvi:
|
|
check:
|
|
installcheck:
|
|
|
|
TAGS:
|
|
etags *.c *.h
|
|
|
|
newfuncs:
|
|
command.com /c if exist funcs.h del funcs.h
|
|
${AWK} -f mkfuncs.awk ${OBJ:.${O}=.c} > funcs.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
|
|
|