#26 Automatic Makefile dependencies

open
nobody
None
6
2002-02-27
2002-02-26
No

Submitted by Steven Augart <saugart at users dot
sourceforge dot net>

Apply this in the root Althea source directory with:
patch -p1 <
automatic-Makefile-dependencies-10.patch

This patch solves a problem I encountered during
development
where out-of-date-dependencies led to an inconsistent
build and
a subsequent weird Althea crash.

Details:

*The Makefile automatically generates and updates
dependencies. It
does this by creating a batch of files suffixed .d, one
for each
source file. Got rid of the old and inadequate
hardcoded
dependencies.

*Now use standard names (e.g., CXXFLAGS instead of
CFLAGS) which
cuts out about 2K from the makefile, despite the new
targets.

* The necessary -ftemplate-depth-30 flag is no longer
misleadingly stuck
into DEBUGFLAGS

*Makefile now has configuration options at the start of
the Makefile.

*The Makefile now uses the GNU project's recommended
names for
various directories (e.g., $(bindir) instead of
$(DESTDIR}).
This helps for future compatibility with Autoconf.

Discussion

  • Steven Augart

    Steven Augart - 2002-02-27

    Logged In: YES
    user_id=443064

    I've uploaded a replacement patch file superseding the
    previous one.

     
  • Steven Augart

    Steven Augart - 2002-02-27
    • priority: 5 --> 6
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks