From f4f6255b84e52ebee4e929b4d80b1d32bc3c7037 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Pant=C5=AF=C4=8Dek?= Date: Sat, 1 Apr 2023 10:22:55 +0200 Subject: [PATCH] Cleanup static dependencies. --- src/Makefile | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/src/Makefile b/src/Makefile index 999b3fa..3d938ab 100644 --- a/src/Makefile +++ b/src/Makefile @@ -27,7 +27,7 @@ default: imports .PHONY: static -static: bbstool +static: ../bbstool CSC=csc @@ -42,14 +42,6 @@ BBSTOOL-DEPS=bbstool.scm testing.import.scm listing.import.scm \ csv-simple.import.scm bank-account.import.scm \ bank-fio.import.scm members-payments.import.scm -BBSTOOL-SOURCES=bbstool.scm testing.scm listing.scm dictionary.scm \ - month.scm period.scm ansi.scm command-line.scm \ - members-base.scm utils.scm primes.scm member-record.scm \ - configuration.scm progress.scm table.scm cards.scm \ - members-print.scm member-parser.scm member-fees.scm \ - members-dir.scm csv-simple.scm bank-account.scm bank-fio.scm \ - members-payments.scm - BBSTOOL-OBJS=bbstool.o testing.o listing.o month.o period.o ansi.o \ dictionary.o command-line.o members-base.o utils.o primes.o \ member-record.o configuration.o progress.o table.o cards.o \ @@ -59,12 +51,12 @@ BBSTOOL-OBJS=bbstool.o testing.o listing.o month.o period.o ansi.o \ .PHONY: imports imports: $(BBSTOOL-DEPS) -bbstool: $(BBSTOOL-OBJS) +../bbstool: $(BBSTOOL-OBJS) $(CSC) -static -o $@ $(BBSTOOL-OBJS) .PHONY: clean clean: - rm -f *.c *.link *.o *.import.scm bbstool + rm -f *.c *.link *.o *.import.scm ../bbstool ################################################################ # Module static and shared object and import source compilation @@ -76,6 +68,11 @@ clean: rm -f $@ $(CSC) -P -J $< +################################################################ +# Main program + +bbstool.o: $(BBSTOOL-DEPS) + ################################################################ # Modules