# Makefile for CLISP module set gdbm

srcdir = /tmp/B.zjt3b2sv/BUILD/clisp-2.50-build/clisp-clisp-2.50/modules/gdbm
CC = /usr/bin/x86_64-pld-linux-gnux32-gcc
GDBMCPPFLAGS = -DNDEBUG -DQT_NO_DEBUG  -I/usr/include/fastcgi
CFLAGS = -O2 -fwrapv -pipe -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wformat -Werror=format-security  -falign-functions=4
CLISP = /tmp/B.zjt3b2sv/BUILD/clisp-2.50-build/clisp-clisp-2.50/src/clisp -K base  -E UTF-8 -Emisc 1:1 -Epathname 1:1 -norc -norc -q
CLISP_LINKKIT = /tmp/B.zjt3b2sv/BUILD/clisp-2.50-build/clisp-clisp-2.50/src/linkkit

LN = ln
LN_S = ln -s

MAKE = make

SHELL = /bin/sh

GENERATED = gdbm.fas gdbm.o preload.lisp
DISTRIBFILES = link.sh Makefile $(GENERATED) $(srcdir)/gdbm.lisp
distribdir =

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

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

gdbm.o : gdbm.m.c config.h
	$(CC) $(CPPFLAGS) $(GDBMCPPFLAGS) $(CFLAGS) -I. -I$(CLISP_LINKKIT) \
		-c gdbm.m.c -o gdbm.o

gdbm.m.c : $(srcdir)/gdbm.c
	$(CLISP) -C $(CLISP_LINKKIT)/modprep $(srcdir)/gdbm.c ./

preload.lisp : $(srcdir)/preload.lisp
	$(LN_S) $(srcdir)/preload.lisp .

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

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

distclean : clean

force :

