2007-05-02 16:31:23 +01:00
|
|
|
#
|
|
|
|
# default base directory for YAP installation
|
|
|
|
# (EROOT for architecture-dependent files)
|
|
|
|
#
|
|
|
|
prefix = @prefix@
|
2010-03-05 10:22:48 +00:00
|
|
|
exec_prefix = @exec_prefix@
|
2007-05-02 16:31:23 +01:00
|
|
|
ROOTDIR = $(prefix)
|
|
|
|
EROOTDIR = @exec_prefix@
|
2009-05-02 20:11:54 +01:00
|
|
|
abs_top_builddir = @abs_top_builddir@
|
2007-05-02 16:31:23 +01:00
|
|
|
#
|
|
|
|
# where the binary should be
|
|
|
|
#
|
|
|
|
BINDIR = $(EROOTDIR)/bin
|
|
|
|
#
|
|
|
|
# where YAP should look for libraries
|
|
|
|
#
|
2010-06-01 00:38:42 +01:00
|
|
|
LIBDIR=@libdir@
|
|
|
|
YAPLIBDIR=@libdir@/Yap
|
2007-05-02 16:31:23 +01:00
|
|
|
#
|
|
|
|
#
|
|
|
|
CC=@CC@
|
2010-06-21 11:54:21 +01:00
|
|
|
CFLAGS= @SHLIB_CFLAGS@ $(YAP_EXTRAS) $(DEFS) -I$(srcdir) -I../.. -I$(srcdir)/../../include
|
2007-05-02 16:31:23 +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@
|
|
|
|
SHLIB_CFLAGS=@SHLIB_CFLAGS@
|
2010-06-14 10:36:13 +01:00
|
|
|
SO=@SO@
|
2007-05-02 16:31:23 +01:00
|
|
|
#4.1VPATH=@srcdir@:@srcdir@/OPTYap
|
|
|
|
CWD=$(PWD)
|
|
|
|
#
|
|
|
|
|
2008-02-22 18:57:27 +00:00
|
|
|
OBJS=core_tries.o base_tries.o tries.o base_itries.o itries.o
|
2010-06-14 10:36:13 +01:00
|
|
|
SOBJS=tries.@SO@ itries.@SO@
|
2007-05-02 16:31:23 +01:00
|
|
|
|
|
|
|
#in some systems we just create a single object, in others we need to
|
|
|
|
# create a libray
|
|
|
|
|
|
|
|
all: $(SOBJS)
|
|
|
|
|
2010-07-19 11:29:13 +01:00
|
|
|
core_tries.o: $(srcdir)/core_tries.h $(srcdir)/core_tries.c $(srcdir)/core_dbtries.h $(srcdir)/core_dbtries.c
|
2008-02-22 18:57:27 +00:00
|
|
|
$(CC) -c $(CFLAGS) $(SHLIB_CFLAGS) $(srcdir)/core_tries.c -o core_tries.o
|
|
|
|
|
2010-07-19 11:29:13 +01:00
|
|
|
base_tries.o: $(srcdir)/core_tries.h $(srcdir)/base_tries.h $(srcdir)/base_tries.c $(srcdir)/core_dbtries.h $(srcdir)/base_dbtries.h $(srcdir)/base_dbtries.c
|
2007-05-02 16:31:23 +01:00
|
|
|
$(CC) -c $(CFLAGS) $(SHLIB_CFLAGS) $(srcdir)/base_tries.c -o base_tries.o
|
|
|
|
|
2010-07-19 11:29:13 +01:00
|
|
|
tries.o: $(srcdir)/core_tries.h $(srcdir)/base_tries.h $(srcdir)/tries.c $(srcdir)/core_dbtries.h $(srcdir)/base_dbtries.h
|
2007-05-02 16:31:23 +01:00
|
|
|
$(CC) -c $(CFLAGS) $(SHLIB_CFLAGS) $(srcdir)/tries.c -o tries.o
|
|
|
|
|
2008-02-22 18:57:27 +00:00
|
|
|
base_itries.o: $(srcdir)/core_tries.h $(srcdir)/base_itries.h $(srcdir)/base_itries.c
|
2007-05-02 16:31:23 +01:00
|
|
|
$(CC) -c $(CFLAGS) $(SHLIB_CFLAGS) $(srcdir)/base_itries.c -o base_itries.o
|
|
|
|
|
2008-02-22 18:57:27 +00:00
|
|
|
itries.o: $(srcdir)/core_tries.h $(srcdir)/base_itries.h $(srcdir)/itries.c
|
2007-05-02 16:31:23 +01:00
|
|
|
$(CC) -c $(CFLAGS) $(SHLIB_CFLAGS) $(srcdir)/itries.c -o itries.o
|
|
|
|
|
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@
|
2007-05-02 16:31:23 +01:00
|
|
|
|
2010-06-14 10:36:13 +01:00
|
|
|
@DO_SECOND_LD@tries.@SO@: core_tries.o base_tries.o tries.o
|
|
|
|
@DO_SECOND_LD@ @SHLIB_LD@ -o tries.@SO@ core_tries.o base_tries.o tries.o @EXTRA_LIBS_FOR_DLLS@
|
2007-05-02 16:31:23 +01:00
|
|
|
|
2010-06-14 10:36:13 +01:00
|
|
|
@DO_SECOND_LD@itries.@SO@: core_tries.o base_itries.o itries.o
|
|
|
|
@DO_SECOND_LD@ @SHLIB_LD@ -o itries.@SO@ core_tries.o base_itries.o itries.o @EXTRA_LIBS_FOR_DLLS@
|
2007-05-02 16:31:23 +01:00
|
|
|
|
|
|
|
install: all
|
2010-06-01 00:38:42 +01:00
|
|
|
$(INSTALL_PROGRAM) $(SOBJS) $(DESTDIR)$(YAPLIBDIR)
|
2007-05-02 16:31:23 +01:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o *~ $(OBJS) $(SOBJS) *.BAK
|
|
|
|
|
|
|
|
|