Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-patch] Managed make, supplemental makefiles

The patch adds some -include statements to the top-level makefile.  The
intent is the user can provide these files to cusotmize the makefiles
behavior.

Makefile.init - included at start of file
Makefile.defs - included after macro definitions, but before target
definitions Makefile.targets - included after target definitions (i.e.
at end of file)

We've found this is an easy way to allow customers to customize managed
make, without getting into internal details.  They can add extra
dependencies to files, or even define targets for otherwise unknown
types (such as .idl, etc.).  They can also specify flags in the "Other
flags" field in the UI like so: $(VERBOSE), and then put VERBOSE = -Wall
in Makefile.init, for example.

Since these files are included using -include, if the user does not
provide them, the makefile works as normal.

This patch also adds a "auto-generated file do not edit" banner to the
top of all generated makefiles.  Minimizes confusion, as people
sometimes try to edit these files and are confounded by the fact that
their changes keep disappearing.

  Jeremiah Lott
  TimeSys Corporation

Attachment: suppl-makefiles.patch
Description: suppl-makefiles.patch


Back to the top