#
# Makefile.in for FastCGI CLISP module
#

srcdir = /home/kbrown/src/cygclisp/clisp-2.49-6.20150312hg15611.i686/src/clisp/modules/fastcgi
CC = gcc
CPPFLAGS = 
CFLAGS = -ggdb -O2 -pipe -Wimplicit-function-declaration -falign-functions=4
CLISP = /home/kbrown/src/cygclisp/clisp-2.49-6.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-6.20150312hg15611.i686/build/linkkit

LN = ln

MAKE = make

SHELL = /bin/sh

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

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

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

fastcgi.o: fastcgi.c
	$(CC) $(CPPFLAGS) $(CFLAGS) -I$(CLISP_LINKKIT) -I.. -c fastcgi.c

fastcgi_wrappers.o: $(srcdir)/fastcgi_wrappers.c
	$(CC) $(CPPFLAGS) $(CFLAGS) -I$(CLISP_LINKKIT) -I.. -c $(srcdir)/fastcgi_wrappers.c

# 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 :
