64 lines
1.4 KiB
Makefile
64 lines
1.4 KiB
Makefile
#
|
|
# default base directory for YAP installation
|
|
# (EROOT for architecture-dependent files)
|
|
#
|
|
prefix = @prefix@
|
|
exec_prefix = @exec_prefix@
|
|
ROOTDIR = $(prefix)
|
|
EROOTDIR = @exec_prefix@
|
|
abs_top_builddir = @abs_top_builddir@
|
|
#
|
|
# where the binary should be
|
|
#
|
|
BINDIR = $(EROOTDIR)/bin
|
|
#
|
|
# where YAP should look for libraries
|
|
#
|
|
LIBDIR=@libdir@
|
|
YAPLIBDIR=@libdir@/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@
|
|
srcdir=@srcdir@
|
|
SO=@SO@
|
|
#4.1VPATH=@srcdir@:@srcdir@/OPTYap
|
|
CWD=$(PWD)
|
|
#
|
|
|
|
CUDD = cudd-2.4.1
|
|
DYNAMIC =
|
|
CFLAGS = @CFLAGS@
|
|
INCLUDE = @CUDD_CPPFLAGS@
|
|
LINKFLAGS = -lm
|
|
LINKLIBS = @CUDD_LDFLAGS@
|
|
|
|
default: Example ProbLogBDD
|
|
|
|
Example: Example.o simplecudd.o general.o
|
|
@echo Making Example...
|
|
@echo Copyright T. Mantadelis and Katholieke Universiteit Leuven 2008
|
|
$(CC) Example.o simplecudd.o general.o $(LINKLIBS) $(LINKFLAGS) -o Example
|
|
|
|
ProbLogBDD: ProblogBDD.o simplecudd.o general.o
|
|
@echo Making ProblogBDD...
|
|
@echo Copyright T. Mantadelis, A. Kimmig, B. Gutmann and Katholieke Universiteit Leuven 2008
|
|
$(CC) ProblogBDD.o simplecudd.o general.o $(LINKLIBS) $(LINKFLAGS) -o ProblogBDD
|
|
|
|
%.o : $(srcdir)/%.c
|
|
$(CC) $(CFLAGS) $(INCLUDE) $(DYNAMIC) -c $<
|
|
|
|
clean:
|
|
rm -f *.o ProblogBDD Example
|
|
|
|
install: default
|
|
$(INSTALL_PROGRAM) ProblogBDD $(DESTDIR)$(YAPLIBDIR)
|