scc

suckless C compiler
git clone git://git.suckless.org/scc
Log | Files | Refs | README | LICENSE

commit 5869868f726867caa7d35045ea773975eec30430
parent c2546145987d08fbacf96741ef0fd2b3dd1781d7
Author: Quentin Rameau <quinq@fifth.space>
Date:   Wed,  8 Mar 2017 16:31:01 +0100

[libc] Move .s.o Makefile rule to config.mk

Diffstat:
config.mk | 3+++
libc/src/sys/amd64-linux/Makefile | 3---
libc/src/sys/qbe-linux/Makefile | 3---
3 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/config.mk b/config.mk @@ -30,6 +30,9 @@ SCC_CFLAGS = -DARCH=\"$(ARCH)\" \ SCC_LDFLAGS = $(LDFLAGS) +.s.o: + $(AS) $< -o $@ + .c.o: $(CC) $(SCC_CFLAGS) -o $@ -c $< diff --git a/libc/src/sys/amd64-linux/Makefile b/libc/src/sys/amd64-linux/Makefile @@ -11,9 +11,6 @@ OBJ = $(OBJ_GEN) all: $(OBJ) system.mk -.s.o: - $(AS) $< -o $@ - system.mk: Makefile echo '$$(SYSOBJ)' = $(OBJ) > system.mk diff --git a/libc/src/sys/qbe-linux/Makefile b/libc/src/sys/qbe-linux/Makefile @@ -11,9 +11,6 @@ OBJ = $(OBJ_GEN) all: $(OBJ) system.mk -.s.o: - $(AS) $< -o $@ - system.mk: Makefile echo '$$(SYSOBJ)' = $(OBJ) > system.mk