Commit be8c398b authored by Thierry Martinez's avatar Thierry Martinez

Fixed: C library 'roots' initialization

- install_roots() is called in main() (swipl-biocham.c)

- generated binary files are removed

- removed implicit Makefile rule

- partialfrac clean is idempotent and called from the main Makefile
parent 56270914
......@@ -73,6 +73,7 @@ jupyter: biocham
clean:
- make -C modules/graphviz clean
- make -C modules/sbml clean
- make -C modules/partialfrac clean
- rm platform/current
- rm biocham
- rm biocham_debug
......
......@@ -16,13 +16,10 @@ all: roots
.PHONY: clean
clean:
rm roots.o
rm -f roots.o
roots: $(OBJ)
$(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS)
mv $@.$(PLSOEXT) $@
roots.o: roots.h
%.o: %.c
$(CC) -o $@ -c $< $(CFLAGS)
\ No newline at end of file
......@@ -246,7 +246,7 @@ pl_display(term_t l)
install_t
install_roots()
install_roots(void)
{
PL_register_foreign("roots", 3, pl_roots, 0);
PL_register_foreign("display", 1, pl_display, 0);
......
......@@ -3,4 +3,7 @@
#define EPSILON_POL (0.0001)
install_t
install_roots(void);
#endif
......@@ -2,12 +2,14 @@
#include <SWI-Prolog.h>
#include <graphviz_swiprolog.h>
#include <sbml_swiprolog.h>
#include <roots.h>
int
main(int argc, char **argv)
{
install_graphviz_swiprolog();
install_sbml_swiprolog();
install_roots();
if (!PL_initialise(argc, argv)) {
PL_halt(1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment