1# Makefile for less. 2# OS/2 version, for emx+gcc compiler 3 4#### Start of system configuration section. #### 5 6CC = gcc -Zomf 7CFLAGS = -I. -O2 -Wall 8LDFLAGS = -s -Zcrtdll 9LIBS = -ltermcap 10O = obj 11 12#### End of system configuration section. #### 13 14.SUFFIXES: .c .${O} 15 16# This rule allows us to supply the necessary -D options 17# in addition to whatever the user asks for. 18.c.${O}: 19 ${CC} -c ${CPPFLAGS} ${CFLAGS} $< 20 21OBJ = \ 22 main.${O} screen.${O} brac.${O} ch.${O} charset.${O} cmdbuf.${O} \ 23 command.${O} cvt.${O} decode.${O} edit.${O} filename.${O} forwback.${O} \ 24 help.${O} ifile.${O} input.${O} jump.${O} line.${O} linenum.${O} \ 25 lsystem.${O} mark.${O} optfunc.${O} option.${O} opttbl.${O} os.${O} \ 26 output.${O} pattern.${O} position.${O} prompt.${O} search.${O} signal.${O} \ 27 tags.${O} ttyin.${O} version.${O} regexp.${O} 28 29all: less.exe lesskey.exe scrsize.exe 30 31less.exe: ${OBJ} 32 ${CC} ${OBJ} -o $@ ${LDFLAGS} ${LIBS} 33 34lesskey.exe: lesskey.${O} version.${O} 35 ${CC} lesskey.${O} version.${O} -o $@ ${LDFLAGS} 36 37scrsize.exe: scrsize.c 38 ${CC} ${CFLAGS} -D__ST_MT_ERRNO__ -s -Zmtd -lX11 $< 39 40${OBJ}: defines.h less.h 41 42defines.h: defines.o2 43 copy defines.o2 defines.h 44