]> git.llucax.com Git - software/makeit.git/commit
Improve include directory handling
authorLeandro Lucarella <llucarella@integratech.com.ar>
Thu, 17 Sep 2009 17:07:25 +0000 (14:07 -0300)
committerLeandro Lucarella <llucarella@integratech.com.ar>
Fri, 18 Sep 2009 03:00:36 +0000 (00:00 -0300)
commit356b4610c9f48d07ce798e8b1fca229e08111f8f
treecf7c7faee01f16b1658e8b79ff9be8775005ebc8
parentd29f1584b3055d7d7f17cfe380157e494ff94361
Improve include directory handling

Remove the $J variable, it was useless for now. Rename $I to the more
verbose $(INCLUDE_DIR) since it won't be used very often by the user
(makefile writer nor makefile user).

The include directory symlink is now handled per-project, allowing the
inclusion of sub-project headers more naturally (without requiring to
prefix the parent project name and allowing the sub-project to keep its
original include directory name). The $P variable is not needed anymore
because of this.

The makefiles functions changed a little to allow per-project include
directory making Lib.mak not include any other files; because of that the
"all" rule now uses the "secondary expansion" to calculate the
prerequisites (the $(all) variable has not been populated yet when the
"all" rule is defined).

The Toplevel.mak files are now guarded to avoid multiple inclusions. This
should be not a problem since now the Toplevel.mak should not be changed,
is like an extension to Lib.mak that the user shouldn't mdify unless
he is hacking the build system.

The subproj is now renamed to otherproj to illustrate how the sub-directory
where it is stored doesn't have to match the name of the sub-project.

The pre-compiled headers feature is a little broken for now because the
system includes detection is too weak to differentiate things real system
includes from things included from $(INCLUDE_DIR).
Build.mak
Lib.mak
Toplevel.mak
lib2/Build.mak
lib2/lib2.cpp
subproj/Build.mak
subproj/Config.mak
subproj/Toplevel.mak
subproj/otherproj.c [new file with mode: 0644]
subproj/otherproj.h [moved from subproj/subproj.h with 76% similarity]
subproj/subproj.c [deleted file]