The SDCC user guide says that SDCC can compile only one file at a time.
How can I write a makefile in order to compile a whole project, made of several source files?

I need something like the makefile used with Visual Studio in order to use an external compiler.

Thanks!