mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +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/
43 lines
1.1 KiB
Makefile
43 lines
1.1 KiB
Makefile
# Makefile for less.
|
|
# OS-9 version for Ultra C.
|
|
|
|
#### Start of system configuration section. ####
|
|
|
|
CC = cc
|
|
CPPFLAGS =
|
|
CFLAGS = -v=.
|
|
CFLAGS_COMPILE_ONLY = -eas
|
|
LDFLAGS = -olM=24k
|
|
LIBS = -ltermlib.l -lsys_clib.l -lunix.l
|
|
O = r
|
|
|
|
|
|
#### End of system configuration section. ####
|
|
|
|
.SUFFIXES: .c .${O}
|
|
|
|
# This rule allows us to supply the necessary -D options
|
|
# in addition to whatever the user asks for.
|
|
.c.${O}:
|
|
${CC} ${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} regexp.${O}
|
|
|
|
all: less lesskey
|
|
|
|
less: ${OBJ}
|
|
${CC} ${OBJ} -f=$@ ${LDFLAGS} ${LIBS}
|
|
|
|
lesskey: lesskey.${O} version.${O}
|
|
${CC} lesskey.${O} version.${O} -f=$@ ${LDFLAGS}
|
|
|
|
${OBJ}: defines.h less.h
|
|
|
|
defines.h: defines.o9
|
|
copy defines.o9 defines.h -rf
|