2008-03-26 23:05:22 +00: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@
|
2008-03-26 23:05:22 +00:00
|
|
|
ROOTDIR = $(prefix)
|
|
|
|
EROOTDIR = @exec_prefix@
|
2009-05-02 20:11:54 +01:00
|
|
|
abs_top_builddir = @abs_top_builddir@
|
2008-03-26 23:05:22 +00: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
|
2008-03-26 23:05:22 +00:00
|
|
|
#
|
|
|
|
#
|
|
|
|
CC=@CC@
|
|
|
|
MPI_CC=mpicc
|
2010-06-21 11:54:21 +01:00
|
|
|
CFLAGS= @SHLIB_CFLAGS@ $(YAP_EXTRAS) $(DEFS) -I$(srcdir) -I../.. -I$(srcdir)/../../include
|
2010-12-31 04:14:45 +00:00
|
|
|
LDFLAGS=@LDFLAGS@
|
2008-03-26 23:05:22 +00: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@
|
2008-03-26 23:05:22 +00:00
|
|
|
#
|
|
|
|
|
2008-03-27 14:59:29 +00:00
|
|
|
OBJS=yaprl.o range_list.o
|
2010-06-14 10:36:13 +01:00
|
|
|
SOBJS=yap_rl.@SO@
|
2008-03-26 23:05:22 +00:00
|
|
|
|
|
|
|
#in some systems we just create a single object, in others we need to
|
|
|
|
# create a libray
|
|
|
|
all: $(SOBJS)
|
|
|
|
|
|
|
|
range_list.o: $(srcdir)/range_list.c $(srcdir)/range_list.h
|
2010-06-21 11:54:21 +01:00
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/range_list.c -o range_list.o
|
2008-03-26 23:05:22 +00:00
|
|
|
|
2008-03-27 14:59:29 +00:00
|
|
|
yaprl.o: $(srcdir)/yap_rl.c
|
2010-06-21 11:54:21 +01:00
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/yap_rl.c -o yaprl.o
|
2008-03-26 23:05:22 +00:00
|
|
|
|
2010-06-14 10:36:13 +01:00
|
|
|
@DO_SECOND_LD@%.@SO@: %.o
|
2010-12-31 04:14:45 +00:00
|
|
|
@DO_SECOND_LD@ @SHLIB_LD@ $(LDFLAGS) -o $@ $< @EXTRA_LIBS_FOR_DLLS@
|
2008-03-26 23:05:22 +00:00
|
|
|
|
2010-06-14 10:36:13 +01:00
|
|
|
@DO_SECOND_LD@yap_rl.@SO@: $(OBJS)
|
2010-12-31 04:14:45 +00:00
|
|
|
@DO_SECOND_LD@ @SHLIB_LD@ $(LDFLAGS) -o yap_rl.@SO@ $(OBJS) @EXTRA_LIBS_FOR_DLLS@
|
2008-03-26 23:05:22 +00:00
|
|
|
|
|
|
|
install: all
|
2010-06-01 00:38:42 +01:00
|
|
|
@if test "$(SOBJS)" = "no"; then echo ""; else $(INSTALL_PROGRAM) $(SOBJS) $(DESTDIR)$(YAPLIBDIR); fi
|
2008-03-26 23:05:22 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o *~ $(OBJS) $(SOBJS) *.BAK
|
|
|
|
|
|
|
|
no:
|
|
|
|
@echo "YAP RL module not compiled."
|
|
|
|
|