all:  spell32.dll demo.exe

demo.res: demo.rc demo.h demo_dlg.h demo_dlg.dlg
     BRC32 -r -w32 demo.rc 

demo.obj: demo.c demo.h spell.h
     BCC32 -W -c -N- -w-par demo.c  

demo.exe: demo.obj demo.def demo.res spell32.lib
     TLINK32 /Tpe /c /s C0W32 DEMO, DEMO.EXE, DEMO.MAP, IMPORT32 CW32 SPELL32, DEMO.DEF, DEMO.RES

spell.obj: spell.c spell.h
     BCC32 -WDE -c -N- -wdef -wuse -wnod -w-par -w-aus spell.c

spell.res: spell.rc spelldlg.dlg spelldlg.h
    BRC32 -r -w32 spell.rc 

spell32.dll: spell.obj spell.res spell.def
    tlink32 /m /Tpd /c C0D32 spell.obj, spell32.dll, spell.map,import32 cw32, spell.def, spell.res
    implib spell32.lib spell32.dll 

