# Makefile for CLISP module set postgresql

srcdir = /home/kbrown/src/cygclisp/clisp-2.49-5.20150312hg15611.i686/src/clisp/modules/postgresql
CC = gcc
PQCPPFLAGS = 
CFLAGS = -ggdb -O2 -pipe -Wimplicit-function-declaration
CLISP = /home/kbrown/src/cygclisp/clisp-2.49-5.20150312hg15611.i686/build/clisp -K boot  -E UTF-8 -Emisc 1:1 -Epathname 1:1 -norc -norc -q
CLISP_LINKKIT = /home/kbrown/src/cygclisp/clisp-2.49-5.20150312hg15611.i686/build/linkkit

LN = ln

MAKE = make

SHELL = /bin/sh

GENERATED = postgresql.o postgresql.fas sql.fas
DISTRIBFILES = link.sh Makefile $(GENERATED) \
	$(srcdir)/postgresql.lisp $(srcdir)/sql.lisp $(srcdir)/README
distribdir =

# default target: make the module
clisp-module : $(GENERATED)

postgresql.c postgresql.fas : $(srcdir)/postgresql.lisp
	$(CLISP) -c $(srcdir)/postgresql.lisp -o ./

postgresql.o : postgresql.c config.h
	$(CC) $(CPPFLAGS) $(PQCPPFLAGS) $(CFLAGS) -I$(CLISP_LINKKIT) \
		-c postgresql.c

sql.fas: $(srcdir)/sql.lisp
	$(CLISP) -c $(srcdir)/sql.lisp -o ./

# Make a module distribution into $(distribdir)
clisp-module-distrib : clisp-module force
	$(LN) $(DISTRIBFILES) $(distribdir)

clean : force
	rm -f core *.o *.a *.fas *.lib

distclean : clean

force :

