#
# This Makefile is for use when distributing Tcl to the outside world.
# It is normally set up by running the "config" script.  Before modifying
# this file by hand, you should read through the "config" script to see
# what it does.
#
# Some changes you may wish to make here:
#
# 1. To compile for non-UNIX systems (so that only the non-UNIX-specific
# commands are available), change the OBJS line below so it doesn't
# include $(UNIX_OBJS).  Also, add the switch "-DTCL_GENERIC_ONLY" to
# CFLAGS.  Lastly, you'll have to provide your own replacement for the
# "panic" procedure (see panic.c for what the current one does).
#
# 2. ANSI-C procedure prototypes are turned on by default if supported
# by the compiler.  To turn them off, add "-DNO_PROTOTYPE" to CFLAGS
# below.
#
# 3. If you've put the Tcl script library in a non-standard place, change
# the definition of TCL_LIBRARY to correspond to its location on your
# system.
#
#TCL_LIBRARY =	/tcl_library
TCL_LIBRARY =	tcl_root:[tcl67.library]
VAXCRTL =	sys$disk:[]vaxcrtl.opt/opt

CFLAGS =	/debug /inc=(sys$disk:[]) /def=("TCL_LIBRARY=""$(TCL_LIBRARY)""")

GENERIC_OBJS =	regexp.obj, tclassem.obj, tclbasic.obj, tclckalloc.obj, \
		tclcmdah.obj, tclcmdil.obj, tclcmdmz.obj, tclexpr.obj, tclget.obj, \
		tclhash.obj, tclhistory.obj, tclparse.obj, tclproc.obj, \
	 	tclutil.obj, tclvar.obj

UNIX_OBJS =	panic.obj, tclenv.obj, tclglob.obj, tclunixaz.obj, tclunixstr.obj, \
		tclunixutil.obj

EXTEND_OBJS = 	handles.obj, extendutil.obj

COMPAT_OBJS =	strtoul.obj, tclvms.obj

OBJS = $(GENERIC_OBJS), $(UNIX_OBJS), $(COMPAT_OBJS), $(EXTEND_OBJS)

tcltest.exe : tcltest.obj libtcl.olb
	link/exe=$@ $(LDFLAGS) tcltest, libtcl/lib, $(VAXCRTL)

libtcl.olb : $(OBJS)
	- delete/nolog $@.*
	library/create $@ $(OBJS)

clean :
	- del *.obj;*, *.exe;*, *.map;*

# The following target is used during configuration to compile
# a test program to see if certain facilities are available on
# the system.

test :
	$(CC) $(CFLAGS) test.c

$(OBJS) : tcl.h tclhash.h tclint.h
$(UNIX_OBJS) : tclunix.h



