#
# This Makefile is for use when distributing Tcl to the outside world.
# It is simplified so that it doesn't include any Sprite-specific stuff.
# For HP-UX systems, use the second, commented-out, form of LIBS below.
#

LIBS =
#LIBS = -lBSD

#CFLAGS = -I. -DTCL_VERSION=\"2.1\" -DSUN
CFLAGS = -O -I. -DTCL_VERSION=\"2.1\"

OBJS = glob.o tclBasic.o tclCmdAH.o tclCmdIZ.o tclExpr.o \
	tclGlob.o tclProc.o tclUtil.o

LIBOBJS = panic.o strerror.o strtol.o strtoul.o List_Init.o \
	List_Insert.o List_ListIns.o List_Remove.o strspn.o \
	strpbrk.o strchr.o

CSRCS = glob.c tclBasic.c tclCmdAH.c tclCmdIZ.c tclExpr.c \
	tclGlob.c tclProc.c tclUtil.c

tcl.a: ${OBJS} ${LIBOBJS}
	rm -f tcl.a
	ar cr tcl.a ${OBJS} ${LIBOBJS}
	ranlib tcl.a

tclTest: tclTest.o tcl.a
	cc tclTest.o tcl.a ${LIBS} -o tclTest

clean:
	rm -f ${OBJS} ${LIBOBJS} tcl.a tclTest.o tclTest
