GNU Make and Sun Make in Solaris-to-Linux porting

GNU Make and Sun Make in Solaris-to-Linux porting

What is the role of GNU Make and Sun Make in a Solaris-to-Linux porting situation?

    Requires Free Membership to View

    When you register, my team of editors will also send you resources covering Linux administration and management; integration and interoperability between Linux, Windows and Unix; securing Linux and mixed-platform environments; and migrating to Linux.

    Margie Semilof, Editorial Director

    By submitting your registration information to SearchEnterpriseLinux.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchEnterpriseLinux.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

Most basic features are common between various versions of make. Some of the advanced functions differ. When porting an application from Solaris to Linux, it is likely that there will be a need to modify the makefiles.

The help information on GNU Make (access this using the command "info make")on your Linux host, includes sections on Features and Missing, that provide a detailed list of features unique to GNU make and features not supported in GNU make.

To make sure that the same makefile can be used with Linux and Solaris it is a good idea to follow one of the following methods:

  • When making changes to makefile only use features common between both versions of make. This can be verified by testing the makefile on both platforms after the porting changes. This will make porting the makefile to additional platforms simpler.
  • Switch to the GNU Make on both platforms.

Of course you will have to not only test the makefile on both platforms, but build and test the binaries on both platforms to make certain that the new makefile works!

This was first published in February 2005