shithub: scc

Download patch

ref: dd4c403f9a3e673c0d233ba39c20960f11b104df
parent: 4895b182d57d6900cf73c95855b9443daa227ad5
author: Quentin Rameau <quinq@fifth.space>
date: Wed Mar 8 11:31:01 EST 2017

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

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