Cleanup static dependencies.

This commit is contained in:
Dominik Pantůček 2023-04-01 10:22:55 +02:00
parent 9a1bd70c36
commit f4f6255b84

View file

@ -27,7 +27,7 @@
default: imports default: imports
.PHONY: static .PHONY: static
static: bbstool static: ../bbstool
CSC=csc CSC=csc
@ -42,14 +42,6 @@ BBSTOOL-DEPS=bbstool.scm testing.import.scm listing.import.scm \
csv-simple.import.scm bank-account.import.scm \ csv-simple.import.scm bank-account.import.scm \
bank-fio.import.scm members-payments.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 \ 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 \ dictionary.o command-line.o members-base.o utils.o primes.o \
member-record.o configuration.o progress.o table.o cards.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 .PHONY: imports
imports: $(BBSTOOL-DEPS) imports: $(BBSTOOL-DEPS)
bbstool: $(BBSTOOL-OBJS) ../bbstool: $(BBSTOOL-OBJS)
$(CSC) -static -o $@ $(BBSTOOL-OBJS) $(CSC) -static -o $@ $(BBSTOOL-OBJS)
.PHONY: clean .PHONY: clean
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 # Module static and shared object and import source compilation
@ -76,6 +68,11 @@ clean:
rm -f $@ rm -f $@
$(CSC) -P -J $< $(CSC) -P -J $<
################################################################
# Main program
bbstool.o: $(BBSTOOL-DEPS)
################################################################ ################################################################
# Modules # Modules