55 lines
1.0 KiB
Makefile
55 lines
1.0 KiB
Makefile
#
|
|
# default base directory for YAP installation
|
|
# (EROOT for architecture-dependent files)
|
|
#
|
|
prefix = @prefix@
|
|
ROOTDIR = $(prefix)
|
|
EROOTDIR = ${prefix}
|
|
#
|
|
# where the binary should be
|
|
#
|
|
BINDIR = $(EROOTDIR)/bin
|
|
#
|
|
# where YAP should look for libraries
|
|
#
|
|
LIBDIR=$(EROOTDIR)/lib/Yap
|
|
DESTDIR=$(prefix)/share/Yap
|
|
#
|
|
#
|
|
CC=@CC@
|
|
#
|
|
#
|
|
# You shouldn't need to change what follows.
|
|
#
|
|
INSTALL=@INSTALL@
|
|
INSTALL_DATA=@INSTALL_DATA@
|
|
INSTALL_PROGRAM=@INSTALL_PROGRAM@
|
|
SHELL=/bin/sh
|
|
RANLIB=ranlib
|
|
SHLIB_CFLAGS=-shared -fPIC
|
|
SHLIB_SUFFIX=.so
|
|
CWD=$(PWD)
|
|
srcdir=@srcdir@
|
|
CPLINT_CFLAGS=@CPLINT_CFLAGS@
|
|
CPLINT_LDFLAGS=@CPLINT_LDFLAGS@
|
|
CPLINT_LIBS=@CPLINT_LIBS@
|
|
|
|
#
|
|
|
|
|
|
default: LPADBDD
|
|
|
|
LPADBDD: ProblogBDD.o simplecudd.o general.o
|
|
@echo Making ProblogBDD...
|
|
@echo Copyright T. Mantadelis, A. Kimmig, B. Gutmann and Katholieke Universiteit Leuven 2008
|
|
$(CC) $(CPLINT_LDFLAGS) ProblogBDD.o simplecudd.o general.o $(CPLINT_LIBS) -o LPADBDD
|
|
|
|
%.o : $(srcdir)/%.c
|
|
$(CC) $(CPLINT_CFLAGS) -c $<
|
|
|
|
clean:
|
|
rm -f *.o LPADBDD
|
|
|
|
install: default
|
|
$(INSTALL_PROGRAM) LPADBDD $(DESTDIR)
|