#	Copyright (c) 1990 by Carrick Sean Casey.
#	For copying and distribution information, see the file COPYING.

#	Makefile for ltcl.a
#
#	You should not need to modify this makefile.

LIBDIR = ..
CFLAGS = $(TCLCFLAGS) -I. -DTCL_VERSION=\"3.3\"
#PMAKE = &

SRC = \
	panic.c \
	strchr.c \
	strerror.c \
	strpbrk.c \
	strspn.c \
	strstr.c \
	strtol.c \
	strtoul.c \
	tclAssem.c \
	tclBasic.c \
	tclCmdAH.c \
	tclCmdIZ.c \
	tclExpr.c  \
	tclGlob.c \
	tclHistory.c \
	tclProc.c \
	tclUtil.c

OBJ = \
	panic.o \
	strchr.o \
	strerror.o \
	strpbrk.o \
	strspn.o \
	strstr.o \
	strtol.o \
	strtoul.o \
	tclAssem.o \
	tclBasic.o \
	tclCmdAH.o \
	tclCmdIZ.o \
	tclExpr.o  \
	tclGlob.o \
	tclHistory.o \
	tclProc.o \
	tclUtil.o

default: $(LIBDIR)/ltcl.a

$(LIBDIR)/ltcl.a: $(PMAKE) $(OBJ)
	rm -f $(LIBDIR)/ltcl.a
	ar q $(LIBDIR)/ltcl.a $(OBJ)
	-if [ -f /usr/bin/ranlib -o -f /bin/ranlib ]; then ranlib $(LIBDIR)/ltcl.a; fi

test: test.o $(LIBDIR)/ltcl.a
	$(CC) $(CFLAGS) -o test test.o $(LIBDIR)/ltcl.a 

install: $(LIBDIR)/ltcl.a

lint:
	lint $(LFLAGS) $(SRC)

cxref:
	cxref -c $(CFLAGS) $(SRC)

dstrip:
	cp Make Make.bak
	perl ../tools/dstrip.pl < Make > Make.o
	mv Make.o Make

clean:
	rm -f *.o ltcl.a Make.bak core tags test

saber_src:
	#load *.c

depend:
	$(MAKEDEPEND) $(DEPENDFLAGS) *.c

# DO NOT DELETE THIS LINE -- make depend depends on it.

panic.o: stdlib.h 
strchr.o: string.h
strerror.o: string.h
strpbrk.o: string.h
strspn.o: string.h
strtol.o: stdlib.h 
strtoul.o: sprite.h stdlib.h 
tclAssem.o: tclInt.h tcl.h stdlib.h
tclAssem.o: string.h
tclBasic.o: stdlib.h string.h
tclBasic.o: tclInt.h tcl.h
tclCmdAH.o: stdlib.h string.h 
tclCmdAH.o: tclInt.h tcl.h
tclCmdIZ.o: stdlib.h string.h
tclCmdIZ.o: tclInt.h tcl.h
tclExpr.o: tcl.h tclInt.h
tclGlob.o: stdlib.h string.h 
tclGlob.o: tcl.h
tclHistory.o: tclInt.h tcl.h 
tclHistory.o: stdlib.h string.h
tclProc.o: stdlib.h string.h 
tclProc.o: tclInt.h tcl.h
tclUtil.o: stdlib.h string.h tcl.h
tclUtil.o: tclInt.h
