lsort -unique: Fix case with no duplicates
[jimtcl.git] / examples.ext / Makefile
blobfa5cfc68070ecfd30d6c650299c0aa97a8b7c258
1 # Note that if cross compiling, build with:
3 # make NOTEST=1
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.
12 ifdef NOTEST
13 BUILDOPTS := --notest
14 endif
16 export PATH := $(PATH):..
18 all: helloworld.so
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
25 test:
26 JIMLIB=. ../jimsh -e 'package require helloworld; hello'
28 clean:
29 rm -f *.o *.so