2006-06-02 05:16:31 +01:00
|
|
|
#
|
|
|
|
# default base directory for YAP installation
|
|
|
|
# (EROOT for architecture-dependent files)
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# 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@
|
2010-06-01 00:38:42 +01:00
|
|
|
ROOTDIR = $(prefix)
|
2006-06-02 05:16:31 +01:00
|
|
|
EROOTDIR = @exec_prefix@
|
2009-05-02 20:11:54 +01:00
|
|
|
abs_top_builddir = @abs_top_builddir@
|
2006-06-02 05:16:31 +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
|
2006-06-02 05:16:31 +01:00
|
|
|
#
|
|
|
|
#
|
|
|
|
CC=@CC@
|
2013-10-29 16:17:16 +00:00
|
|
|
MPI_CC=@MPI_CC@
|
2010-06-21 11:54:21 +01:00
|
|
|
CFLAGS= @SHLIB_CFLAGS@ $(YAP_EXTRAS) $(DEFS) -I$(srcdir) -I../.. -I$(srcdir)/../../include
|
2006-06-02 05:16:31 +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@
|
2006-06-02 05:16:31 +01:00
|
|
|
CWD=$(PWD)
|
2013-10-29 16:17:16 +00:00
|
|
|
MPILDF=@MPILDF@
|
|
|
|
MPICF=@MPICF@
|
2006-06-02 05:16:31 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
OBJS=yap_mpi.o hash.o prologterms2c.o
|
2013-10-29 16:17:16 +00:00
|
|
|
SOBJS=yap_mpi.@SO@
|
2006-06-02 05:16:31 +01:00
|
|
|
|
|
|
|
#in some systems we just create a single object, in others we need to
|
|
|
|
# create a libray
|
|
|
|
|
|
|
|
all: $(SOBJS)
|
|
|
|
|
|
|
|
yap_mpi.o: $(srcdir)/yap_mpi.c $(srcdir)/yap_mpi.c
|
2012-02-06 17:35:32 +00:00
|
|
|
$(MPI_CC) $(CFLAGS) $(MPICF) -c $(srcdir)/yap_mpi.c -o yap_mpi.o
|
2006-06-02 05:16:31 +01:00
|
|
|
|
|
|
|
prologterms2c.o: $(srcdir)/prologterms2c.c $(srcdir)/prologterms2c.h
|
2012-02-06 17:35:32 +00:00
|
|
|
$(MPI_CC) -c $(CFLAGS) $(srcdir)/prologterms2c.c -o prologterms2c.o
|
2006-06-02 05:16:31 +01:00
|
|
|
|
|
|
|
hash.o: $(srcdir)/hash.c $(srcdir)/hash.h
|
2012-02-06 17:35:32 +00:00
|
|
|
$(MPI_CC) -c $(CFLAGS) $(srcdir)/hash.c -o hash.o
|
2006-06-02 05:16:31 +01:00
|
|
|
|
2010-06-14 10:36:13 +01:00
|
|
|
@DO_SECOND_LD@yap_mpi.@SO@: $(OBJS)
|
2013-11-10 11:22:54 +00:00
|
|
|
@DO_SECOND_LD@ @SHLIB_LD@ $(LDFLAGS) -o yap_mpi.@SO@ $(OBJS) $(MPILDF) @EXTRA_LIBS_FOR_DLLS@
|
2006-06-02 05:16:31 +01:00
|
|
|
|
2014-02-13 01:58:48 +00:00
|
|
|
install: all install-examples
|
2012-02-06 16:44:33 +00:00
|
|
|
@if test "$(SOBJS)" = ""; then echo ""; else $(INSTALL_PROGRAM) $(SOBJS) $(DESTDIR)$(YAPLIBDIR); fi
|
2006-06-02 05:16:31 +01:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o *~ $(OBJS) $(SOBJS) *.BAK
|
|
|
|
|
2006-06-04 19:45:20 +01:00
|
|
|
no:
|
|
|
|
@echo "YAP LAM/MPI module not compiled."
|
2006-06-02 05:16:31 +01:00
|
|
|
|
2014-02-13 01:58:48 +00:00
|
|
|
install-examples:
|
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
rm -f Makefile
|