shithub: scc

Download patch

ref: 0712602f03f32a5d168c69f1f071085a42939652
parent: 6ed60e4e77c4c59fdd0aa27fb6b9af2be9658faf
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Mon Aug 20 13:16:58 EDT 2018

Move rootdir/lib to rootdir/lib/scc

It is not desirable to install the scc libraries with the system libraries,
so having a dedicated directory is better.

diff: cannot open a/rootdir/lib/amd64-sysv-linux//null: file does not exist: 'a/rootdir/lib/amd64-sysv-linux//null' diff: cannot open a/rootdir/lib/amd64-sysv-openbsd//null: file does not exist: 'a/rootdir/lib/amd64-sysv-openbsd//null' diff: cannot open a/rootdir/lib/i386-sysv-linux//null: file does not exist: 'a/rootdir/lib/i386-sysv-linux//null' diff: cannot open a/rootdir/lib/i386-sysv-openbsd//null: file does not exist: 'a/rootdir/lib/i386-sysv-openbsd//null' diff: cannot open b/rootdir/lib/scc/amd64-sysv-linux//null: file does not exist: 'b/rootdir/lib/scc/amd64-sysv-linux//null' diff: cannot open b/rootdir/lib/scc/amd64-sysv-openbsd//null: file does not exist: 'b/rootdir/lib/scc/amd64-sysv-openbsd//null' diff: cannot open b/rootdir/lib/scc/i386-sysv-linux//null: file does not exist: 'b/rootdir/lib/scc/i386-sysv-linux//null' diff: cannot open b/rootdir/lib/scc/i386-sysv-openbsd//null: file does not exist: 'b/rootdir/lib/scc/i386-sysv-openbsd//null' diff: cannot open b/rootdir/lib/scc/z80-scc-none//null: file does not exist: 'b/rootdir/lib/scc/z80-scc-none//null' diff: cannot open b/rootdir/lib/scc//null: file does not exist: 'b/rootdir/lib/scc//null' diff: cannot open a/rootdir/lib/z80-scc-none//null: file does not exist: 'a/rootdir/lib/z80-scc-none//null'
--- a/.gitignore
+++ b/.gitignore
@@ -1,18 +1,15 @@
 *.o
 *.a
-bin/
-cc1/cc1-*
 rootdir/libexec/scc/cc1-*
-test.log
-cc2/cc2-*
 rootdir/libexec/scc/cc2-*
-cc2/error.h
-as/as-*
 rootdir/libexec/scc/as-*
-driver/posix/scc
+rootdir/bin/ld
 rootdir/bin/scc
 rootdir/bin/scpp
-makefile
+rootdir/bin/ar
+rootdir/bin/nm
+test.log
+cc2/error.h
 instbl.c
 config.mk
 inc/ldflags.h
@@ -20,14 +17,6 @@
 inc/syslibs.h
 inc/syscrts.h
 driver/posix/config.h
-driver/posix/cpp
-ar/ar-*
-rootdir/bin/ar
-nm/nm
-rootdir/bin/nm
-objdump/objdump
 as/target/*/*tbl.c
 *.out
-ld/ld
-rootdir/bin/ld
 config
--- a/rootdir/lib/amd64-sysv-linux/README
+++ /dev/null
@@ -1,1 +1,0 @@
-This is a placeholder for VCS
--- a/rootdir/lib/amd64-sysv-openbsd/README
+++ /dev/null
@@ -1,1 +1,0 @@
-This is a placeholder for VCS
--- a/rootdir/lib/i386-sysv-linux/README
+++ /dev/null
@@ -1,1 +1,0 @@
-This is a placeholder for VCS
--- a/rootdir/lib/i386-sysv-openbsd/README
+++ /dev/null
@@ -1,1 +1,0 @@
-This is a placeholder for VCS
--- /dev/null
+++ b/rootdir/lib/scc/amd64-sysv-linux/README
@@ -1,0 +1,1 @@
+This is a placeholder for VCS
--- /dev/null
+++ b/rootdir/lib/scc/amd64-sysv-openbsd/README
@@ -1,0 +1,1 @@
+This is a placeholder for VCS
--- /dev/null
+++ b/rootdir/lib/scc/i386-sysv-linux/README
@@ -1,0 +1,1 @@
+This is a placeholder for VCS
--- /dev/null
+++ b/rootdir/lib/scc/i386-sysv-openbsd/README
@@ -1,0 +1,1 @@
+This is a placeholder for VCS
--- /dev/null
+++ b/rootdir/lib/scc/z80-scc-none/README
@@ -1,0 +1,1 @@
+This is a placeholder for VCS
--- a/rootdir/lib/z80-scc-none/README
+++ /dev/null
@@ -1,1 +1,0 @@
-This is a placeholder for VCS
--- a/rules.mk
+++ b/rules.mk
@@ -2,7 +2,7 @@
 
 BINDIR     = $(PROJECTDIR)/rootdir/bin
 INCDIR     = $(PROJECTDIR)/inc
-LIBDIR     = $(PROJECTDIR)/rootdir/lib
+LIBDIR     = $(PROJECTDIR)/rootdir/lib/scc
 LIBEXEC    = $(PROJECTDIR)/rootdir/libexec/scc
 LIBSCC     = $(PROJECTDIR)/lib/scc
 LIBCOFF32  = $(PROJECTDIR)/lib/coff32