# Generated automatically from Makefile.in by configure.
#
# default base directory for YAP installation
# (EROOT for architecture-dependent files)
#
prefix = c:/Program\ Files/Yap
ROOTDIR = $(prefix)
EROOTDIR = ${prefix}
#
# where the binary should be
#
BINDIR = $(EROOTDIR)/bin
#
# where YAP should look for libraries
#
LIBDIR=$(EROOTDIR)/lib/Yap
#
#
CC=gcc  -mno-cygwin
CFLAGS= -DBP_FREE -O3 -fomit-frame-pointer -Wall -Wstrict-prototypes -Wmissing-prototypes $(YAP_EXTRAS) $(DEFS) -I$(srcdir) -I../.. -I$(srcdir)/../../include
#
#
# You shouldn't need to change what follows.
#
INSTALL=/usr/bin/install -c
INSTALL_DATA=${INSTALL} -m 644
INSTALL_PROGRAM=${INSTALL}
SHELL=/bin/sh
RANLIB=ranlib
srcdir=../../../../work/library/regex
SHLIB_CFLAGS=
SHLIB_SUFFIX=.dll
#4.1VPATH=../../../../work/library/regex:../../../../work/library/regex/OPTYap
CWD=$(PWD)
#

OBJS=regexp.o regcomp.o regexec.o regerror.o regfree.o
SOBJS=regexp.dll regcomp.dll regexec.dll regerror.dll regfree.dll 

#in some systems we just create a single object, in others we need to
# create a libray

all: $(SOBJS)

regexp.o: $(srcdir)/regexp.c   $(srcdir)/regex2.h  $(srcdir)/engine.c
	$(CC) -c $(CFLAGS) $(SHLIB_CFLAGS) $(srcdir)/regexp.c -o regexp.o

regcomp.o: $(srcdir)/regcomp.c $(srcdir)/regex2.h
	$(CC) -c $(CFLAGS) $(SHLIB_CFLAGS) $(srcdir)/regcomp.c -o regcomp.o

regerror.o: $(srcdir)/regerror.c
	$(CC) -c $(CFLAGS) $(SHLIB_CFLAGS) $(srcdir)/regerror.c -o regerror.o

regfree.o: $(srcdir)/regfree.c $(srcdir)/regex2.h
	$(CC) -c $(CFLAGS) $(SHLIB_CFLAGS) $(srcdir)/regfree.c -o regfree.o

regexec.o: $(srcdir)/regexec.c
	$(CC) -c $(CFLAGS) $(SHLIB_CFLAGS) $(srcdir)/regexec.c -o regexec.o

%.dll: %.o
	gcc -shared ../../yap.dll -o $@ $<

regexp.dll: regexp.o  regcomp.o regerror.o regfree.o regexec.o
	gcc -shared ../../yap.dll -o regexp.dll regexp.o  regcomp.o regerror.o regfree.o regexec.o

regcomp.dll: regcomp.o  regfree.o
	gcc -shared ../../yap.dll -o regcomp.dll regcomp.o  regfree.o

regerror.dll: regerror.o
	gcc -shared ../../yap.dll -o regerror.dll regerror.o

regfree.dll: regfree.o
	gcc -shared ../../yap.dll -o regfree.dll regfree.o

regexec.dll: regexec.o
	gcc -shared ../../yap.dll -o regexec.dll regexec.o

install: all
	$(INSTALL_PROGRAM) $(SOBJS) $(DESTDIR)$(LIBDIR)

clean:
	rm -f *.o *~ $(OBJS) $(SOBJS) *.BAK

