build: use libraries for each module

This commit is contained in:
Bruno BELANYI 2020-09-29 19:54:46 +02:00
parent 1261aa9f66
commit a09be93da4
5 changed files with 45 additions and 5 deletions

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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 \

View file

@ -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)