[cc65] Feature request for cc65 preprocessor

Date view Thread view Subject view

From: David Lloyd (dmlloyd_at_atari-central.com)
Date: 2000-08-29 17:09:35


There's a cool feature that GCC has, that would be neat in cc65:  The
ability to generate makefile-style dependency information.  Here's the
description from the cpp manpage:

       -M [-MG]
           Instead of outputting the result of preprocessing,
           output a rule suitable for make describing the
           dependencies of the main source file.  The
           preprocessor outputs one make rule containing the
           object file name for that source file, a colon, and
           the names of all the included files.  If there are
           many included files then the rule is split into
           several lines using \-newline.

           -MG says to treat missing header files as generated
           files and assume they live in the same directory as
           the source file.  It must be specified in addition to
           -M.

           This feature is used in automatic updating of
           makefiles.

       -MM [-MG]
           Like -M but mention only the files included with
           #include "file".  System header files included with
           #include <file> are omitted.

       -MD file
           Like -M but the dependency information is written to
           file.  This is in addition to compiling the file as
           specified----MD does not inhibit ordinary compilation
           the way -M does.

           When invoking gcc, do not specify the file argument.
           gcc will create file names made by replacing ".c" with
           ".d" at the end of the input file names.

           In Mach, you can use the utility md to merge multiple
           dependency files into a single dependency file
           suitable for using with the make command.

       -MMD file
           Like -MD except mention only user header files, not
           system header files.

I think this feature would be excellent... anyone else?  For now I guess
I will use GNU cpp for this.

- D
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2001-12-14 22:05:36 CET