If you'e on Linux or macOS, you can simply do

emcc *.c ...

because the command line will expand the filename pattern before calling 
emcc, doesn't work on the Windows command line though, because there the 
executable itself needs to do expansion. For more complex stuff I'd 
recommend looking into build tools like cmake or genie 
(https://github.com/bkaradzic/GENie).
On Tuesday, 22 June 2021 at 09:39:02 UTC+2 [email protected] wrote:

> Dear all,
>
> I have many .c files like hello1.c, hello2.c, etc. All the files are 
> dependent to one project.
> So I want to compile all the files and build a .wasm file. 
> For compilation, I have specified all the .c files manually in emcc 
> command line like
>
> emcc -g  hello1.c hello2.c hello3.c -s WASM=1 -s EXPORT_ALL=1 -o hello.js 
> -s FORCE_FILESYSTEM=1 -s "EXPORTED_RUNTIME_METHODS=['calls','cwrap']" -s 
> "EXPORTED_FUNCTIONS=['_Hello']" -s ALLOW_MEMORY_GROWTH=1
>
> Is there any way available to load all the .c files without specifying 
> manually in the command line?
> Kindly help me.
>
> Referred links
>
>    1. 
>    https://developer.mozilla.org/en-US/docs/WebAssembly/existing_C_to_wasm
>     
>    2. https://emscripten.org/docs/compiling/Building-Projects.html
>    
> Thanks and Regards,
> Giri
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/9b0d2e51-8ac3-4a6f-9b3f-b444afd02663n%40googlegroups.com.

Reply via email to