diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2014-06-24 12:22:22 +0200 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2014-06-24 17:30:34 -0700 |
commit | 29d80af290485aeede15b87cfd77c0ca9990dcbb (patch) | |
tree | d816f56041c4dfcd2465530cce25cb26374ba35a | |
parent | 2a55ff620f39fca2640693def34767e6d5425cfb (diff) | |
download | syslinux-29d80af290485aeede15b87cfd77c0ca9990dcbb.tar.gz syslinux-29d80af290485aeede15b87cfd77c0ca9990dcbb.tar.xz syslinux-29d80af290485aeede15b87cfd77c0ca9990dcbb.zip |
Test for Watcom C presencesyslinux-6.03-pre18
This adds checks for Watcom C DOS cross-compiler in a manner analogous to mingw
compiler for Windows. The compiler is not commonly present in Linux distributions
due to a non-free license.
Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
-rw-r--r-- | dosutil/Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/dosutil/Makefile b/dosutil/Makefile index 9dc88d1f..69fc58ad 100644 --- a/dosutil/Makefile +++ b/dosutil/Makefile @@ -7,6 +7,9 @@ include $(MAKEDIR)/syslinux.mk WCL = wcl WCLOPT = -6 -osx -mt -bt=DOS -l=COM +WCL_IS_GOOD := $(shell $(WCL) $(WCLOPT) \ + -o hello.exe $(SRC)/../win/hello.c >/dev/null 2>&1 ; echo $$?) + UPX = upx NASM = nasm @@ -45,7 +48,12 @@ TARGETS = $(WCTARGETS) $(NSTARGETS) rm -f $*.0* chmod a-x $@ +ifeq ($(WCL_IS_GOOD),0) all: $(TARGETS) +else +all: $(NSTARGETS) + rm -f $(WCTARGETS) +endif tidy dist: -rm -f *.obj *.lst *.o *.0* |