1 # Note that if cross compiling, build with:
5 # to avoid trying to load the resulting module.
6 # Also note that you will need a build-host version of jimsh in the
7 # PATH in order to build the extension.
9 # Prefer jimsh in the PATH because it is more likely to be built
10 # for the build-host rather than the target.
16 export PATH
:= $(PATH
):..
20 helloworld.so
: helloworld.c
21 ..
/build-jim-ext
-I..
-L..
$(BUILDOPTS
) $^
23 # Note: Currently we don't attempt to set LD_LIBRARY_PATH or equivalent
26 JIMLIB
=. ..
/jimsh
-e
'package require helloworld; hello'