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
This commit is contained in:
@@ -43,6 +43,24 @@
|
||||
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Data */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
|
||||
/* An enum that describes different types of input files. The members are
|
||||
* choosen so that it is possible to combine them to bitsets
|
||||
*/
|
||||
typedef enum {
|
||||
FT_MAIN = 0x01, /* Main input file */
|
||||
FT_INCLUDE = 0x02, /* Normal include file */
|
||||
FT_BINARY = 0x04, /* Binary include file */
|
||||
FT_DBGINFO = 0x08, /* File from debug info */
|
||||
} FileType;
|
||||
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Code */
|
||||
/*****************************************************************************/
|
||||
@@ -55,7 +73,8 @@ const StrBuf* GetFileName (unsigned Name);
|
||||
unsigned GetFileIndex (const StrBuf* Name);
|
||||
/* Return the file index for the given file name. */
|
||||
|
||||
unsigned AddFile (const StrBuf* Name, unsigned long Size, unsigned long MTime);
|
||||
unsigned AddFile (const StrBuf* Name, FileType Type,
|
||||
unsigned long Size, unsigned long MTime);
|
||||
/* Add a new file to the list of input files. Return the index of the file in
|
||||
* the table.
|
||||
*/
|
||||
@@ -63,6 +82,8 @@ unsigned AddFile (const StrBuf* Name, unsigned long Size, unsigned long MTime);
|
||||
void WriteFiles (void);
|
||||
/* Write the list of input files to the object file */
|
||||
|
||||
void CreateDependencies (void);
|
||||
/* Create dependency files requested by the user */
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user