This commit makes it possible to successfully run "make all" against ytools'
again, with TARGET_TUPLE set to i686-ms-w64-mingw. Lots of minor and major
tweaks here and there.
The biggest diff is a move of the architecture-related definitions into
platform.mk. The are needed pretty early on, so that seems reasonable.
Making this work again is part of the larger effort to support cross
buildchains in a more concise way, i.e. without so many if ($(TARGET),mingw))
all over the place. TARGET's relevance should dwindle, until it's finally taken
over by the TARGET_XXX variables extracted from TARGET_TUPLE or TARGET_TRIPLET.
Signed-off-by: Jan Lindemann <jan@janware.com>
The attempt to have local include directory with HDRDIR_SCOPE_SUFFIX
pointing to the working directory failed the last time around. This
commit tries to fix that.
Signed-off-by: Jan Lindemann <jan@janware.com>
Don't explicitly link to header dir scope prefix anylonger, rely on
standard procedure to mkdir in rules.mk instead.
Signed-off-by: Jan Lindemann <jan@janware.com>
Use target all.link only aftr headers have been copied, to have build
directory searched for header files first.
Signed-off-by: Jan Lindemann <jan@jannet.de>
Support the PROJ_H variable, which is undefined by default.
PROJ_H is +=-added to SRC_H, thus solving failure to produce .dep.mk and copying
the stuff to the include directory.
I suppose this would be most cleanly handled in include.mk.