How to check version of Make in FreeBSD

Dan Nelson dnelson at allantgroup.com
Sat Oct 2 06:26:09 UTC 2010


In the last episode (Oct 02), Chetan Shukla said:
> Thanks everyone for the guidance.  I got the VERSION number as 5200408120
> Does it mean it has make-3.81?

No, it means it has make version 5200408120.  make-3.81 is GNU make, while
FreeBSD uses BSD make.  They are mostly compatible, but there are
differences (mainly concerning how you include other makefiles, variable
expansion, and looping within a makefile).  If you need GNU make, you can
install it from the ports tree, and it will be called "gmake".

> Also could someone provide guidance on How to run code(C C++) written for
> Linux/Solaris On FreeBSD machine without changing Makefiles?

If it compiles on Solaris it should compile on FreeBSD, since Solaris
doesn't use GNU make either.  If you're trying to run some open source
software, changes are it's already in the ports tee.  If not, you can 
post your problems here and hopefully someone will help.

http://www.freebsd.org/ports/

-- 
	Dan Nelson
	dnelson at allantgroup.com


More information about the freebsd-questions mailing list