160786Sps# Makefile for less.
260786Sps# OS/2 version, for emx+gcc compiler
360786Sps
460786Sps#### Start of system configuration section. ####
560786Sps
660786SpsCC = gcc -Zomf
789019SpsCFLAGS = -I. -O2 -Wall
889019SpsLDFLAGS = -s -Zcrtdll
960786SpsLIBS = -ltermcap
1060786SpsO = obj
1160786Sps
1260786Sps#### End of system configuration section. ####
1360786Sps
1460786Sps.SUFFIXES: .c .${O}
1560786Sps
1660786Sps# This rule allows us to supply the necessary -D options
1760786Sps# in addition to whatever the user asks for.
1860786Sps.c.${O}:
1960786Sps	${CC} -c ${CPPFLAGS} ${CFLAGS} $<
2060786Sps
21195941SdelphijOBJ = \
22195941Sdelphij	main.${O} screen.${O} brac.${O} ch.${O} charset.${O} cmdbuf.${O} \
23195941Sdelphij	command.${O} cvt.${O} decode.${O} edit.${O} filename.${O} forwback.${O} \
2460786Sps	help.${O} ifile.${O} input.${O} jump.${O} line.${O} linenum.${O} \
2560786Sps	lsystem.${O} mark.${O} optfunc.${O} option.${O} opttbl.${O} os.${O} \
26195941Sdelphij	output.${O} pattern.${O} position.${O} prompt.${O} search.${O} signal.${O} \
2760786Sps	tags.${O} ttyin.${O} version.${O}  regexp.${O}
2860786Sps
2989019Spsall:    less.exe lesskey.exe scrsize.exe
3060786Sps
3160786Spsless.exe: ${OBJ}
3260786Sps	${CC} ${OBJ} -o $@ ${LDFLAGS} ${LIBS}
3360786Sps
3460786Spslesskey.exe: lesskey.${O} version.${O}
3560786Sps	${CC} lesskey.${O} version.${O} -o $@ ${LDFLAGS}
3660786Sps
3789019Spsscrsize.exe: scrsize.c
3889019Sps	${CC} ${CFLAGS} -D__ST_MT_ERRNO__ -s -Zmtd -lX11 $<
3989019Sps
4060786Sps${OBJ}: defines.h less.h
4160786Sps
4260786Spsdefines.h: defines.o2
4360786Sps	copy defines.o2 defines.h
44