scc

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

commit d0e5ce814f91b319f4b7bad9f8b571d148c8ebda
parent 1f08b88131aeb2829ca3b726416420e485a5f297
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri,  8 Feb 2019 07:49:15 +0000

Fix dependencies

Diffstat:
Mscripts/rules.mk | 2+-
Msrc/cmd/deps.mk | 159+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Msrc/libmach/Makefile | 6++++++
Msrc/libmach/coff32/Makefile | 4++++
Asrc/libmach/coff32/deps.mk | 22++++++++++++++++++++++
Asrc/libmach/deps.mk | 75+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6 files changed, 267 insertions(+), 1 deletion(-)

diff --git a/scripts/rules.mk b/scripts/rules.mk @@ -65,7 +65,7 @@ all: dep: inc-dep: FORCE - $(SCRIPTDIR)/mkdep + mkdep clean: clean-helper diff --git a/src/cmd/deps.mk b/src/cmd/deps.mk @@ -4,13 +4,172 @@ addr2line.o: $(INCDIR)/scc/scc/mach.h ar.o: $(INCDIR)/scc/scc/ar.h ar.o: $(INCDIR)/scc/scc/arg.h ar.o: sys.h +as/target/x80/ins.o: $(INCDIR)/scc/scc/scc.h +as/target/x80/ins.o: as/target/x80/../../as.h +as/target/x80/ins.o: as/target/x80/proc.h +as/target/x80/z80.o: $(INCDIR)/scc/scc/scc.h +as/target/x80/z80.o: as/target/x80/../../as.h +as/target/x80/z80.o: as/target/x80/../x80/proc.h +as/target/x80/z80tbl.o: $(INCDIR)/scc/scc/scc.h +as/target/x80/z80tbl.o: as/target/x80/../../as.h +as/target/x80/z80tbl.o: as/target/x80/../x80/proc.h +as/target/x86/amd64.o: $(INCDIR)/scc/scc/scc.h +as/target/x86/amd64.o: as/target/x86/../../as.h +as/target/x86/amd64tbl.o: $(INCDIR)/scc/scc/scc.h +as/target/x86/amd64tbl.o: as/target/x86/../../as.h +as/target/x86/amd64tbl.o: as/target/x86/../x86/proc.h +as/target/x86/i286.o: $(INCDIR)/scc/scc/scc.h +as/target/x86/i286.o: as/target/x86/../../as.h +as/target/x86/i286.o: as/target/x86/../x86/proc.h +as/target/x86/i286tbl.o: $(INCDIR)/scc/scc/scc.h +as/target/x86/i286tbl.o: as/target/x86/../../as.h +as/target/x86/i286tbl.o: as/target/x86/../x86/proc.h +as/target/x86/i386.o: $(INCDIR)/scc/scc/scc.h +as/target/x86/i386.o: as/target/x86/../../as.h +as/target/x86/i386.o: as/target/x86/../x86/proc.h +as/target/x86/i386tbl.o: $(INCDIR)/scc/scc/scc.h +as/target/x86/i386tbl.o: as/target/x86/../../as.h +as/target/x86/i386tbl.o: as/target/x86/../x86/proc.h +as/target/x86/ins.o: $(INCDIR)/scc/scc/scc.h +as/target/x86/ins.o: as/target/x86/../../as.h +as/target/x86/ins.o: as/target/x86/proc.h +asexpr.o: $(INCDIR)/scc/scc/scc.h +asexpr.o: asas.h +asins.o: $(INCDIR)/scc/scc/scc.h +asins.o: asas.h +asmain.o: $(INCDIR)/scc/scc/arg.h +asmain.o: $(INCDIR)/scc/scc/scc.h +asmain.o: asas.h +asparser.o: $(INCDIR)/scc/scc/cstd.h +asparser.o: $(INCDIR)/scc/scc/scc.h +asparser.o: asas.h +assymbol.o: $(INCDIR)/scc/scc/scc.h +assymbol.o: asas.h +ldmain.o: $(INCDIR)/scc/scc/ar.h +ldmain.o: $(INCDIR)/scc/scc/scc.h +ldmain.o: $(INCDIR)/scc/scc/syslibs.h +ldmain.o: ldld.h +ldobj.o: $(INCDIR)/scc/scc/scc.h +ldobj.o: ldld.h nm.o: $(INCDIR)/scc/scc/arg.h nm.o: $(INCDIR)/scc/scc/mach.h objdump.o: $(INCDIR)/scc/scc/arg.h objdump.o: $(INCDIR)/scc/scc/mach.h posix.o: sys.h +ranlib.o: $(INCDIR)/scc/scc/ar.h ranlib.o: $(INCDIR)/scc/scc/arg.h ranlib.o: $(INCDIR)/scc/scc/mach.h +ranlib.o: sys.h +scc/cc1/builtin.o: $(INCDIR)/scc/scc/scc.h +scc/cc1/builtin.o: scc/cc1/cc1.h +scc/cc1/code.o: $(INCDIR)/scc/scc/scc.h +scc/cc1/code.o: scc/cc1/cc1.h +scc/cc1/cpp.o: $(INCDIR)/scc/scc/cstd.h +scc/cc1/cpp.o: $(INCDIR)/scc/scc/scc.h +scc/cc1/cpp.o: scc/cc1/cc1.h +scc/cc1/decl.o: $(INCDIR)/scc/scc/cstd.h +scc/cc1/decl.o: $(INCDIR)/scc/scc/scc.h +scc/cc1/decl.o: scc/cc1/cc1.h +scc/cc1/error.o: $(INCDIR)/scc/scc/scc.h +scc/cc1/error.o: scc/cc1/cc1.h +scc/cc1/expr.o: $(INCDIR)/scc/scc/cstd.h +scc/cc1/expr.o: $(INCDIR)/scc/scc/scc.h +scc/cc1/expr.o: scc/cc1/cc1.h +scc/cc1/fold.o: $(INCDIR)/scc/scc/scc.h +scc/cc1/fold.o: scc/cc1/cc1.h +scc/cc1/init.o: $(INCDIR)/scc/scc/cstd.h +scc/cc1/init.o: $(INCDIR)/scc/scc/scc.h +scc/cc1/init.o: scc/cc1/cc1.h +scc/cc1/lex.o: $(INCDIR)/scc/scc/cstd.h +scc/cc1/lex.o: $(INCDIR)/scc/scc/scc.h +scc/cc1/lex.o: scc/cc1/cc1.h +scc/cc1/main.o: $(INCDIR)/scc/scc/arg.h +scc/cc1/main.o: $(INCDIR)/scc/scc/scc.h +scc/cc1/main.o: scc/cc1/cc1.h +scc/cc1/stmt.o: $(INCDIR)/scc/scc/cstd.h +scc/cc1/stmt.o: $(INCDIR)/scc/scc/scc.h +scc/cc1/stmt.o: scc/cc1/cc1.h +scc/cc1/symbol.o: $(INCDIR)/scc/scc/cstd.h +scc/cc1/symbol.o: $(INCDIR)/scc/scc/scc.h +scc/cc1/symbol.o: scc/cc1/cc1.h +scc/cc1/target/amd64-sysv/arch.o: $(INCDIR)/scc/scc/scc.h +scc/cc1/target/amd64-sysv/arch.o: scc/cc1/target/amd64-sysv/../../cc1.h +scc/cc1/target/arm64-sysv/arch.o: $(INCDIR)/scc/scc/scc.h +scc/cc1/target/arm64-sysv/arch.o: scc/cc1/target/arm64-sysv/../../cc1.h +scc/cc1/target/i386-sysv/arch.o: $(INCDIR)/scc/scc/scc.h +scc/cc1/target/i386-sysv/arch.o: scc/cc1/target/i386-sysv/../../cc1.h +scc/cc1/target/z80-scc/arch.o: $(INCDIR)/scc/scc/scc.h +scc/cc1/target/z80-scc/arch.o: scc/cc1/target/z80-scc/../../cc1.h +scc/cc1/types.o: $(INCDIR)/scc/scc/cstd.h +scc/cc1/types.o: $(INCDIR)/scc/scc/scc.h +scc/cc1/types.o: scc/cc1/cc1.h +scc/cc2/code.o: $(INCDIR)/scc/scc/scc.h +scc/cc2/code.o: scc/cc2/cc2.h +scc/cc2/main.o: $(INCDIR)/scc/scc/arg.h +scc/cc2/main.o: $(INCDIR)/scc/scc/scc.h +scc/cc2/main.o: scc/cc2/cc2.h +scc/cc2/main.o: scc/cc2/error.h +scc/cc2/node.o: $(INCDIR)/scc/scc/scc.h +scc/cc2/node.o: scc/cc2/cc2.h +scc/cc2/optm.o: $(INCDIR)/scc/scc/scc.h +scc/cc2/optm.o: scc/cc2/cc2.h +scc/cc2/parser.o: $(INCDIR)/scc/scc/cstd.h +scc/cc2/parser.o: $(INCDIR)/scc/scc/scc.h +scc/cc2/parser.o: scc/cc2/cc2.h +scc/cc2/peep.o: $(INCDIR)/scc/scc/scc.h +scc/cc2/peep.o: scc/cc2/cc2.h +scc/cc2/symbol.o: $(INCDIR)/scc/scc/scc.h +scc/cc2/symbol.o: scc/cc2/cc2.h +scc/cc2/target/amd64-sysv/cgen.o: $(INCDIR)/scc/scc/scc.h +scc/cc2/target/amd64-sysv/cgen.o: scc/cc2/target/amd64-sysv/../../cc2.h +scc/cc2/target/amd64-sysv/cgen.o: scc/cc2/target/amd64-sysv/arch.h +scc/cc2/target/amd64-sysv/code.o: $(INCDIR)/scc/scc/cstd.h +scc/cc2/target/amd64-sysv/code.o: $(INCDIR)/scc/scc/scc.h +scc/cc2/target/amd64-sysv/code.o: scc/cc2/target/amd64-sysv/../../cc2.h +scc/cc2/target/amd64-sysv/code.o: scc/cc2/target/amd64-sysv/arch.h +scc/cc2/target/amd64-sysv/optm.o: $(INCDIR)/scc/scc/scc.h +scc/cc2/target/amd64-sysv/optm.o: scc/cc2/target/amd64-sysv/../../cc2.h +scc/cc2/target/amd64-sysv/types.o: $(INCDIR)/scc/scc/scc.h +scc/cc2/target/amd64-sysv/types.o: scc/cc2/target/amd64-sysv/../../cc2.h +scc/cc2/target/i386-sysv/cgen.o: $(INCDIR)/scc/scc/scc.h +scc/cc2/target/i386-sysv/cgen.o: scc/cc2/target/i386-sysv/../../cc2.h +scc/cc2/target/i386-sysv/cgen.o: scc/cc2/target/i386-sysv/arch.h +scc/cc2/target/i386-sysv/code.o: $(INCDIR)/scc/scc/cstd.h +scc/cc2/target/i386-sysv/code.o: $(INCDIR)/scc/scc/scc.h +scc/cc2/target/i386-sysv/code.o: scc/cc2/target/i386-sysv/../../cc2.h +scc/cc2/target/i386-sysv/code.o: scc/cc2/target/i386-sysv/arch.h +scc/cc2/target/i386-sysv/optm.o: $(INCDIR)/scc/scc/scc.h +scc/cc2/target/i386-sysv/optm.o: scc/cc2/target/i386-sysv/../../cc2.h +scc/cc2/target/i386-sysv/types.o: $(INCDIR)/scc/scc/scc.h +scc/cc2/target/i386-sysv/types.o: scc/cc2/target/i386-sysv/../../cc2.h +scc/cc2/target/qbe/cgen.o: $(INCDIR)/scc/scc/cstd.h +scc/cc2/target/qbe/cgen.o: $(INCDIR)/scc/scc/scc.h +scc/cc2/target/qbe/cgen.o: scc/cc2/target/qbe/../../cc2.h +scc/cc2/target/qbe/cgen.o: scc/cc2/target/qbe/arch.h +scc/cc2/target/qbe/code.o: $(INCDIR)/scc/scc/cstd.h +scc/cc2/target/qbe/code.o: $(INCDIR)/scc/scc/scc.h +scc/cc2/target/qbe/code.o: scc/cc2/target/qbe/../../cc2.h +scc/cc2/target/qbe/code.o: scc/cc2/target/qbe/arch.h +scc/cc2/target/qbe/optm.o: $(INCDIR)/scc/scc/scc.h +scc/cc2/target/qbe/optm.o: scc/cc2/target/qbe/../../cc2.h +scc/cc2/target/z80-scc/cgen.o: $(INCDIR)/scc/scc/scc.h +scc/cc2/target/z80-scc/cgen.o: scc/cc2/target/z80-scc/../../cc2.h +scc/cc2/target/z80-scc/cgen.o: scc/cc2/target/z80-scc/arch.h +scc/cc2/target/z80-scc/code.o: $(INCDIR)/scc/scc/cstd.h +scc/cc2/target/z80-scc/code.o: $(INCDIR)/scc/scc/scc.h +scc/cc2/target/z80-scc/code.o: scc/cc2/target/z80-scc/../../cc2.h +scc/cc2/target/z80-scc/code.o: scc/cc2/target/z80-scc/arch.h +scc/cc2/target/z80-scc/optm.o: $(INCDIR)/scc/scc/scc.h +scc/cc2/target/z80-scc/optm.o: scc/cc2/target/z80-scc/../../cc2.h +scc/cc2/target/z80-scc/types.o: $(INCDIR)/scc/scc/scc.h +scc/cc2/target/z80-scc/types.o: scc/cc2/target/z80-scc/../../cc2.h +scc/posix/scc.o: $(INCDIR)/scc/scc/arg.h +scc/posix/scc.o: $(INCDIR)/scc/scc/ldflags.h +scc/posix/scc.o: $(INCDIR)/scc/scc/scc.h +scc/posix/scc.o: $(INCDIR)/scc/scc/syscrts.h +scc/posix/scc.o: $(INCDIR)/scc/scc/sysincludes.h +scc/posix/scc.o: $(INCDIR)/scc/scc/syslibs.h +scc/posix/scc.o: scc/posix/config.h size.o: $(INCDIR)/scc/scc/arg.h size.o: $(INCDIR)/scc/scc/mach.h strip.o: $(INCDIR)/scc/scc/arg.h diff --git a/src/libmach/Makefile b/src/libmach/Makefile @@ -56,6 +56,12 @@ $(TBLS): formats.lst objlst.mk: $(OBJS) $(DIRS) mklst $@ +dep: inc-dep + $(FORALL) + clean: $(FORALL) rm -f $(TBLS) objlst.mk + + +include deps.mk diff --git a/src/libmach/coff32/Makefile b/src/libmach/coff32/Makefile @@ -11,3 +11,7 @@ OBJS = coff32del.o \ coff32write.o \ all: $(OBJS) + +dep: inc-dep + +include deps.mk diff --git a/src/libmach/coff32/deps.mk b/src/libmach/coff32/deps.mk @@ -0,0 +1,22 @@ +#deps +coff32del.o: $(INCDIR)/scc/scc/mach.h +coff32del.o: ../libmach.h +coff32del.o: coff32.h +coff32index.o: $(INCDIR)/scc/scc/mach.h +coff32index.o: ../libmach.h +coff32index.o: coff32.h +coff32new.o: $(INCDIR)/scc/scc/mach.h +coff32new.o: ../libmach.h +coff32new.o: coff32.h +coff32probe.o: $(INCDIR)/scc/scc/mach.h +coff32probe.o: ../libmach.h +coff32probe.o: coff32.h +coff32read.o: $(INCDIR)/scc/scc/mach.h +coff32read.o: ../libmach.h +coff32read.o: coff32.h +coff32strip.o: $(INCDIR)/scc/scc/mach.h +coff32strip.o: ../libmach.h +coff32strip.o: coff32.h +coff32write.o: $(INCDIR)/scc/scc/mach.h +coff32write.o: ../libmach.h +coff32write.o: coff32.h diff --git a/src/libmach/deps.mk b/src/libmach/deps.mk @@ -0,0 +1,75 @@ +#deps +addr2line.o: $(INCDIR)/scc/scc/mach.h +archive.o: $(INCDIR)/scc/scc/ar.h +archive.o: $(INCDIR)/scc/scc/mach.h +archive.o: libmach.h +arindex.o: $(INCDIR)/scc/scc/mach.h +arindex.o: libmach.h +armember.o: $(INCDIR)/scc/scc/ar.h +armember.o: $(INCDIR)/scc/scc/mach.h +artraverse.o: $(INCDIR)/scc/scc/ar.h +artraverse.o: $(INCDIR)/scc/scc/mach.h +coff32/coff32del.o: $(INCDIR)/scc/scc/mach.h +coff32/coff32del.o: coff32/../libmach.h +coff32/coff32del.o: coff32/coff32.h +coff32/coff32index.o: $(INCDIR)/scc/scc/mach.h +coff32/coff32index.o: coff32/../libmach.h +coff32/coff32index.o: coff32/coff32.h +coff32/coff32new.o: $(INCDIR)/scc/scc/mach.h +coff32/coff32new.o: coff32/../libmach.h +coff32/coff32new.o: coff32/coff32.h +coff32/coff32probe.o: $(INCDIR)/scc/scc/mach.h +coff32/coff32probe.o: coff32/../libmach.h +coff32/coff32probe.o: coff32/coff32.h +coff32/coff32read.o: $(INCDIR)/scc/scc/mach.h +coff32/coff32read.o: coff32/../libmach.h +coff32/coff32read.o: coff32/coff32.h +coff32/coff32strip.o: $(INCDIR)/scc/scc/mach.h +coff32/coff32strip.o: coff32/../libmach.h +coff32/coff32strip.o: coff32/coff32.h +coff32/coff32write.o: $(INCDIR)/scc/scc/mach.h +coff32/coff32write.o: coff32/../libmach.h +coff32/coff32write.o: coff32/coff32.h +coffelf32.o: $(INCDIR)/scc/scc/mach.h +coffelf32.o: libmach.h +del.o: $(INCDIR)/scc/scc/mach.h +del.o: libmach.h +index.o: $(INCDIR)/scc/scc/mach.h +index.o: libmach.h +new.o: $(INCDIR)/scc/scc/mach.h +new.o: libmach.h +objdel.o: $(INCDIR)/scc/scc/mach.h +objdel.o: libmach.h +objfree.o: $(INCDIR)/scc/scc/mach.h +objfree.o: libmach.h +objlookup.o: $(INCDIR)/scc/scc/mach.h +objnew.o: $(INCDIR)/scc/scc/mach.h +objnew.o: libmach.h +objpos.o: $(INCDIR)/scc/scc/mach.h +objpos.o: libmach.h +objread.o: $(INCDIR)/scc/scc/mach.h +objread.o: libmach.h +objreset.o: $(INCDIR)/scc/scc/mach.h +objreset.o: libmach.h +objsize.o: $(INCDIR)/scc/scc/mach.h +objsize.o: libmach.h +objstrip.o: $(INCDIR)/scc/scc/mach.h +objstrip.o: libmach.h +objtraverse.o: $(INCDIR)/scc/scc/mach.h +objtraverse.o: libmach.h +objtype.o: $(INCDIR)/scc/scc/mach.h +objtype.o: libmach.h +objwrite.o: $(INCDIR)/scc/scc/mach.h +objwrite.o: libmach.h +pack.o: $(INCDIR)/scc/scc/mach.h +pack.o: libmach.h +probe.o: $(INCDIR)/scc/scc/mach.h +probe.o: libmach.h +read.o: $(INCDIR)/scc/scc/mach.h +read.o: libmach.h +strip.o: $(INCDIR)/scc/scc/mach.h +strip.o: libmach.h +unpack.o: $(INCDIR)/scc/scc/mach.h +unpack.o: libmach.h +write.o: $(INCDIR)/scc/scc/mach.h +write.o: libmach.h