Work on static linkage.

This commit is contained in:
Dominik Pantůček 2023-03-16 14:05:47 +01:00
parent dbb7ab7fd8
commit 1a6f339d9d
2 changed files with 17 additions and 7 deletions

View file

@ -23,10 +23,20 @@
# CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#
brmsaptool: brmsaptool.o testing.o listing.o month.o period.o ansi.o \
member-file.o dictionary.o command-line.o \
.PHONY: all
all: brmsaptool brmsaptool-static
CSC=csc
BRMSAPTOOL-SOURCES=brmsaptool.o testing.o listing.o month.o period.o \
ansi.o member-file.o dictionary.o command-line.o \
members-base.o utils.o
csc -o brmsaptool $^
brmsaptool: $(BRMSAPTOOL-SOURCES)
$(CSC) -o $@ $^
brmsaptool-static: brmsaptool.scm $(BRMSAPTOOL-SOURCES)
$(CSC) -static -o $@ $<
.PHONY: clean
clean:
@ -36,10 +46,10 @@ clean:
# Module shared object and import source compilation
%.o: %.scm
csc -c $<
$(CSC) -c $<
%.import.scm: %.scm
csc -c -J $<
$(CSC) -c -J $<
################################################################
# Modules