commit 6218a27302cdb6c8a0d8f565b9218ea7aa895edb parent 9b88ff2e58ddb6b405c0a2980765f1a44cf4d86d Author: Roberto E. Vargas Caballero <k0ga@shike2.com> Date: Thu, 24 Oct 2024 18:35:37 +0200 build/make: Avoid implicit rule chaining Chaining implicit rules with explicit rules is an extension that not all the make implementations support. Diffstat:
M | src/cmd/scc-as/ppc/Makefile | | | 6 | ++++-- |
M | src/cmd/scc-as/x80/Makefile | | | 3 | ++- |
M | src/cmd/scc-as/x86/Makefile | | | 9 | ++++++--- |
3 files changed, 12 insertions(+), 6 deletions(-)
diff --git a/src/cmd/scc-as/ppc/Makefile b/src/cmd/scc-as/ppc/Makefile @@ -21,11 +21,13 @@ ppc.o: $(OBJS32) ppc64.o: $(OBJS64) $(LD) -r -o $@ $(OBJS64) -ppctbl.c: ops.dat opers.dat +ppctbl.o: ops.dat opers.dat ../mktbl -c ppc + $(CC) $(PROJ_CFLAGS) -c ppctbl.c -ppc64tbl.c: ops.dat opers.dat +ppc64tbl.o: ops.dat opers.dat ../mktbl -c ppc64 + $(CC) $(PROJ_CFLAGS) -c ppc64tbl.c clean: rm -f ppc64tbl.c ppctbl.c diff --git a/src/cmd/scc-as/x80/Makefile b/src/cmd/scc-as/x80/Makefile @@ -13,8 +13,9 @@ all: z80.o z80.o: $(OBJS_Z80) $(LD) -r -o $@ $(OBJS_Z80) -z80tbl.c: ops.dat opers.dat +z80tbl.o: ops.dat opers.dat ../mktbl -c z80 + $(CC) $(PROJ_CFLAGS) -c z80tbl.c clean: rm -f z80tbl.c diff --git a/src/cmd/scc-as/x86/Makefile b/src/cmd/scc-as/x86/Makefile @@ -29,14 +29,17 @@ i386.o: $(OBJS_386) amd64.o: $(OBJS_AMD64) $(LD) -r -o $@ $(OBJS_AMD64) -i286tbl.c: ops.dat opers.dat +i286tbl.o: ops.dat opers.dat ../mktbl -c i286 + $(CC) $(PROJ_CFLAGS) -c i286tbl.c -i386tbl.c: ops.dat opers.dat +i386tbl.o: ops.dat opers.dat ../mktbl -c i386 + $(CC) $(PROJ_CFLAGS) -c i386tbl.c -amd64tbl.c: ops.dat opers.dat +amd64tbl.o: ops.dat opers.dat ../mktbl -c amd64 + $(CC) $(PROJ_CFLAGS) -c amd64tbl.c clean: rm -f amd64tbl.c i386tbl.c i286tbl.c