scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

commit d6f97eef2009ef0d18f75ee9748581a0d8c0c66f
parent 5869868f726867caa7d35045ea773975eec30430
Author: Quentin Rameau <quinq@fifth.space>
Date:   Mon, 13 Mar 2017 13:01:02 +0100

[libc] Fix amd64 and i386 target name

Diffstat:
Rlibc/src/sys/amd64-linux/Makefile -> libc/src/sys/amd64-sysv-linux/Makefile | 0
Rlibc/src/sys/amd64-linux/syscall.awk -> libc/src/sys/amd64-sysv-linux/syscall.awk | 0
Rlibc/src/sys/amd64-linux/syscall.lst -> libc/src/sys/amd64-sysv-linux/syscall.lst | 0
Alibc/src/sys/i386-sysv-linux/Makefile | 33+++++++++++++++++++++++++++++++++
Alibc/src/sys/i386-sysv-linux/syscall.lst | 0
5 files changed, 33 insertions(+), 0 deletions(-)

diff --git a/libc/src/sys/amd64-linux/Makefile b/libc/src/sys/amd64-sysv-linux/Makefile diff --git a/libc/src/sys/amd64-linux/syscall.awk b/libc/src/sys/amd64-sysv-linux/syscall.awk diff --git a/libc/src/sys/amd64-linux/syscall.lst b/libc/src/sys/amd64-sysv-linux/syscall.lst diff --git a/libc/src/sys/i386-sysv-linux/Makefile b/libc/src/sys/i386-sysv-linux/Makefile @@ -0,0 +1,33 @@ +# See LICENSE file for copyright and license details. +.POSIX: + +include ../../../../config.mk +-include system.mk +-include sysgen.mk + +GENASM = $(GENOBJ:.o=.s) +OBJ = + +all: all.bootstrap +all.start: $(SYSOBJ) + +clean: clean.bootstrap +clean.start: + rm -f *.o $(GENASM) system.mk sysgen.mk + +all.bootstrap clean.bootstrap: system.mk sysgen.mk + $(MAKE) -e $(@:%.bootstrap=%.start) + +system.mk: Makefile syscall.lst + printf '%s ' 'SYSOBJ =' \ + "$$(awk '/^#/{next}{printf "%s.o ", $$2}' syscall.lst)" \ + $(OBJ) \ + > $@ + +sysgen.mk: syscall.lst + printf '%s ' 'GENOBJ =' \ + "$$(awk '/^#/{next}{printf "%s.o ", $$2}' syscall.lst)" \ + > $@ + +$(GENASM): syscall.lst + awk -f syscall.awk < syscall.lst diff --git a/libc/src/sys/i386-sysv-linux/syscall.lst b/libc/src/sys/i386-sysv-linux/syscall.lst