$ sudo apt-get install scons
Then I created the same SConstruct file, with content:
Program('hello.c')
Invoke SCons:
$ scons
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
gcc -o hello.o -c hello.c
gcc -o hello hello.o
scons: done building targets.
Invoke the executable binary:
$ ./hello
hello, world!
It really works as advertised! Excellent!
No comments:
Post a Comment