Portable Object Compiler (c) 1997,98.  All Rights Reserved.


This file contains some notes that are specific to running "objc"
(pronounced as "Object Compiler") on Windows95 or WindowsNT using
the Microsoft Visual C (cl.exe) compiler.

General
-------

       The Visual C port was done by Serge Broslavsky (bros@dan.lv)
       using VC 5.0.  Probably requires at least VC 4.0 to work.

AUTOEXEC.BAT
------------

	Add C:\OBJC\BIN to your PATH.  This directory contains OBJC.EXE
	the compiler driver, and OBJC1.EXE, the compiler proper.  It's
	also assumed that the compiler tools (nmake,link,cl etc.) are in 
	the PATH.
	
	It's also convenient to "set OBJCOPT=options" in this file, where
	options can be "-q" for example.

	If you want to install in a different location than C:\OBJC\BIN,
	then set the OBJCDIR environment variable (points to top directory).

Makefiles
---------

	The Makefiles have a .nmk extension (for nmake)

	At the top level, there is a .BAT file that drives the process.
	So you type:

		setup nmk
		make

	to start building the different components of the compiler.


BISON & FLEX
------------

	We're using the win32 ports of these tools. That is,
	the parser and scanner is no longer generated on UNIX.
	but is now generated on Windows itself from lex.lm and yacc.ym.
	
	Flex and Bison for Windows95 are available on 
	http://www.winsite.com.

	You might have to edit C:\TOOLS\SHARE\BISON.SIMPLE to define
	_alloca by including #include <malloc.h> (cfr. WATCOM readme)

	If you use a different port of flex/bison, check the definition of
	YYLEXC and YTABH/YTABC in the src/objc/Makefile.  It's either y.tab.c
	or y_tab.c

Binary Driver
-------------

	There's no Bourne shell compiler driver for Windows95.  Only
	the binary, compiled, version is available (as "objc.exe").

