Mercurial > mxe-octave
comparison src/ocaml-flexdll.mk @ 3031:951da75fd09c
improve handling of cross tool prefix
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 09 Jun 2013 09:48:08 -0400 |
parents | b6c7244a2f66 |
children | 5ef49fb3299d |
comparison
equal
deleted
inserted
replaced
3030:0d67b4c363cd | 3031:951da75fd09c |
---|---|
31 '$(HOST_LIBDIR)/ocaml/flexdll' | 31 '$(HOST_LIBDIR)/ocaml/flexdll' |
32 # create flexdll scripts | 32 # create flexdll scripts |
33 cd '$(BUILD_TOOLS_PREFIX)/bin' && $(LN_SF) '$(HOST_LIBDIR)/ocaml/flexdll/flexlink' | 33 cd '$(BUILD_TOOLS_PREFIX)/bin' && $(LN_SF) '$(HOST_LIBDIR)/ocaml/flexdll/flexlink' |
34 (echo '#!/bin/sh'; \ | 34 (echo '#!/bin/sh'; \ |
35 echo 'exec flexlink -I $(HOST_LIBDIR) -chain mingw -nocygpath "$$@"') \ | 35 echo 'exec flexlink -I $(HOST_LIBDIR) -chain mingw -nocygpath "$$@"') \ |
36 > '$(BUILD_TOOLS_PREFIX)/bin/$(TARGET)-flexlink' | 36 > '$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)flexlink' |
37 chmod 0755 '$(BUILD_TOOLS_PREFIX)/bin/$(TARGET)-flexlink' | 37 chmod 0755 '$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)flexlink' |
38 | 38 |
39 echo "testing flexlink..." | 39 echo "testing flexlink..." |
40 $(MAKE) -C '$(1)/test' -j '$(JOBS)' dump.exe plug1.dll plug2.dll CC=$(TARGET)-gcc O=o FLEXLINK=$(TARGET)-flexlink | 40 $(MAKE) -C '$(1)/test' -j '$(JOBS)' dump.exe plug1.dll plug2.dll CC=$(MXE_CC) O=o FLEXLINK=$(MXE_TOOL_PREFIX)flexlink |
41 #works if wine is installed : | 41 #works if wine is installed : |
42 #cd '$(1)/test' && ./dump.exe plug1.dll plug2.dll | 42 #cd '$(1)/test' && ./dump.exe plug1.dll plug2.dll |
43 endef | 43 endef |