MAKE: allow for better cross compilation support via dockcross

master
Martin Gerhardy 2020-06-17 18:21:10 +02:00
parent 78fb5630a1
commit a83599268b
1 changed files with 5 additions and 2 deletions

View File

@ -23,9 +23,12 @@ distclean:
deb:
$(Q)debuild -b -ui -uc -us
crosscompile:
$(Q)dockcross $(CMAKE) -H. -B$(BUILDDIR) $(CMAKE_OPTIONS)
$(Q)dockcross $(CMAKE) --build $(BUILDDIR) --target all
windows:
$(Q)dockcross $(CMAKE) -H. -Bbuild $(CMAKE_OPTIONS)
$(Q)dockcross $(CMAKE) --build build --target all
$(Q)$(MAKE) crosscompile TARGET_OS=$@ BUILDDIR=$(BUILDDIR)/$@
release-%:
$(Q)$(MAKE) BUILDTYPE=Release $(subst release-,,$@)