shithub: scc

Download patch

ref: 3ba625a83430f2616905108eaa93ac8c9009d45a
parent: 8f0953979283c0b604bc4ed5e90ed20c870618fe
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Sun Dec 23 03:23:54 EST 2018

[libc] Move target directory to script/rules.mk

--- a/scripts/rules.mk
+++ b/scripts/rules.mk
@@ -8,6 +8,7 @@
 BINDIR     = $(PROJECTDIR)/bin
 LIBEXEC    = $(PROJECTDIR)/libexec/scc
 CRTDIR     = $(PROJECTDIR)/lib/scc
+LIBCDIR    = $(CRTDIR)/$(ARCH)-$(SYS)/
 
 INCLUDE    = -I$(INCDIR)/scc \
 
--- a/src/libc/Makefile
+++ b/src/libc/Makefile
@@ -3,7 +3,7 @@
 include $(PROJECTDIR)/scripts/rules.mk
 include rules.mk
 
-TARGET = $(CRTDIR)/$(ARCH)-$(SYS)/libc.a
+TARGET = $(LIBCDIR)/libc.a
 DIRS = arch\
        assert\
        ctype\