# 
#  Picasso Toolkit
# 
#  Copyright (c) 1989 Regents of the University of California
#  
#  Permission to use, copy, modify, and distribute this software and its
#  documentation for any purpose and without fee is hereby granted,
#  provided that the above copyright notice appear in all copies and
#  that both that copyright notice and this permission notice appear in
#  supporting documentation, and that the name of the University of
#  California not be used in advertising or publicity pertaining to
#  distribution of the software without specific, written prior
#  permission.  The University of California makes no representations
#  about the suitability of this software for any purpose.  It is
#  provided "as is" without express or implied warranty.
#  

# Name of common lisp
CL = /usr/local/cl

LIBDIR = /usr/local/lib/cl/code

LISP-FILES = blocks.cl defaults.cl dumpdata.cl portal.cl \
	     pqcomm.cl pqexec.cl pqfn.cl

FASL-FILES = blocks.fasl defaults.fasl dumpdata.fasl portal.fasl \
	     pqcomm.fasl pqexec.fasl pqfn.fasl

C-SRC = libpq.c
C-OBJ = libpq.o
CFLAGS = -O -G 0

default : clean compile move clean

move	:
	mv libpq.fasl $(C-OBJ) $(LIBDIR)

compile : $(C-OBJ) libpq.fasl 

libpq.fasl:	$(LISP-FILES)
	 echo '#+allegro' \
	      "(tpl:setq-default *redefinition-warnings* nil)" \
	      '(load "compile-libpq")' \
	      '(excl:exit)' | $(CL) -qq
	 cat  $(FASL-FILES) > libpq.fasl

clean	: 
	/bin/rm -f libpq.fasl $(FASL-FILES) $(C-OBJ)
