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-03-05 08:15:02 +00:00
|
|
|
LIBDIR=@libdir@/Yap
|
2007-05-02 16:31:23 +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)
|
|
|
|
#
|
|
|
|
|
2008-02-22 18:57:27 +00:00
|
|
|
OBJS=core_tries.o base_tries.o tries.o base_itries.o itries.o
|
2007-05-02 16:31:23 +01:00
|
|
|
SOBJS=tries@SHLIB_SUFFIX@ itries@SHLIB_SUFFIX@
|
|
|
|
|
|
|
|
#in some systems we just create a single object, in others we need to
|
|
|
|
# create a libray
|
|
|
|
|
|
|
|
all: $(SOBJS)
|
|
|
|
|
2008-02-22 18:57:27 +00:00
|
|
|
core_tries.o: $(srcdir)/core_tries.h $(srcdir)/core_tries.c
|
|
|
|
$(CC) -c $(CFLAGS) $(SHLIB_CFLAGS) $(srcdir)/core_tries.c -o core_tries.o
|
|
|
|
|
|
|
|
base_tries.o: $(srcdir)/core_tries.h $(srcdir)/base_tries.h $(srcdir)/base_tries.c
|
2007-05-02 16:31:23 +01:00
|
|
|
$(CC) -c $(CFLAGS) $(SHLIB_CFLAGS) $(srcdir)/base_tries.c -o base_tries.o
|
|
|
|
|
2008-02-22 18:57:27 +00:00
|
|
|
tries.o: $(srcdir)/core_tries.h $(srcdir)/base_tries.h $(srcdir)/tries.c
|
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
|
|
|
|
|
|
|
|
@DO_SECOND_LD@%@SHLIB_SUFFIX@: %.o
|
|
|
|
@DO_SECOND_LD@ @SHLIB_LD@ -o $@ $<
|
|
|
|
|
2008-02-22 18:57:27 +00:00
|
|
|
@DO_SECOND_LD@tries@SHLIB_SUFFIX@: core_tries.o base_tries.o tries.o
|
|
|
|
@DO_SECOND_LD@ @SHLIB_LD@ -o tries@SHLIB_SUFFIX@ core_tries.o base_tries.o tries.o
|
2007-05-02 16:31:23 +01:00
|
|
|
|
2008-02-22 18:57:27 +00:00
|
|
|
@DO_SECOND_LD@itries@SHLIB_SUFFIX@: core_tries.o base_itries.o itries.o
|
|
|
|
@DO_SECOND_LD@ @SHLIB_LD@ -o itries@SHLIB_SUFFIX@ core_tries.o base_itries.o itries.o
|
2007-05-02 16:31:23 +01:00
|
|
|
|
|
|
|
install: all
|
|
|
|
$(INSTALL_PROGRAM) $(SOBJS) $(DESTDIR)$(LIBDIR)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o *~ $(OBJS) $(SOBJS) *.BAK
|
|
|
|
|
|
|
|
|