CC=cl -c -AM -Gsw -Ows -Zpe -nologo -J

all: altkeyb.exe

hello.obj: hello.c hello.h
	$(CC) -nologo  -NT hello hello.c

dlg.obj: dlg.c hello.h
	$(CC) -nologo  -NT dlg dlg.c

kdlg.obj: kdlg.c hello.h
	$(CC) -nologo  -NT dlg kdlg.c

lsupp.obj: lsupp.c hello.h
	$(CC) -nologo  -NT dlg lsupp.c

init.obj: init.c hello.h
	$(CC) -nologo  -NT dlg init.c

wp.obj: wp.c hello.h
	$(CC) -nologo  -NT hello wp.c

about.obj: about.c hello.h
	$(CC) -nologo  -NT dlg about.c

vk.obj: vk.asm
	masm vk;

check.obj: check.asm
	masm check;

hello.res: hello.dlg lhello.rc about.dlg cyrwin.ico
	rc -r -v lhello.rc
	if exist hello.res del hello.res
	ren lhello.res hello.res

altkeyb.exe: hello.obj init.obj wp.obj vk.obj dlg.obj kdlg.obj lsupp.obj hello.res hello.def altkeyb.lib about.obj check.obj
    link /NOD /NOLOGO hello init wp dlg kdlg lsupp vk check about,/align:16,/map,libw mlibcew altkeyb,hello.def
    rc -v hello.res
    if exist altkeyb.exe del altkeyb.exe
    ren hello.exe altkeyb.exe
