rem $Id: MakePOpenDLL.bat,v 1.1 2004/01/26 17:56:42 graham Exp $ rem rem Compile and link POpen.dll from spawnProc.c and Hugs-generated rem Uses Microsoft Visual Studion C compiler and linker in command line mode rem rem Build instructions: rem rem 1. To create POpen.c, compile POpen.hs under Higs with the G flag set rem (e.g. :set +G, then :load POpen.hs) rem An "unresolved external" error message may be generated: ignore this. rem rem 2. Run this batch file to compile POpen.c and spawnProc.c to POpen.dll. rem rem 3. Run Hugs with the G flag reset to fully compile the POpen.hs module: rem (e.g. :set -G, then :load POpen.hs) rem rem The above is determines that POpen and its external FFI references can be rem compiled. In use, refer to POpen in the normal way, but keep the POPen.dll rem and other library files in the directory with POpen. rem set HUGSDIR=F:\Hugs98 cl /LD /ML /nologo -D__HUGS__ -I%HUGSDIR%\include POpen.c spawnProc.c -o POpen.dll rem $Log: MakePOpenDLL.bat,v $ rem Revision 1.1 2004/01/26 17:56:42 graham rem Successfully compiled revised POpen to a DLL rem