cl	=	cl386
cbuild	=	-c -G3 -W3 -Ox -Zl -nologo
cdebug	=	-c -G3 -W3 -Od -Zli -nologo
cvars	=	-D_X86_=1 -DWIN32 -D_MT -D_DLL

ln	=	link32
lbuild	=	-debug:none
ldebug	=	-debug:full -debugtype:cv
ltype	=	-subsystem:console -entry:mainCRTStartup
llibs	=	crtdll.lib kernel32.lib

objs	=	main.obj\
		basic.obj\
		bind.obj\
		buffer.obj\
		char.obj\
		crypt.obj\
		display.obj\
		dolock.obj\
		eval.obj\
		exec.obj\
		file.obj\
		fileio.obj\
		history.obj\
		input.obj\
		isearch.obj\
		line.obj\
		lock.obj\
		random.obj\
		region.obj\
		screen.obj\
		search.obj\
		tags.obj\
		window.obj\
		word.obj\
		ntcon.obj

foo.exe:	$(objs)

link:		$(objs)
		@$(ln) $(lbuild) $(ltype) -out:foo.exe $(objs) $(llibs)

.obj.exe:;	@$(ln) $(lbuild) $(ltype) -out:foo.exe $*.obj $(llibs)

.c.obj:;	@$(cl) $(cbuild) $(cvars) $*.c
