Michael Soyka wrote:
> A while back, the mingw Makefile was split into two: Make_ming.mak and
> Make_cyg_ming.mak. The first of the two files has definitions for
> CFLAGS and WINRES_FLAGS; Make_cyg_ming.mak is then included and those
> two make variables are reinitialized (just below "end of choices"). In
> effect. their values are lost and consequently not used.
>
> Since Make_cyg_ming.mak is sourced by Make_cyg.mak as well, you don't
> want to put Windows specific values in the common file. I suggest the
> following changes.
>
> In Make_ming.mak, replace the following lines:
>
> ifeq ($(ARCH),x86-64)
> CFLAGS += -m64
> WINDRES_FLAGS += --target=pe-x86-64
> else
> CFLAGS += -m32
> WINDRES_FLAGS += --target=pe-i386
> endif
>
> with these lines:
>
> ifeq ($(ARCH),x86-64)
> CFLAGS_EXTRA += -m64
> WINDRES_FLAGS_EXTRA += --target=pe-x86-64
> else
> CFLAGS_EXTRA += -m32
> WINDRES_FLAGS_EXTRA += --target=pe-i386
> endif
>
> In Make_cyg_ming.mak, insert the following lines just before the "all"
> target:
>
> # Apply any modifications/additions supplied by the caller.
> #
> CFLAGS += $(CFLAGS_EXTRA)
> WINDRES_FLAGS += $(WINDRES_FLAGS_EXTRA)
>
> This allows the calling Makefile, in this case Make_ming.mak, to pass
> whatever it likes to Make_cyg_ming.mak without ever having to change the
> shared file. It also provides a nice way of overriding settings
> specified in the shared Makefile.
Makes sense. Anyone have a problem with this?
--
GUARD #1: What -- a swallow carrying a coconut?
ARTHUR: It could grip it by the husk!
GUARD #1: It's not a question of where he grips it! It's a simple question
of weight ratios! A five ounce bird could not carry a 1 pound
coconut.
The Quest for the Holy Grail (Monty Python)
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.