2009-02-16 12:23:29 +00:00
|
|
|
#
|
|
|
|
# default base directory for YAP installation
|
|
|
|
# (EROOT for architecture-dependent files)
|
|
|
|
#
|
|
|
|
prefix = @prefix@
|
2010-03-18 15:11:21 +00:00
|
|
|
exec_prefix = ${prefix}
|
2009-02-16 12:23:29 +00:00
|
|
|
ROOTDIR = $(prefix)
|
2010-03-18 15:11:21 +00:00
|
|
|
EROOTDIR = ${prefix}
|
2014-10-30 07:43:24 +00:00
|
|
|
abs_top_builddir = @abs_top_builddir@
|
2009-02-16 12:23:29 +00:00
|
|
|
#
|
|
|
|
# where the binary should be
|
|
|
|
#
|
2010-03-18 15:11:21 +00:00
|
|
|
BINDIR = $(EROOTDIR)/bin
|
2009-02-16 12:23:29 +00:00
|
|
|
#
|
|
|
|
# where YAP should look for libraries
|
|
|
|
#
|
2012-08-22 16:07:33 +01:00
|
|
|
LIBDIR=@libdir@
|
|
|
|
YAPLIBDIR=$(LIBDIR)/Yap
|
2009-02-16 12:23:29 +00:00
|
|
|
#
|
|
|
|
# where YAP should look for architecture-independent Prolog libraries
|
|
|
|
#
|
|
|
|
SHAREDIR=$(ROOTDIR)/share/Yap
|
|
|
|
#
|
|
|
|
#
|
2010-10-24 20:28:37 +01:00
|
|
|
DEFS=@DEFS@ -D_YAP_NOT_INSTALLED_=1
|
2009-02-16 12:23:29 +00:00
|
|
|
CC=@CC@
|
2014-10-26 17:39:52 +00:00
|
|
|
CFLAGS= @SHLIB_CFLAGS@ $(YAP_EXTRAS) $(DEFS) -I$(srcdir) -I$(srcdir)/../../include -I../.. @CPPFLAGS@
|
2009-02-16 12:23:29 +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@
|
2014-10-22 10:11:20 +01:00
|
|
|
SO=@SO@
|
2014-10-26 17:39:52 +00:00
|
|
|
CPLINT_CFLAGS=@CPLINT_CPPFLAGS@
|
2009-02-16 12:23:29 +00:00
|
|
|
CPLINT_LIBS=@CPLINT_LIBS@
|
|
|
|
#4.1VPATH=@srcdir@:@srcdir@/OPTYap
|
|
|
|
CWD=$(PWD)
|
|
|
|
#
|
2014-10-16 09:20:07 +01:00
|
|
|
OBJS=cplint_yap.o cplint_Prob.o bddem.o
|
2014-10-22 10:11:20 +01:00
|
|
|
SOBJS=cplint.@SO@ bddem.@SO@
|
2009-02-16 12:23:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CPLINT_SRCDIR = $(srcdir)
|
|
|
|
|
|
|
|
CPLINT_EXDIR = $(srcdir)/examples
|
|
|
|
|
|
|
|
CPLINT_DOCDIR = $(srcdir)/doc
|
|
|
|
|
|
|
|
|
|
|
|
CPLINT_PROGRAMS= \
|
|
|
|
$(CPLINT_SRCDIR)/lpadvel.pl \
|
|
|
|
$(CPLINT_SRCDIR)/lpadclpbn.pl \
|
|
|
|
$(CPLINT_SRCDIR)/lpadsld.pl \
|
|
|
|
$(CPLINT_SRCDIR)/lpad.pl \
|
2010-03-18 15:11:21 +00:00
|
|
|
$(CPLINT_SRCDIR)/cpl.pl \
|
|
|
|
$(CPLINT_SRCDIR)/approx/bestfirst.pl \
|
|
|
|
$(CPLINT_SRCDIR)/approx/bestk.pl \
|
|
|
|
$(CPLINT_SRCDIR)/approx/deepdyn.pl \
|
|
|
|
$(CPLINT_SRCDIR)/approx/deepit.pl \
|
|
|
|
$(CPLINT_SRCDIR)/approx/exact.pl \
|
|
|
|
$(CPLINT_SRCDIR)/approx/exact_mem.pl \
|
|
|
|
$(CPLINT_SRCDIR)/approx/montecarlo.pl \
|
|
|
|
$(CPLINT_SRCDIR)/approx/params.pl \
|
|
|
|
$(CPLINT_SRCDIR)/approx/parsing.pl \
|
2011-09-15 15:49:06 +01:00
|
|
|
$(CPLINT_SRCDIR)/approx/utility.pl \
|
|
|
|
$(CPLINT_SRCDIR)/approx/tptree_lpad.pl
|
2009-02-16 12:23:29 +00:00
|
|
|
|
|
|
|
CPLINT_SEMANTICS_PROGRAMS= \
|
|
|
|
$(CPLINT_SRCDIR)/semlpadsld.pl \
|
|
|
|
$(CPLINT_SRCDIR)/semlpad.pl \
|
|
|
|
$(CPLINT_SRCDIR)/semcpl.pl \
|
|
|
|
$(CPLINT_SRCDIR)/slg.pl
|
2010-06-01 00:38:42 +01:00
|
|
|
|
2009-02-16 12:23:29 +00:00
|
|
|
CPLINT_TEST_PROGRAMS= \
|
|
|
|
$(CPLINT_SRCDIR)/testlpadvel.pl \
|
|
|
|
$(CPLINT_SRCDIR)/testlpadsld_gbtrue.pl \
|
|
|
|
$(CPLINT_SRCDIR)/testlpadsld_gbfalse.pl \
|
|
|
|
$(CPLINT_SRCDIR)/testlpad.pl \
|
|
|
|
$(CPLINT_SRCDIR)/testcpl.pl \
|
|
|
|
$(CPLINT_SRCDIR)/testsemlpadsld.pl \
|
|
|
|
$(CPLINT_SRCDIR)/testsemlpad.pl \
|
|
|
|
$(CPLINT_SRCDIR)/testsemcpl.pl
|
2010-06-01 00:38:42 +01:00
|
|
|
|
2009-02-16 12:23:29 +00:00
|
|
|
CPLINT_EXAMPLES= \
|
|
|
|
$(CPLINT_EXDIR)/dice.cpl \
|
|
|
|
$(CPLINT_EXDIR)/dice.uni \
|
|
|
|
$(CPLINT_EXDIR)/mendel.cpl \
|
|
|
|
$(CPLINT_EXDIR)/mendels.cpl \
|
|
|
|
$(CPLINT_EXDIR)/mendels.uni \
|
|
|
|
$(CPLINT_EXDIR)/alarm.cpl \
|
|
|
|
$(CPLINT_EXDIR)/coin.cpl \
|
|
|
|
$(CPLINT_EXDIR)/coin.uni \
|
|
|
|
$(CPLINT_EXDIR)/coin2.cpl \
|
|
|
|
$(CPLINT_EXDIR)/coin2.uni \
|
|
|
|
$(CPLINT_EXDIR)/student.cpl \
|
|
|
|
$(CPLINT_EXDIR)/student.uni \
|
|
|
|
$(CPLINT_EXDIR)/exapprox.cpl \
|
|
|
|
$(CPLINT_EXDIR)/exapprox.uni \
|
|
|
|
$(CPLINT_EXDIR)/exrange.cpl \
|
|
|
|
$(CPLINT_EXDIR)/exrange.uni \
|
|
|
|
$(CPLINT_EXDIR)/ex.cpl \
|
|
|
|
$(CPLINT_EXDIR)/ex.uni \
|
|
|
|
$(CPLINT_EXDIR)/school_simple.cpl \
|
|
|
|
$(CPLINT_EXDIR)/school_simple.uni \
|
|
|
|
$(CPLINT_EXDIR)/school.cpl \
|
|
|
|
$(CPLINT_EXDIR)/paper_ref.cpl \
|
|
|
|
$(CPLINT_EXDIR)/paper_ref_not.cpl \
|
|
|
|
$(CPLINT_EXDIR)/paper_ref_simple.cpl \
|
|
|
|
$(CPLINT_EXDIR)/threesideddice.cpl \
|
|
|
|
$(CPLINT_EXDIR)/threesideddice.uni \
|
|
|
|
$(CPLINT_EXDIR)/twosideddice.cpl \
|
|
|
|
$(CPLINT_EXDIR)/female.cpl \
|
|
|
|
$(CPLINT_EXDIR)/hiv.cpl \
|
|
|
|
$(CPLINT_EXDIR)/hiv.uni \
|
|
|
|
$(CPLINT_EXDIR)/invalid.cpl \
|
|
|
|
$(CPLINT_EXDIR)/invalid.uni \
|
|
|
|
$(CPLINT_EXDIR)/light.cpl \
|
|
|
|
$(CPLINT_EXDIR)/light.uni \
|
|
|
|
$(CPLINT_EXDIR)/throws.cpl \
|
|
|
|
$(CPLINT_EXDIR)/throws.uni \
|
|
|
|
$(CPLINT_EXDIR)/trigger.cpl \
|
|
|
|
$(CPLINT_EXDIR)/trigger.uni \
|
|
|
|
$(CPLINT_EXDIR)/win.cpl \
|
|
|
|
$(CPLINT_EXDIR)/win.uni \
|
|
|
|
$(CPLINT_EXDIR)/exist.cpl \
|
|
|
|
$(CPLINT_EXDIR)/exist.uni \
|
|
|
|
$(CPLINT_EXDIR)/exist1.cpl \
|
|
|
|
$(CPLINT_EXDIR)/exist1.uni
|
|
|
|
|
|
|
|
CPLINT_DOCS=\
|
|
|
|
$(CPLINT_DOCDIR)/manual.bbl \
|
|
|
|
$(CPLINT_DOCDIR)/manual.tex \
|
|
|
|
$(CPLINT_DOCDIR)/manual.pdf \
|
|
|
|
$(CPLINT_DOCDIR)/manual.html \
|
|
|
|
$(CPLINT_DOCDIR)/manual.css \
|
2015-01-07 10:17:19 +00:00
|
|
|
$(CPLINT_DOCDIR)/manual0x.png
|
|
|
|
|
|
|
|
# $(CPLINT_DOCDIR)/Makefile
|
2010-06-01 00:38:42 +01:00
|
|
|
|
2011-09-15 15:49:06 +01:00
|
|
|
CPLINT_LEARNING_PROGRAMS=\
|
|
|
|
$(CPLINT_SRCDIR)/em \
|
2011-10-31 13:26:18 +00:00
|
|
|
$(CPLINT_SRCDIR)/rib \
|
2013-09-04 17:58:00 +01:00
|
|
|
$(CPLINT_SRCDIR)/slipcase \
|
2014-10-15 14:15:24 +01:00
|
|
|
$(CPLINT_SRCDIR)/slipcover \
|
|
|
|
$(CPLINT_SRCDIR)/lemur
|
2014-02-13 01:58:48 +00:00
|
|
|
|
2009-02-16 12:23:29 +00:00
|
|
|
|
|
|
|
all: $(SOBJS)
|
|
|
|
|
|
|
|
cplint_yap.o: $(srcdir)/cplint_yap.c $(srcdir)/cplint.h
|
2010-06-21 11:54:21 +01:00
|
|
|
$(CC) -c $(CFLAGS) $(CPLINT_CFLAGS) $(srcdir)/cplint_yap.c -o cplint_yap.o
|
2009-02-16 12:23:29 +00:00
|
|
|
|
|
|
|
cplint_Prob.o: $(srcdir)/cplint_Prob.c $(srcdir)/cplint.h
|
2010-06-21 11:54:21 +01:00
|
|
|
$(CC) -c $(CFLAGS) $(CPLINT_CFLAGS) $(srcdir)/cplint_Prob.c -o cplint_Prob.o
|
2010-06-01 00:38:42 +01:00
|
|
|
|
2014-10-16 09:20:07 +01:00
|
|
|
bddem.o : $(srcdir)/slipcase/bddem.c
|
|
|
|
$(CC) -c $(CFLAGS) $(CPLINT_CFLAGS) $(srcdir)/slipcase/bddem.c -o bddem.o
|
2009-02-16 12:23:29 +00:00
|
|
|
|
|
|
|
|
2014-10-22 10:11:20 +01:00
|
|
|
@DO_SECOND_LD@cplint.@SO@: cplint_yap.o cplint_Prob.o
|
|
|
|
@DO_SECOND_LD@ @CPLINT_SHLIB_LD@ -o cplint.@SO@ $(CPLINT_LDFLAGS) cplint_yap.o cplint_Prob.o $(CPLINT_LIBS) @EXTRA_LIBS_FOR_DLLS@
|
2009-02-16 12:23:29 +00:00
|
|
|
|
2014-10-22 10:11:20 +01:00
|
|
|
@DO_SECOND_LD@bddem.@SO@: bddem.o
|
|
|
|
@DO_SECOND_LD@ @CPLINT_SHLIB_LD@ -o bddem.@SO@ $(CPLINT_LDFLAGS) bddem.o $(CPLINT_LIBS) @EXTRA_LIBS_FOR_DLLS@
|
2014-10-16 09:20:07 +01:00
|
|
|
|
2009-02-16 12:23:29 +00:00
|
|
|
clean:
|
|
|
|
rm -f *.o *~ $(OBJS) $(SOBJS) *.BAK
|
|
|
|
|
2014-10-15 14:15:24 +01:00
|
|
|
install: all
|
2009-02-16 12:23:29 +00:00
|
|
|
mkdir -p $(DESTDIR)$(SHAREDIR)/cplint
|
|
|
|
mkdir -p $(DESTDIR)$(SHAREDIR)/cplint/examples
|
|
|
|
mkdir -p $(DESTDIR)$(SHAREDIR)/cplint/doc
|
|
|
|
for h in $(CPLINT_PROGRAMS); do $(INSTALL_DATA) $$h $(DESTDIR)$(SHAREDIR); done
|
|
|
|
for h in $(CPLINT_EXAMPLES); do $(INSTALL_DATA) $$h $(DESTDIR)$(SHAREDIR)/cplint/examples; done
|
|
|
|
for h in $(CPLINT_DOCS); do $(INSTALL_DATA) $$h $(DESTDIR)$(SHAREDIR)/cplint/doc; done
|
|
|
|
for h in $(CPLINT_TEST_PROGRAMS); do $(INSTALL_DATA) $$h $(DESTDIR)$(SHAREDIR)/cplint; done
|
|
|
|
for h in $(CPLINT_SEMANTICS_PROGRAMS); do $(INSTALL_DATA) $$h $(DESTDIR)$(SHAREDIR); done
|
2010-03-18 15:11:21 +00:00
|
|
|
$(INSTALL_PROGRAM) $(SOBJS) $(DESTDIR)$(YAPLIBDIR)
|
|
|
|
$(INSTALL_PROGRAM) approx/simplecuddLPADs/LPADBDD $(SHAREDIR)
|
2011-10-31 13:26:18 +00:00
|
|
|
#cp -R $(CPLINT_LEARNING_PROGRAMS) $(DESTDIR)$(SHAREDIR)/cplint
|
2011-10-22 15:33:04 +01:00
|
|
|
cp $(CPLINT_SRCDIR)/em/*.pl $(DESTDIR)$(SHAREDIR)/cplint/
|
|
|
|
cp $(CPLINT_SRCDIR)/rib/*.pl $(DESTDIR)$(SHAREDIR)/cplint/
|
|
|
|
cp $(CPLINT_SRCDIR)/slipcase/*.pl $(DESTDIR)$(SHAREDIR)/cplint/
|
2013-09-04 17:58:00 +01:00
|
|
|
cp $(CPLINT_SRCDIR)/slipcover/*.pl $(DESTDIR)$(SHAREDIR)/cplint/
|
2014-10-15 14:15:24 +01:00
|
|
|
cp $(CPLINT_SRCDIR)/lemur/*.pl $(DESTDIR)$(SHAREDIR)/cplint/
|
2009-02-16 12:23:29 +00:00
|
|
|
|
2014-02-13 01:58:48 +00:00
|
|
|
|
2009-02-16 12:23:29 +00:00
|
|
|
installcheck:
|
2010-03-18 15:11:21 +00:00
|
|
|
for h in ${CPLINT_TEST_PROGRAMS}; do echo "t. halt." | $(BINDIR)/yap -l $$h; done
|
2009-02-16 12:23:29 +00:00
|
|
|
|
|
|
|
# use the following target to run individual tests, e.g. make testlpad
|
|
|
|
test%:
|
|
|
|
echo "t. halt." | yap -l $(CPLINT_SRCDIR)/$@.pl
|
|
|
|
|
2014-02-13 01:58:48 +00:00
|
|
|
distclean: clean
|
|
|
|
rm -f Makefile
|
2014-11-03 00:13:34 +00:00
|
|
|
|