Work on dependencies.

This commit is contained in:
Dominik Pantůček 2023-03-14 12:02:30 +01:00
parent db18163193
commit a700e483db

View file

@ -1,7 +1,38 @@
#
# Makefile
#
# Building the binary from sources.
#
# ISC License
#
# Copyright 2023 Brmlab, z.s.
# Dominik Pantůček <dominik.pantucek@trustica.cz>
#
# Permission to use, copy, modify, and/or distribute this software
# for any purpose with or without fee is hereby granted, provided
# that the above copyright notice and this permission notice appear
# in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
# WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
# AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
# OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
# CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#
.PHONY: all
all: testing.so testing.import.scm
all: testing.so testing.import.scm listing.so listing.import.scm \
month.so month.import.scm period.so period.import.scm \
ansi.so ansi.import.scm member-file.so \
member-file.import.scm dictionary.so \
dictionary.import.scm
################################################################
# Module shared object and import source compilation
%.so: %.scm
csc -s $<
@ -9,5 +40,26 @@ all: testing.so testing.import.scm
%.import.scm: %.scm
csc -J $<
testing.o: testing.scm
################################################################
# Modules
testing.so: testing.scm
testing.import.scm: testing.scm
listing.so: listing.scm
listing.import.scm: listing.scm
dictionary.so: dictionary.scm
dictionary.import.scm: dictionary.scm
month.so: month.scm
month.import.scm: month.scm
period.so: period.scm
period.import.scm: period.scm
ansi.so: ansi.scm
ansi.import.scm: ansi.scm
member-file.so: member-file.scm dictionary.import.scm ansi.import.scm
member-file.import.scm: member-file.scm dictionary.import.scm ansi.import.scm