# Makefile for CLISP module set regexp

CC = gcc
CFLAGS = -g -O2
INCLUDES=

CLISP =

LN = ln

MAKE = make

SHELL = /bin/sh

DISTRIBFILES = regexp.o regexi.o regex.o link.sh Makefile README regexp.lisp regexp.texinfo regexp.dvi
distribdir =

all : regexp.o regexi.o regex.o

regexp.c : regexp.lisp
	$(CLISP) -c regexp.lisp

regexp.o : regexp.c
	$(CC) $(CFLAGS) -I$(INCLUDES) -c regexp.c

regexi.o : regexi.c regex.h
	$(CC) $(CFLAGS) -c regexi.c

regex.o : regex.c regex.h
	$(CC) $(CFLAGS) -I. -DHAVE_CONFIG_H -c regex.c

# Make a module
clisp-module : all

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

clean : force
	rm -f core *.o *.a
	rm -f *.aux *.cp *.fn *.ky *.log *.pg *.toc *.tp *.vr

distclean : clean
	rm -f *.dvi

force :

