mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] mingw-utils


From: Volker Grabsch
Subject: Re: [Mingw-cross-env-list] mingw-utils
Date: Tue, 14 Sep 2010 14:01:59 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

M. Gerhardy <address@hidden> schrieb:
> yes - i've fixed that already in my local version - i don't need them
> cross compiled. but i need reimp and pexport native to convert
> existing lib files.

You may want to install them into $(PREFIX)/bin rather than
$(PREFIX)/$(TARGET)/bin. Or install them into the latter and
symlink to the former. That way, the tools are in your PATH.

However, don't forget to _always_ prefix their file name with
"$(TARGET)-". The $(PREFIX)/bin/ directory should never contain
unprefixed files.

> > That's easily fixed using the appropriate GNU Make macros. It's not the
> > first time that we have to extract some part of a version number. :-)
> 
> and how? do you have an example? i don't want to reinvent the wheel -
> but the SHORT_VERSION macro was the only think i found, and that isn't
> working.

SHORT_VERSION is a separate macro because it is the most
complicated one. The other variants are usually written
directly, i.e. inline. In your case, the variant as found
in freeglut.mk should do the trick:

$(PKG)_SUBDIR   := freeglut-$(word 1,$(subst -, ,$($(PKG)_VERSION)))

I find that quite readable as "the first word after splitting
by the '-' character". That's why I kept it that way and didn't
introduce a helper macro.


Greets,
Volker

-- 
Volker Grabsch
---<<(())>>---
Administrator
NotJustHosting GbR



reply via email to

[Prev in Thread] Current Thread [Next in Thread]