Skip to content
Snippets Groups Projects
Commit 33230a01 authored by Jakhes's avatar Jakhes
Browse files

Adding Macros to the Makefiles

to make them easier to edit
parent 7893bcbc
No related branches found
No related tags found
No related merge requests found
SPLFR_PATH=/usr/local/sicstus4.7.1/bin/splfr
all: all:
make -C src/methods/bayesian_linear_regression make -C src/methods/bayesian_linear_regression splfr=$(SPLFR_PATH)
clean: clean:
make -C src/methods/bayesian_linear_regression clean make -C src/methods/bayesian_linear_regression clean
\ No newline at end of file
splfr=/usr/local/sicstus4.7.1/bin/splfr splfr=/usr/local/sicstus4.7.1/bin/splfr
bayesian_linear_regression.so: bayesian_linear_regression.pl bayesian_linear_regression.cpp
$(splfr) -larmadillo -fopenmp -lmlpack -lstdc++ -cxx --struct bayesian_linear_regression.pl bayesian_linear_regression.cpp METHOD_NAME=bayesian_linear_regression
$(METHOD_NAME).so: $(METHOD_NAME).pl $(METHOD_NAME).cpp
$(splfr) -larmadillo -fopenmp -lmlpack -lstdc++ -cxx --struct $(METHOD_NAME).pl $(METHOD_NAME).cpp
clean: clean:
rm bayesian_linear_regression.so rm $(METHOD_NAME).so
\ No newline at end of file
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
%% needed for using the array type and for reading from csv %% needed for using the array type and for reading from csv
:- use_module(library(structs)). :- use_module(library(structs)).
:- use_module(library(csv)).
:- use_module('/home/afkjakhes/git/prolog-mlpack-libary/src/helper_files/helper'). :- use_module('/home/afkjakhes/git/prolog-mlpack-libary/src/helper_files/helper').
%% type definitions for the float array %% type definitions for the float array
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment