2000-05-22 09:53:22 +00:00
|
|
|
# Makefile for less.
|
|
|
|
# OS/2 version, for emx+gcc compiler
|
|
|
|
|
|
|
|
#### Start of system configuration section. ####
|
|
|
|
|
|
|
|
CC = gcc -Zomf
|
2002-01-07 20:29:38 +00:00
|
|
|
CFLAGS = -I. -O2 -Wall
|
|
|
|
LDFLAGS = -s -Zcrtdll
|
2000-05-22 09:53:22 +00:00
|
|
|
LIBS = -ltermcap
|
|
|
|
O = obj
|
|
|
|
|
|
|
|
#### 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} -c ${CPPFLAGS} ${CFLAGS} $<
|
|
|
|
|
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} regexp.${O}
|
|
|
|
|
2002-01-07 20:29:38 +00:00
|
|
|
all: less.exe lesskey.exe scrsize.exe
|
2000-05-22 09:53:22 +00:00
|
|
|
|
|
|
|
less.exe: ${OBJ}
|
|
|
|
${CC} ${OBJ} -o $@ ${LDFLAGS} ${LIBS}
|
|
|
|
|
|
|
|
lesskey.exe: lesskey.${O} version.${O}
|
|
|
|
${CC} lesskey.${O} version.${O} -o $@ ${LDFLAGS}
|
|
|
|
|
2002-01-07 20:29:38 +00:00
|
|
|
scrsize.exe: scrsize.c
|
|
|
|
${CC} ${CFLAGS} -D__ST_MT_ERRNO__ -s -Zmtd -lX11 $<
|
|
|
|
|
2000-05-22 09:53:22 +00:00
|
|
|
${OBJ}: defines.h less.h
|
|
|
|
|
|
|
|
defines.h: defines.o2
|
|
|
|
copy defines.o2 defines.h
|