This question is based on: Perl: how can I put all my inline C code into a separate file?, but for multiple files.
Suppose you want to include C file in perl named foo.c
:
#include "bar.h"
int foo(...
As you can see, foo.c
depends on bar.h
which is associated to bar.c
.
Is there a way Inline::C can compile both foo.c
and bar.c
and link bar.o
so foo()
works properly?