1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-15 17:30:06 +00:00

Make Makefiles more -j friendly

Add .$1.$2 to outputs missing them.
This commit is contained in:
Jesse Rosenstock 2020-07-02 08:57:11 +02:00 committed by Oliver Schmidt
parent f5afc75cbd
commit 878e4a57c8
3 changed files with 7 additions and 6 deletions

View File

@ -16,8 +16,6 @@ WORKDIR = ../testwrk
all: dotests
.NOTPARALLEL:
dotests: mostlyclean continue
continue:

View File

@ -41,6 +41,9 @@ CPUDETECT_BINS = $(foreach cpu,$(CPUDETECT_CPUS),$(WORKDIR)/$(cpu)-cpudetect.bin
all: $(OPCODE_BINS) $(CPUDETECT_BINS)
# cpudetect.o is written by multiple rules
.NOTPARALLEL:
$(WORKDIR):
$(call MKDIR,$(WORKDIR))

View File

@ -69,13 +69,13 @@ $(WORKDIR)/endless.$1.$2.prg: endless.c | $(WORKDIR)
$(WORKDIR)/limits.$1.$2.prg: limits.c $(DIFF)
$(if $(QUIET),echo misc/limits.$1.$2.prg)
$(CL65) -t sim$2 -$1 -o $$@ $$< $(NULLERR)
$(SIM65) $(SIM65FLAGS) $$@ > $(WORKDIR)/limits.$1.out
$(DIFF) $(WORKDIR)/limits.$1.out limits.ref
$(SIM65) $(SIM65FLAGS) $$@ > $(WORKDIR)/limits.$1.$2.out
$(DIFF) $(WORKDIR)/limits.$1.$2.out limits.ref
$(WORKDIR)/goto.$1.$2.prg: goto.c $(DIFF)
$(if $(QUIET),echo misc/goto.$1.$2.prg)
$(CL65) -t sim$2 -$1 -o $$@ $$< 2>$(WORKDIR)/goto.$1.out
$(DIFF) $(WORKDIR)/goto.$1.out goto.ref
$(CL65) -t sim$2 -$1 -o $$@ $$< 2>$(WORKDIR)/goto.$1.$2.out
$(DIFF) $(WORKDIR)/goto.$1.$2.out goto.ref
# the rest are tests that fail currently for one reason or another
$(WORKDIR)/fields.$1.$2.prg: fields.c | $(WORKDIR)