scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit ffe9b54d1bf9ddf8c3b8cb097b46ed996f2fbb66
parent 1c53425cc64eeff4ee73af927c4f5ba56ddac619
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sun, 12 Jan 2025 11:47:33 +0100

tests/ld: Add .s rule to Makefile

.S rules are not part of standard POSIX Makefiles as POSIX
keeps as and ld out of its scope.

Diffstat:
Mtests/ld/execute/Makefile | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/tests/ld/execute/Makefile b/tests/ld/execute/Makefile @@ -5,9 +5,14 @@ BINDIR = ../../../bin/ OBJS = f1.o f2.o OBJLIB = f3.o +.SUFFIXES: .s + all: PATH=$(BINDIR):$$PATH $(MAKE) a.out +.s.o: + $(AS) -o $@ $< + tests: @if command -v $(AS) >/dev/null;\ then\