From a09be93da457c46fce804311ea7ec0b5f81f4beb Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Tue, 29 Sep 2020 19:54:46 +0200 Subject: [PATCH] build: use libraries for each module --- src/ast/local.am | 10 +++++++++- src/compile/local.am | 10 +++++++++- src/eval/local.am | 10 +++++++++- src/jit/local.am | 10 +++++++++- src/print/local.am | 10 +++++++++- 5 files changed, 45 insertions(+), 5 deletions(-) diff --git a/src/ast/local.am b/src/ast/local.am index fb8dc58..ec7fb16 100644 --- a/src/ast/local.am +++ b/src/ast/local.am @@ -1,4 +1,12 @@ -jitters_SOURCES += \ +jitters_LDADD += \ + libast.a \ + $(NULL) + +noinst_LIBRARIES += \ + libast.a \ + $(NULL) + +libast_a_SOURCES = \ %D%/ast.c \ %D%/ast.h \ $(NULL) diff --git a/src/compile/local.am b/src/compile/local.am index 4bbfd0e..01f0c2c 100644 --- a/src/compile/local.am +++ b/src/compile/local.am @@ -1,4 +1,12 @@ -jitters_SOURCES += \ +jitters_LDADD += \ + libcompile.a \ + $(NULL) + +noinst_LIBRARIES += \ + libcompile.a \ + $(NULL) + +libcompile_a_SOURCES = \ %D%/compiler.c \ %D%/compiler.h \ $(NULL) diff --git a/src/eval/local.am b/src/eval/local.am index f0f187b..69e4531 100644 --- a/src/eval/local.am +++ b/src/eval/local.am @@ -1,4 +1,12 @@ -jitters_SOURCES += \ +jitters_LDADD += \ + libeval.a \ + $(NULL) + +noinst_LIBRARIES += \ + libeval.a \ + $(NULL) + +libeval_a_SOURCES = \ %D%/evaluator.c \ %D%/evaluator.h \ $(NULL) diff --git a/src/jit/local.am b/src/jit/local.am index 6d75bbb..a3c7910 100644 --- a/src/jit/local.am +++ b/src/jit/local.am @@ -1,4 +1,12 @@ -jitters_SOURCES += \ +jitters_LDADD += \ + libjit.a \ + $(NULL) + +noinst_LIBRARIES += \ + libjit.a \ + $(NULL) + +libjit_a_SOURCES = \ %D%/jitter.c \ %D%/jitter.h \ %D%/vector.h \ diff --git a/src/print/local.am b/src/print/local.am index e6db924..dcadec5 100644 --- a/src/print/local.am +++ b/src/print/local.am @@ -1,4 +1,12 @@ -jitters_SOURCES += \ +jitters_LDADD += \ + libprint.a \ + $(NULL) + +noinst_LIBRARIES += \ + libprint.a \ + $(NULL) + +libprint_a_SOURCES = \ %D%/printer.c \ %D%/printer.h \ $(NULL)