The Program builder method is only one of
many builder methods that SCons provides
to build different types of files.
Another is the Object builder method,
which tells SCons to build an object file
from the specified source file:

Object('hello.c')

Now when you run the scons command to build the program,
it will build just the hello.o object file on a POSIX system: