[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Portable makefiles - portable shell commands?
From: |
Earnie Boyd |
Subject: |
Re: Portable makefiles - portable shell commands? |
Date: |
Sun, 3 Apr 2005 12:03:49 -0400 (EDT) |
User-agent: |
SquirrelMail/1.4.3a |
<quote who="address@hidden">
> Hello all!
>
> I was wondering how GNU make can best be used to build programs on
> multiple platforms (and on each platform possibly with multiple
> compilers), like on Win32 with MSVC and OpenWatcom, on Linux with g++,
> etc.
>
> Part of the answer is of course already discussed in
> http://make.paulandlesley.org/multi-arch.html , and thus my goal is to
> be able to use a single Makefile for all platforms and all compilers
> that I support for my project.
>
> All that I'm still really concerned about is the portability of the
> shell commands that are used e.g. for the "clean" targets: I cannot
> simply get make from
> http://prdownloads.sf.net/mingw/mingw32-make-3.80.0-3.exe?download
> *and* write for example rm -f $(shell find . -name "*~") as a
> shell command for the clean target, can I?
>
> How can this problem best be addressed? sh.exe for Win32? Conditionals
> in the Makefile? ...?
> I'd be very grateful for some advice.
>
If you don't mind an emulation layer, see information about MSYS at the
MinGW link below.
Earnie
--
MinGW - http://www.mingw.org/
Wiki - http://www.mingw.org/MinGWiki/
Bug Report - http://sourceforge.net/tracker/?group_id=2435&atid=102435
Submit Patch - http://sourceforge.net/tracker/?group_id=2435&atid=302435
SF Project - http://sourceforge.net/projects/mingw
Job Listing - http://sf.net/people/viewjob.php?group_id=2435&job_id=21643