[hackers] [scc] [libc] Move .s.o Makefile rule to config.mk || Quentin Rameau

From: <git_AT_suckless.org>
Date: Fri, 17 Mar 2017 08:50:00 +0100 (CET)

commit 5869868f726867caa7d35045ea773975eec30430
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Wed Mar 8 16:31:01 2017 +0100
Commit: Quentin Rameau <quinq_AT_fifth.space>
CommitDate: Tue Mar 14 08:31:50 2017 +0100

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

diff --git a/config.mk b/config.mk
index 28ae830..1c015b2 100644
--- a/config.mk
+++ b/config.mk
_AT_@ -30,6 +30,9 @@ SCC_CFLAGS = -DARCH=\"$(ARCH)\" \
 
 SCC_LDFLAGS = $(LDFLAGS)
 
+.s.o:
+ $(AS) $< -o $_AT_
+
 .c.o:
         $(CC) $(SCC_CFLAGS) -o $_AT_ -c $<
 
diff --git a/libc/src/sys/amd64-linux/Makefile b/libc/src/sys/amd64-linux/Makefile
index b930527..f49496c 100644
--- a/libc/src/sys/amd64-linux/Makefile
+++ b/libc/src/sys/amd64-linux/Makefile
_AT_@ -11,9 +11,6 @@ OBJ = $(OBJ_GEN)
 
 all: $(OBJ) system.mk
 
-.s.o:
- $(AS) $< -o $_AT_
-
 system.mk: Makefile
         echo '$$(SYSOBJ)' = $(OBJ) > system.mk
 
diff --git a/libc/src/sys/qbe-linux/Makefile b/libc/src/sys/qbe-linux/Makefile
index 610244e..e74b9d8 100644
--- a/libc/src/sys/qbe-linux/Makefile
+++ b/libc/src/sys/qbe-linux/Makefile
_AT_@ -11,9 +11,6 @@ OBJ = $(OBJ_GEN)
 
 all: $(OBJ) system.mk
 
-.s.o:
- $(AS) $< -o $_AT_
-
 system.mk: Makefile
         echo '$$(SYSOBJ)' = $(OBJ) > system.mk
 
Received on Fri Mar 17 2017 - 08:50:00 CET

This archive was generated by hypermail 2.3.0 : Fri Mar 17 2017 - 09:00:20 CET