From 3fd52eb57faca1e92368c245ce6dc11bfe92fa5c Mon Sep 17 00:00:00 2001 From: uz Date: Sat, 1 May 2010 11:59:55 +0000 Subject: [PATCH] Added dependency file generation to the assembler. This includes two new options, --create-dep and --create-full-dep. The latter will include files that are passed via debug info to the assembler. git-svn-id: svn://svn.cc65.org/cc65/trunk@4653 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- doc/ca65.sgml | 84 ++++++++++++++++++++------------- src/ca65/dbginfo.c | 10 ++-- src/ca65/filetab.c | 90 +++++++++++++++++++++++++++++++++-- src/ca65/filetab.h | 23 ++++++++- src/ca65/global.c | 10 ++-- src/ca65/global.h | 15 ++++-- src/ca65/main.c | 114 ++++++++++++++++++++++++++++++--------------- src/ca65/pseudo.c | 36 ++++++++++---- src/ca65/scanner.c | 6 ++- 9 files changed, 290 insertions(+), 98 deletions(-) diff --git a/doc/ca65.sgml b/doc/ca65.sgml index b47737068..349a34ea7 100644 --- a/doc/ca65.sgml +++ b/doc/ca65.sgml @@ -87,40 +87,42 @@ The assembler accepts the following options: --------------------------------------------------------------------------- Usage: ca65 [options] file Short options: - -D name[=value] Define a symbol - -I dir Set an include directory search path - -U Mark unresolved symbols as import - -V Print the assembler version - -W n Set warning level n - -g Add debug info to object file - -h Help (this text) - -i Ignore case of symbols - -l Create a listing if assembly was ok - -mm model Set the memory model - -o name Name the output file - -s Enable smart mode - -t sys Set the target system - -v Increase verbosity + -D name[=value] Define a symbol + -I dir Set an include directory search path + -U Mark unresolved symbols as import + -V Print the assembler version + -W n Set warning level n + -g Add debug info to object file + -h Help (this text) + -i Ignore case of symbols + -l Create a listing if assembly was ok + -mm model Set the memory model + -o name Name the output file + -s Enable smart mode + -t sys Set the target system + -v Increase verbosity Long options: - --auto-import Mark unresolved symbols as import - --bin-include-dir dir Set a search path for binary includes - --cpu type Set cpu type - --debug-info Add debug info to object file - --feature name Set an emulation feature - --forget-inc-paths Forget include search paths - --help Help (this text) - --ignore-case Ignore case of symbols - --include-dir dir Set an include directory search path - --listing Create a listing if assembly was ok - --list-bytes n Maximum number of bytes per listing line - --macpack-dir dir Set a macro package directory - --memory-model model Set the memory model - --pagelength n Set the page length for the listing - --smart Enable smart mode - --target sys Set the target system - --verbose Increase verbosity - --version Print the assembler version + --auto-import Mark unresolved symbols as import + --bin-include-dir dir Set a search path for binary includes + --cpu type Set cpu type + --create-dep name Create a make dependency file + --create-full-dep name Create a full make dependency file + --debug-info Add debug info to object file + --feature name Set an emulation feature + --forget-inc-paths Forget include search paths + --help Help (this text) + --ignore-case Ignore case of symbols + --include-dir dir Set an include directory search path + --listing Create a listing if assembly was ok + --list-bytes n Maximum number of bytes per listing line + --macpack-dir dir Set a macro package directory + --memory-model model Set the memory model + --pagelength n Set the page length for the listing + --smart Enable smart mode + --target sys Set the target system + --verbose Increase verbosity + --version Print the assembler version --------------------------------------------------------------------------- @@ -153,6 +155,24 @@ Here is a description of all the command line options: instruction set is "proprietary and confidential". +