[hackers] [scc] Makefile: add a libc target || Quentin Rameau
commit 4fff993de65740c25530b94a9f75d7b951f13f73
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Thu Mar 2 13:24:40 2017 +0100
Commit: Quentin Rameau <quinq_AT_fifth.space>
CommitDate: Thu Mar 2 13:27:49 2017 +0100
Makefile: add a libc target
diff --git a/Makefile b/Makefile
index 7bfbffe..0e6d3bd 100644
--- a/Makefile
+++ b/Makefile
_AT_@ -4,7 +4,7 @@
include config.mk
-DIRS = lib cc1 cc2 driver/$(DRIVER)
+DIRS = lib cc1 cc2 driver/$(DRIVER) libc/src
all: scc-driver
for i in $(ARCHS); \
_AT_@ -25,6 +25,11 @@ $(ARCHS):
ln -f cc1/cc1-$_AT_ bin/
ln -f cc2/cc2-$_AT_ bin/
+libc/src/libc.a:
+
+libc: libc/src/libc.a
+ cd libc/src && $(MAKE) -e CC=scc
+
tests: all
cd tests/execute && $(MAKE) -e tests
diff --git a/libc/src/Makefile b/libc/src/Makefile
index c80618f..28e7148 100644
--- a/libc/src/Makefile
+++ b/libc/src/Makefile
_AT_@ -1,6 +1,8 @@
# See LICENSE file for copyright and license details.
.POSIX:
+include ../../config.mk
+
LIBCOBJ = assert.o strcpy.o strcmp.o strlen.o strchr.o \
strrchr.o strcat.o strncmp.o strncpy.o strncat.o strcoll.o \
strxfrm.o strstr.o strspn.o strcspn.o strpbrk.o strtok.o \
Received on Thu Mar 02 2017 - 13:29:09 CET
This archive was generated by hypermail 2.3.0
: Thu Mar 02 2017 - 13:36:23 CET