For convenience, you should create a makefile and use the NMAKE.EXE or XMSMAKE.EXE program to build the virtual device. The following example shows the makefile for building the sample virtual device VSAMPLED:
vsampled.obj: vsampled.asm
masm5 -p -w2 vsampled;
vsampled.386: vsampled.obj vsampled.def
link386 vsampled, vsampled.386/NOI /NOD /NOP,/MAP,,vsampled.def
addhdr vsampled.386
mapsym32 vsampled
This makefile assumes that the specify programs are included in a directory specified by the PATH environment variable. If not, you must specify the full path for each program.