Date: Fri, 17 Sep 2010 12:58:20 +0200 From: Ivan Voras <ivoras@freebsd.org> To: freebsd-questions@freebsd.org Subject: Re: Need bsd make for AIX Message-ID: <i6vhka$u67$1@dough.gmane.org> In-Reply-To: <4C92DD2A.4030609@telenix.org> References: <OF66948B23.1E4881FC-ON652577A0.0026454D-652577A0.00265C0A@tcs.com> <i6ud3a$151$1@dough.gmane.org> <4C92DD2A.4030609@telenix.org>
next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------010709090609070307000601 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 09/17/10 05:14, Chuck Robey wrote: > On 09/16/10 20:34, Ivan Voras wrote: >> On 09/16/10 08:58, srividya.k@tcs.com wrote: >>> Hi >>> Is there any BSD make versions available for AIX platform? >>> We require the make utility of BSD to compile few source programs. >>> >>> Is there any make utility compatible with AIX? Could you please give us >>> the URL where we can get the same? >> >> FreeBSD's make is an integral part of the FreeBSD file system. It is not >> created to be compatible across systems, but it is also not created to >> prevent this kind of porting. > > Wow. I disagree. It's been modified over the years to depend heavily on > a set of libraries that are available nowhere else but FreeBSD. This was The fact that it can be compiled with "gcc '-DDEFSHELLNAME="sh"' -o make *.c" indicates that it in fact doesn't use any libraries except for libc... > done (from what I can see) in the name of elegance ... because the > actual functions ARE available elsewhere, but a bunch of modifications > need to be added, no possible way is it going to compile anywhere else. Oh you're exaggerating, it's not that hard. I've made the attached patch in about 20 minutes, and most of it is including the small "lc.h" ad-hoc Linux compatibility header. I don't claim the patched make will work perfectly but it works for simple cases :) --------------010709090609070307000601 Content-Type: text/plain; name="make-lc.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="make-lc.patch" ZGlmZiAtdSAuLi9tYWtlL2FyY2guYyAuL2FyY2guYwotLS0gLi4vbWFrZS9hcmNoLmMJMjAx MC0wOS0xNyAxMjo1NjowNC4wMDAwMDAwMDAgKzAyMDAKKysrIC4vYXJjaC5jCTIwMTAtMDkt MT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W5jbHVkZSAibGMuaCIKICNpbmNsdWRlIDxzeXMvY2RlZnMuaD4K IF9fRkJTRElEKCIkRnJlZUJTRCQiKTsKIApkaWZmIC11IC4uL21ha2UvdXRpbC5jIC4vdXRp bC5jCi0tLSAuLi9tYWtlL3V0aWwuYwkyMDEwLTA5LTE3IDEyOjU2OjA0LjAwMDAwMDAwMCAr MDIwMAorKysgLi91dGlsLmMJMjAxMC0wOS0xNyAxMjozOTo0NS4wMDAwMDAwMDAgKzAyMDAK QEAgLTM5LDYgKzM5LDcgQEAKICAqIEAoIyltYWluLmMgICAgICA4LjMgKEJlcmtlbGV5KSAz LzE5Lzk0CiAgKi8KIAorI2luY2x1ZGUgImxjLmgiCiAjaW5jbHVkZSA8c3lzL2NkZWZzLmg+ CiBfX0ZCU0RJRCgiJEZyZWVCU0QkIik7CiAKZGlmZiAtdSAuLi9tYWtlL3Zhci5jIC4vdmFy LmMKLS0tIC4uL21ha2UvdmFyLmMJMjAxMC0wOS0xNyAxMjo1NjowNC4wMDAwMDAwMDAgKzAy MDAKKysrIC4vdmFyLmMJMjAxMC0wOS0xNyAxMjozOTo1NC4wMDAwMDAwMDAgKzAyMDAKQEAg LTM5LDYgKzM5LDcgQEAKICAqIEAoIyl2YXIuYwk4LjMgKEJlcmtlbGV5KSAzLzE5Lzk0CiAg Ki8KIAorI2luY2x1ZGUgImxjLmgiCiAjaW5jbHVkZSA8c3lzL2NkZWZzLmg+CiBfX0ZCU0RJ RCgiJEZyZWVCU0QkIik7CiAK --------------010709090609070307000601--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?i6vhka$u67$1>