Makefile.wnb revision 60786
1184610Salfred# Makefile for less. 2184610Salfred# Windows version 3184610Salfred 4184610Salfred#### Start of system configuration section. #### 5184610Salfred 6184610SalfredCC = bcc32 7184610SalfredLIBDIR = d:\bc45\lib 8184610Salfred 9184610SalfredCFLAGS = -O2 -w-pro -TWC -P-c -v- -d -f- -ff- -vi 10184610SalfredLDFLAGS = /Tpe /v- /ap /c /x 11184610SalfredLD = tlink32 12184610SalfredLIBS = ${LIBDIR}\import32.lib ${LIBDIR}\cw32.lib 13184610Salfred 14184610Salfred#### End of system configuration section. #### 15184610Salfred 16184610Salfred# This rule allows us to supply the necessary -D options 17184610Salfred# in addition to whatever the user asks for. 18184610Salfred.c.obj: 19184610Salfred ${CC} -c -I. ${CPPFLAGS} ${CFLAGS} $< 20184610Salfred 21184610SalfredOBJ = main.obj screen.obj brac.obj ch.obj charset.obj cmdbuf.obj command.obj \ 22184610Salfred decode.obj edit.obj filename.obj forwback.obj help.obj ifile.obj \ 23184610Salfred input.obj jump.obj line.obj linenum.obj lsystem.obj \ 24184610Salfred mark.obj optfunc.obj option.obj opttbl.obj os.obj output.obj \ 25184610Salfred position.obj prompt.obj search.obj signal.obj tags.obj \ 26184610Salfred ttyin.obj version.obj regexp.obj 27184610Salfred 28184610Salfredall: less lesskey 29184610Salfred 30184610Salfred# This is really horrible, but the command line is too long for 31184610Salfred# MS-DOS if we try to link ${OBJ}. 32184610Salfredless: ${OBJ} 33184610Salfred -del lesskey.obj 34184610Salfred ${LD} ${LDFLAGS} ${LIBDIR}\c0x32.obj *.obj, $@,,${LIBS} 35184610Salfred 36184610Salfredlesskey: lesskey.obj version.obj 37184610Salfred ${LD} ${LDFLAGS} ${LIBDIR}\c0x32.obj lesskey.obj version.obj, $@,,${LIBS} 38184610Salfred 39184610Salfreddefines.h: defines.wn 40184610Salfred -del defines.h 41184610Salfred -copy defines.wn defines.h 42184610Salfred 43184610Salfred${OBJ}: less.h defines.h funcs.h cmd.h 44184610Salfred 45184610Salfredclean: 46184610Salfred -del *.obj 47184610Salfred -del less.exe 48184610Salfred -del lesskey.exe 49184610Salfred 50184610Salfred