Geo
Geo

Reputation: 96767

Building a C/C++ project without using Makefiles

I have a project containing C/C++ files. I'd like to build it without using make. What are my options? I'd like cross platform solutions if possible.

Upvotes: 2

Views: 2134

Answers (6)

Bo Persson
Bo Persson

Reputation: 92211

How are you editing you code? Can that system also build it for you?

Visual Studio, Eclipse, XCode, KDevelop? :-)

Upvotes: 1

mkaes
mkaes

Reputation: 14119

I already used WAF in some of my projects and it worked out quite well.

If you are familiar with python...

Upvotes: 2

MSalters
MSalters

Reputation: 179779

Since you're going to use Boost anyways (right?) Boost.Jam might be an option.

Upvotes: 2

Greg Hewgill
Greg Hewgill

Reputation: 992707

I've used SCons and it is very good.

SCons is an Open Source software construction tool—that is, a next-generation build tool. Think of SCons as an improved, cross-platform substitute for the classic Make utility with integrated functionality similar to autoconf/automake and compiler caches such as ccache. In short, SCons is an easier, more reliable and faster way to build software.

I've also looked at cmake but have not seriously used it.

Upvotes: 5

Will Dean
Will Dean

Reputation: 39500

Well, you're always going to need some way to invoke the compiler. If it's a trivial project, you can usually just stick all the .C filenames on the command line of the compiler and get some kind of output.

Or you can use a batch file / shell script instead of a makefile, but it would be less 'cross-platform' than a makefile and much less useful.

You should probably explain your motivations more clearly.

Upvotes: 3

regality
regality

Reputation: 6554

A common alternative is to write python scripts to compile your code.

Upvotes: 1

Related Questions