@rem @rem This is a demo makefile for making the CAPI 2.0 Development Kit @rem library with the Microsoft Visual C compiler for a 16 bit @rem Windows environment. @rem @rem This makefile expects as first parameter a letter that specifies @rem the memory model to compile with, for example L (large model), @rem S (small model). @rem If as second parameter dbg is given, the symbol CPROT is defined @rem and the library will be build including the protocol functions @ @ @if "%1" == "" goto NoMemoryModel @if "%2" == "dbg" goto dbg @ @ set cl=/c /GA /A%1 /W4 /Isource /nologo /DTARGET_16BIT cl source\func.c source\msg.c source\gcmsgwin.c source\cwin16.c del win16\capi20%1.lib @ lib /NOLOGO win16\capi20%1.lib; lib /NOLOGO win16\capi20%1.lib +msg+cwin16+func+gcmsgwin+win16\capi20w.lib; del *.obj del win16\*.bak @ goto ende @ :dbg @ @ set cl=/c /GA /A%1 /W4 /Isource /nologo /DTARGET_16BIT /DCPROT cl source\func.c source\msg.c source\gcmsgwin.c source\cwin16.c del win16\capi20%1d.lib @ lib /NOLOGO win16\capi20%1d.lib; lib /NOLOGO win16\capi20%1d.lib +msg+cwin16+func+gcmsgwin+win16\capi20w.lib; del *.obj del win16\*.bak @ goto ende @ :NoMemoryModel @echo No memory model specified !! @ :ende