Linux build - cmake generated Makefile vs checked-in Makefile?

19 views
Skip to first unread message

steve.ni...@gmail.com

unread,
Nov 30, 2018, 10:06:06 AM11/30/18
to grpc.io
I'd like to understand the difference between the checked in Makefile and the cmake generated Makefile on Linux.

On Windows, we must use cmake and then do a build with visualstudio. I understand the reasons for using cmake.

On Linux, it seems there are two options. 1) we could use the Makefile checked into the project. 2) we could also use cmake and then build with the generated Makefile. Both seem to work ok although binaries are put into different directories.

What are the build differences when using the checked in Makefile vs the cmake generated Makefile for the linux build?
Why provide both?
Which approach is recommended?

Thanks,

Steve Nikopoulos

Nicolas Noble

unread,
Dec 2, 2018, 5:26:54 PM12/2/18
to steve.ni...@gmail.com, grp...@googlegroups.com
The short answer to "why provide both" could be resumed to "so that people have options". There are pros and cons to each build mechanism that is, and cmake doesn't necessarily fit everyone's needs. There's consumers of the Makefile that is, such as the Ruby or the Python build, which can't call cmake beforehand. That's a byproduct of having to deal with many platforms and languages.

--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+u...@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/78a74796-d045-4a57-813a-ea4f6780e2a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages