#
# Makefile.in for FastCGI CLISP module
#

srcdir = /home/abuild/rpmbuild/BUILD/clisp-2.49.92/modules/fastcgi
CC = gcc -g -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -fno-strict-aliasing -fPIC -pipe -fno-gcse -I/usr/include/fastcgi
CPPFLAGS = 
CFLAGS = -g -O2
CLISP = /home/abuild/rpmbuild/BUILD/clisp-2.49.92/build/clisp -K base  -E UTF-8 -Emisc 1:1 -Epathname 1:1 -norc -norc -q
CLISP_LINKKIT = /home/abuild/rpmbuild/BUILD/clisp-2.49.92/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 :
