2001-04-09 20:54:03 +01:00
|
|
|
#
|
|
|
|
# default base directory for YAP installation
|
2001-11-26 16:05:19 +00:00
|
|
|
# (EROOT for architecture-dependent files)
|
2001-04-09 20:54:03 +01:00
|
|
|
#
|
2001-11-26 18:57:07 +00:00
|
|
|
prefix = @prefix@
|
|
|
|
ROOTDIR = $(prefix)
|
2001-11-26 16:05:19 +00:00
|
|
|
EROOTDIR = @exec_prefix@
|
2001-04-09 20:54:03 +01:00
|
|
|
#
|
|
|
|
# where the binary should be
|
|
|
|
#
|
2001-11-26 16:05:19 +00:00
|
|
|
BINDIR = $(EROOTDIR)/bin
|
2001-04-09 20:54:03 +01:00
|
|
|
#
|
|
|
|
# where YAP should look for libraries
|
|
|
|
#
|
2001-11-26 16:05:19 +00:00
|
|
|
LIBDIR=$(EROOTDIR)/lib/Yap
|
2001-04-09 20:54:03 +01:00
|
|
|
#
|
|
|
|
#
|
|
|
|
CC=@CC@
|
|
|
|
CFLAGS= @CFLAGS@ $(YAP_EXTRAS) $(DEFS) -I$(srcdir) -I../.. -I$(srcdir)/../../include
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# You shouldn't need to change what follows.
|
|
|
|
#
|
|
|
|
INSTALL=@INSTALL@
|
|
|
|
INSTALL_DATA=@INSTALL_DATA@
|
|
|
|
INSTALL_PROGRAM=@INSTALL_PROGRAM@
|
|
|
|
SHELL=/bin/sh
|
|
|
|
RANLIB=@RANLIB@
|
|
|
|
srcdir=@srcdir@
|
|
|
|
SHLIB_CFLAGS=@SHLIB_CFLAGS@
|
|
|
|
SHLIB_SUFFIX=@SHLIB_SUFFIX@
|
|
|
|
#4.1VPATH=@srcdir@:@srcdir@/OPTYap
|
|
|
|
CWD=$(PWD)
|
|
|
|
#
|
|
|
|
|
2004-09-30 22:16:20 +01:00
|
|
|
OBJS=regexp.o regcomp.o regexec.o regerror.o regfree.o
|
|
|
|
SOBJS=regexp@SHLIB_SUFFIX@ regcomp@SHLIB_SUFFIX@ regexec@SHLIB_SUFFIX@ regerror@SHLIB_SUFFIX@ regfree@SHLIB_SUFFIX@
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
#in some systems we just create a single object, in others we need to
|
|
|
|
# create a libray
|
|
|
|
|
2002-11-12 19:53:52 +00:00
|
|
|
all: $(SOBJS)
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2002-03-12 16:30:23 +00:00
|
|
|
regexp.o: $(srcdir)/regexp.c @NO_BUILTIN_REGEXP@ $(srcdir)/regex2.h $(srcdir)/engine.c
|
2001-04-09 20:54:03 +01:00
|
|
|
$(CC) -c $(CFLAGS) $(SHLIB_CFLAGS) $(srcdir)/regexp.c -o regexp.o
|
|
|
|
|
2002-03-12 15:54:01 +00:00
|
|
|
regcomp.o: $(srcdir)/regcomp.c $(srcdir)/regex2.h
|
2001-04-09 20:54:03 +01:00
|
|
|
$(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
|
|
|
|
|
2002-03-12 15:54:01 +00:00
|
|
|
regfree.o: $(srcdir)/regfree.c $(srcdir)/regex2.h
|
2001-04-09 20:54:03 +01:00
|
|
|
$(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
|
|
|
|
|
2001-11-18 21:00:57 +00:00
|
|
|
@DO_SECOND_LD@%@SHLIB_SUFFIX@: %.o
|
|
|
|
@DO_SECOND_LD@ @SHLIB_LD@ -o $@ $<
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2002-11-12 19:53:52 +00:00
|
|
|
@DO_SECOND_LD@regexp@SHLIB_SUFFIX@: regexp.o @MERGE_DLL_OBJS@ regcomp.o regerror.o regfree.o regexec.o
|
|
|
|
@DO_SECOND_LD@ @SHLIB_LD@ -o regexp@SHLIB_SUFFIX@ regexp.o @MERGE_DLL_OBJS@ regcomp.o regerror.o regfree.o regexec.o
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2002-11-12 19:53:52 +00:00
|
|
|
@DO_SECOND_LD@regcomp@SHLIB_SUFFIX@: regcomp.o @MERGE_DLL_OBJS@ regfree.o
|
|
|
|
@DO_SECOND_LD@ @SHLIB_LD@ -o regcomp@SHLIB_SUFFIX@ regcomp.o @MERGE_DLL_OBJS@ regfree.o
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2001-11-18 21:00:57 +00:00
|
|
|
@DO_SECOND_LD@regerror@SHLIB_SUFFIX@: regerror.o
|
|
|
|
@DO_SECOND_LD@ @SHLIB_LD@ -o regerror@SHLIB_SUFFIX@ regerror.o
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2001-11-18 21:00:57 +00:00
|
|
|
@DO_SECOND_LD@regfree@SHLIB_SUFFIX@: regfree.o
|
|
|
|
@DO_SECOND_LD@ @SHLIB_LD@ -o regfree@SHLIB_SUFFIX@ regfree.o
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2001-11-18 21:00:57 +00:00
|
|
|
@DO_SECOND_LD@regexec@SHLIB_SUFFIX@: regexec.o
|
|
|
|
@DO_SECOND_LD@ @SHLIB_LD@ -o regexec@SHLIB_SUFFIX@ regexec.o
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
install: all
|
2001-04-16 17:41:04 +01:00
|
|
|
$(INSTALL_PROGRAM) $(SOBJS) $(DESTDIR)$(LIBDIR)
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
clean:
|
2001-09-06 17:58:49 +01:00
|
|
|
rm -f *.o *~ $(OBJS) $(SOBJS) *.BAK
|
2001-04-09 20:54:03 +01:00
|
|
|
|