PKG_LIBS = $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)
# PKG_CFLAGS = -Wall -pedantic -march=native -flto=10 -Wabsolute-value -Wstrict-prototypes

SOURCES = \
  arcs/arcs2amat.c \
  arcs/arcs2elist.c \
  arcs/bind.c \
  arcs/filter.arcs.c \
  arcs/hash.c \
  arcs/is.row.equal.c \
  bnlearn/bayesian.network.c \
  bnlearn/bn.recovery.c \
  bnlearn/cache.structure.c \
  bnlearn/cextend.c \
  bnlearn/colliders.c \
  bnlearn/cpdag.c \
  bnlearn/fitted.c \
  bnlearn/nparams.c \
  bnlearn/shd.c \
  core/allocations.c \
  core/contingency.tables.c \
  core/correlation.c \
  core/covariance.matrix.c \
  core/data.table.c \
  core/math.functions.c \
  core/moments.c \
  core/sampling.c \
  core/sets.c \
  core/sort.c \
  core/uppertriangular.c \
  fitted/enums.c \
  fitted/fitted.c \
  fitted/nparams.c \
  fitted/rinterface/nparams.c \
  foreign/parse.c \
  globals.c \
  graphs/acyclic.c \
  graphs/completely.directed.c \
  graphs/connected.components.c \
  graphs/path.c \
  graphs/path.matrix.c \
  graphs/pdag2dag.c \
  graphs/random/graph.generation.c \
  graphs/topological.ordering.c \
  graphs/rinterface/connected.components.c \
  graphs/rinterface/path.matrix.c \
  graphs/rinterface/sid.c \
  graphs/sid.c \
  inference/likelihood.weighting.c \
  inference/loglikelihood/common.c \
  inference/loglikelihood/discrete.c \
  inference/loglikelihood/gaussian.c \
  inference/loglikelihood/conditional.gaussian.c \
  inference/rbn.c \
  inference/rinterface/loglikelihood.c \
  inference/rinterface/cpdist.c \
  inference/rinterface/rbn.c \
  inference/rinterface/likelihood.weighting.c \
  learning/averaging/averaging.c \
  learning/averaging/bootstrap.c \
  learning/local/mi.matrix.c \
  learning/score/hc.cache.lookup.c \
  learning/score/score.delta.c \
  learning/score/tabu.c \
  math/conditional.least.squares.c \
  math/least.squares.c \
  math/linear.algebra.c \
  minimal/common.c \
  minimal/data.frame.c \
  minimal/strings.c \
  minimal/table.c \
  minimal/tiers.c \
  minimal/unique.c \
  parameters/discrete/classic.discrete.c \
  parameters/discrete/hierarchical.dirichlet.c \
  parameters/rinterface/classic.discrete.c \
  parameters/rinterface/hierarchical.dirichlet.c \
  parameters/rinterface/mixture.ordinary.least.squares.c \
  parameters/rinterface/ordinary.least.squares.c \
  predict/map.lw.c \
  predict/predict.c \
  preprocessing/dedup.c \
  preprocessing/discretize.c \
  preprocessing/enums.c \
  preprocessing/rinterface/discretize.c \
  sanitization/cg.assumptions.c \
  sanitization/covariance.c \
  sanitization/data.c \
  scores/alpha.star.c \
  scores/cg.loglikelihood.c \
  scores/cg.predictive.loglikelihood.c \
  scores/cg.nal.c \
  scores/custom.score.c \
  scores/dirichlet.averaged.posterior.c \
  scores/dirichlet.posterior.c \
  scores/discrete.loglikelihood.c \
  scores/discrete.nal.c \
  scores/discrete.predictive.loglikelihood.c \
  scores/enum.c \
  scores/gaussian.loglikelihood.c \
  scores/gaussian.nal.c \
  scores/gaussian.predictive.loglikelihood.c \
  scores/graph.priors.c \
  scores/nml.regret.c \
  scores/nml.regret.table.c \
  scores/normalized.maximum.likelihood.c \
  scores/per.node.score.c \
  scores/wishart.posterior.c \
  test.counter.c \
  tests/conditional.gaussian/cg.mutual.information.c \
  tests/discrete/df.adjust.c \
  tests/discrete/discrete.tests.c \
  tests/discrete/jonckheere.c \
  tests/discrete/shrinkage.c \
  tests/enums.c \
  tests/gaussian/df.adjust.c \
  tests/gaussian/gaussian.tests.c \
  tests/gaussian/shrinkage.c \
  tests/omnibus/custom.test.c \
  tests/patterns/allsubs.test.c \
  tests/patterns/ctest.c \
  tests/patterns/roundrobin.test.c \
  tests/patterns/utest.c \
  tests/permutation/discrete.monte.carlo.c \
  tests/permutation/gaussian.monte.carlo.c \
  tests/rinterface/allsubs.test.c \
  tests/rinterface/ctest.c \
  tests/rinterface/htest.c \
  tests/rinterface/indep.test.c \
  tests/rinterface/roundrobin.test.c \
  tests/rinterface/utest.c

OBJECTS = $(SOURCES:.c=.o)
