aboutsummaryrefslogtreecommitdiffstats
path: root/dosutil/Makefile
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-07-05 01:04:50 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-07-05 01:04:50 -0700
commit46a81bae932b3f84c5e76dc3c2a10e3d2d090fbb (patch)
tree1b4b5b269e55d31de755ef7c329ce17a90e973a8 /dosutil/Makefile
parentb1deeb181382bad22846f9c467b64fbda6665e8f (diff)
downloadsyslinux.git-46a81bae932b3f84c5e76dc3c2a10e3d2d090fbb.tar.gz
syslinux.git-46a81bae932b3f84c5e76dc3c2a10e3d2d090fbb.tar.xz
syslinux.git-46a81bae932b3f84c5e76dc3c2a10e3d2d090fbb.zip
dosutil: update mdiskchk, add Makefile
Update mdiskchk and add a Makefile. Note that since this needs OpenWatcom to compile, we still check in the binary file (which is quite small, anyway.) Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'dosutil/Makefile')
-rw-r--r--dosutil/Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/dosutil/Makefile b/dosutil/Makefile
new file mode 100644
index 00000000..6a11f51c
--- /dev/null
+++ b/dosutil/Makefile
@@ -0,0 +1,18 @@
+#
+# OpenWatcom compile and link utility
+#
+WCL = wcl
+WCLOPT_DOSCOM = -3 -osx -mt -bt=DOS -l=COM
+
+UPX = upx
+
+%.com: %.c
+ $(WCL) $(WCLOPT_DOSCOM) -fe=$@ $<
+ $(UPX) --ultra-brute --lzma $@ || \
+ $(UPX) --ultra-brute $@ || \
+ true
+
+all: mdiskchk.com
+
+clean:
+ rm -f *.o *.obj *.com *.sys