scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit 4fff993de65740c25530b94a9f75d7b951f13f73
parent be3ad922e530e074258cb5da7a3259efd6c04b96
Author: Quentin Rameau <quinq@fifth.space>
Date:   Thu,  2 Mar 2017 13:24:40 +0100

Makefile: add a libc target

Diffstat:
MMakefile | 7++++++-
Mlibc/src/Makefile | 2++
2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile @@ -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); \ @@ -25,6 +25,11 @@ $(ARCHS): ln -f cc1/cc1-$@ bin/ ln -f cc2/cc2-$@ 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 @@ -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 \