patch-examples_ext_Makefile 797 B

123456789101112131415161718192021222324252627282930
  1. $OpenBSD: patch-examples_ext_Makefile,v 1.2 2014/10/10 19:58:21 stu Exp $
  2. --- examples.ext/Makefile.orig Fri Oct 10 02:34:34 2014
  3. +++ examples.ext/Makefile Fri Oct 10 15:43:42 2014
  4. @@ -9,21 +9,20 @@
  5. # Prefer jimsh in the PATH because it is more likely to be built
  6. # for the build-host rather than the target.
  7. -ifdef NOTEST
  8. +.ifdef NOTEST
  9. BUILDOPTS := --notest
  10. -endif
  11. +.endif
  12. -export PATH := $(PATH):..
  13. all: helloworld.so
  14. helloworld.so: helloworld.c
  15. - ../build-jim-ext -I.. -L.. $(BUILDOPTS) $^
  16. + ${LOCALBASE}/share/examples/jim/build-jim-ext $(BUILDOPTS) $>
  17. # Note: Currently we don't attempt to set LD_LIBRARY_PATH or equivalent
  18. test:
  19. - JIMLIB=. ../jimsh -e 'package require helloworld; hello'
  20. + JIMLIB=. jimsh -e 'package require helloworld; hello'
  21. clean:
  22. rm -f *.o *.so