# Set this variable to the directory of the tcl.h file, if this file
# is not in the standard search path for include files.
TCLH =

all: libtclqueue.a

libtclqueue.a: tclqueue.o
	if ocamlmklib; then                                                  \
	        ocamlmklib -o tclqueue tclqueue.o -ltcl;                     \
	else                                                                 \
	        rm -f libtclqueue.a;                                         \
	        ar q libtclqueue.a tclqueue.o;                               \
	        ranlib libtclqueue.a;                                        \
	fi

tclqueue.o: tclqueue.h tclqueue.c
	if [ -z "$(TCLH)" ]; then L=""; else L="-ccopt -I$(TCLH)"; fi; \
		ocamlc $$L -c tclqueue.c

clean:
	rm -f *.o *.a dll*

CLEAN: clean

distclean: clean
	rm -f *~
