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@
|
2010-03-05 10:22:48 +00:00
|
|
|
exec_prefix = @exec_prefix@
|
2001-11-26 18:57:07 +00:00
|
|
|
ROOTDIR = $(prefix)
|
2001-11-26 16:05:19 +00:00
|
|
|
EROOTDIR = @exec_prefix@
|
2009-05-02 20:11:54 +01:00
|
|
|
abs_top_builddir = @abs_top_builddir@
|
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
|
|
|
|
#
|
2010-06-01 00:38:42 +01:00
|
|
|
LIBDIR=@libdir@
|
|
|
|
YAPLIBDIR=@libdir@/Yap
|
2001-04-09 20:54:03 +01:00
|
|
|
#
|
|
|
|
#
|
|
|
|
CC=@CC@
|
2010-06-21 11:54:21 +01:00
|
|
|
CFLAGS= @SHLIB_CFLAGS@ $(YAP_EXTRAS) $(DEFS) -I$(srcdir) -I../.. -I$(srcdir)/../../include
|
2001-04-09 20:54:03 +01:00
|
|
|
#
|
|
|
|
#
|
|
|
|
# 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@
|
2010-06-14 10:36:13 +01:00
|
|
|
SO=@SO@
|
2001-04-09 20:54:03 +01:00
|
|
|
#4.1VPATH=@srcdir@:@srcdir@/OPTYap
|
|
|
|
CWD=$(PWD)
|
|
|
|
#
|
|
|
|
|
2009-05-01 18:45:21 +01:00
|
|
|
OBJS=regexp.o @NO_BUILTIN_REGEXP@ regcomp.o regexec.o regerror.o regfree.o
|
2010-06-14 16:49:46 +01:00
|
|
|
SOBJS=regexp.@SO@ @NO_BUILTIN_REGEXP@ regcomp.@SO@ regexec.@SO@ regerror.@SO@ regfree.@SO@
|
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
|
2010-06-21 11:54:21 +01:00
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/regexp.c -o regexp.o
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2002-03-12 15:54:01 +00:00
|
|
|
regcomp.o: $(srcdir)/regcomp.c $(srcdir)/regex2.h
|
2010-06-21 11:54:21 +01:00
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/regcomp.c -o regcomp.o
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
regerror.o: $(srcdir)/regerror.c
|
2010-06-21 11:54:21 +01:00
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/regerror.c -o regerror.o
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2002-03-12 15:54:01 +00:00
|
|
|
regfree.o: $(srcdir)/regfree.c $(srcdir)/regex2.h
|
2010-06-21 11:54:21 +01:00
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/regfree.c -o regfree.o
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
regexec.o: $(srcdir)/regexec.c
|
2010-06-21 11:54:21 +01:00
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/regexec.c -o regexec.o
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2010-06-14 10:36:13 +01:00
|
|
|
@DO_SECOND_LD@%.@SO@: %.o
|
2010-06-01 00:38:42 +01:00
|
|
|
@DO_SECOND_LD@ @SHLIB_LD@ -o $@ $< @EXTRA_LIBS_FOR_DLLS@
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2010-06-14 10:36:13 +01:00
|
|
|
@DO_SECOND_LD@regexp.@SO@: regexp.o @MERGE_DLL_OBJS@ regcomp.o regerror.o regfree.o regexec.o
|
2010-06-18 10:34:04 +01:00
|
|
|
@DO_SECOND_LD@ @SHLIB_LD@ -o regexp.@SO@ regexp.o @EXTRA_LIBS_FOR_DLLS@ @MERGE_DLL_OBJS@ regcomp.o regerror.o regfree.o regexec.o
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2010-06-14 10:36:13 +01:00
|
|
|
@DO_SECOND_LD@regcomp.@SO@: regcomp.o @MERGE_DLL_OBJS@ regfree.o
|
|
|
|
@DO_SECOND_LD@ @SHLIB_LD@ -o regcomp.@SO@ regcomp.o @MERGE_DLL_OBJS@ regfree.o @EXTRA_LIBS_FOR_DLLS@
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2010-06-14 10:36:13 +01:00
|
|
|
@DO_SECOND_LD@regerror.@SO@: regerror.o
|
|
|
|
@DO_SECOND_LD@ @SHLIB_LD@ -o regerror.@SO@ regerror.o @EXTRA_LIBS_FOR_DLLS@
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2010-06-14 10:36:13 +01:00
|
|
|
@DO_SECOND_LD@regfree.@SO@: regfree.o
|
|
|
|
@DO_SECOND_LD@ @SHLIB_LD@ -o regfree.@SO@ regfree.o @EXTRA_LIBS_FOR_DLLS@
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2010-06-14 10:36:13 +01:00
|
|
|
@DO_SECOND_LD@regexec.@SO@: regexec.o
|
|
|
|
@DO_SECOND_LD@ @SHLIB_LD@ -o regexec.@SO@ regexec.o @EXTRA_LIBS_FOR_DLLS@
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
install: all
|
2010-06-01 00:38:42 +01:00
|
|
|
$(INSTALL_PROGRAM) $(SOBJS) $(DESTDIR)$(YAPLIBDIR)
|
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
|
|
|
|