# Makefile for CLISP module set postgresql

srcdir = /ws/builds/build/jenkins/ws/du3/clisp/components/clisp/build/clisp-2.49.20180218+really2.49.92/modules/postgresql
CC = gcc
PQCPPFLAGS = -DDILOS -D__dilos__ -D__dilos
CFLAGS = -D__EXTENSIONS__ -std=c99 -D__EXTENSIONS__ -std=c99
CLISP = /ws/builds/build/jenkins/ws/du3/clisp/components/clisp/build/clisp-2.49.20180218+really2.49.92/debian/build/clisp -K base  -E UTF-8 -Emisc 1:1 -Epathname 1:1 -norc -norc -q
CLISP_LINKKIT = /ws/builds/build/jenkins/ws/du3/clisp/components/clisp/build/clisp-2.49.20180218+really2.49.92/debian/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 :

