shithub: scc

Download patch

ref: a115b80c0660473027f0a4ae009b7534e8d5f8d8
parent: ac7e083f2c70bde5e5361c8cf2fcf116ddc1b5f1
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Sun Aug 19 06:23:40 EDT 2018

Add rootdir to the repository

It simplifies the Makefiles and avoid problems if The Makefiles are
not executed after top level Makefile.

diff: cannot open b/rootdir/bin//null: file does not exist: 'b/rootdir/bin//null' diff: cannot open b/rootdir/libexec/scc//null: file does not exist: 'b/rootdir/libexec/scc//null' diff: cannot open b/rootdir/libexec//null: file does not exist: 'b/rootdir/libexec//null' diff: cannot open b/rootdir//null: file does not exist: 'b/rootdir//null'
--- a/.gitignore
+++ b/.gitignore
@@ -2,11 +2,16 @@
 *.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/scc
+rootdir/bin/scpp
 makefile
 instbl.c
 config.mk
@@ -16,11 +21,13 @@
 inc/syscrts.h
 driver/posix/config.h
 driver/posix/cpp
-rootdir/
 ar/ar-*
+rootdir/bin/ar
 nm/nm
+rootdir/bin/nm
 objdump/objdump
 as/target/*/*tbl.c
 *.out
 ld/ld
+rootdir/bin/ld
 config
--- a/Makefile
+++ b/Makefile
@@ -9,15 +9,9 @@
 
 all: $(DIRS)
 
-$(DIRS): config $(BINDIR) $(LIBEXEC) FORCE 
+$(DIRS): config FORCE 
 	+@cd $@ && $(MAKE) all
 
-$(BINDIR):
-	mkdir -p $@
-
-$(LIBEXEC):
-	mkdir -p $@
-
 clean dep:
 	$(FORALL)
 
@@ -24,7 +18,6 @@
 distclean: unconfig
 	$(FORALL)
 	rm -f config
-	rm -rf rootdir
 
 tests: all
 	+@cd tests && $(MAKE) -e all
--- /dev/null
+++ b/rootdir/bin/README
@@ -1,0 +1,1 @@
+This is a placeholder for VCS
--- /dev/null
+++ b/rootdir/libexec/scc/README
@@ -1,0 +1,1 @@
+This is a placeholder for VCS