summaryrefslogtreecommitdiff
path: root/dosutil/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'dosutil/Makefile')
-rw-r--r--dosutil/Makefile17
1 files changed, 16 insertions, 1 deletions
diff --git a/dosutil/Makefile b/dosutil/Makefile
index 1ff3aad8..7349cb73 100644
--- a/dosutil/Makefile
+++ b/dosutil/Makefile
@@ -6,7 +6,10 @@ WCLOPT = -6 -osx -mt -bt=DOS -l=COM
UPX = upx
-TARGETS = mdiskchk.com
+NASM = nasm
+NASMOPT = -O9999
+
+TARGETS = mdiskchk.com eltorito.sys
%.obj: %.c
$(WCL) $(WCLOPT) -c -fo=$@ $<
@@ -17,6 +20,18 @@ TARGETS = mdiskchk.com
$(UPX) --ultra-brute $@ || \
true
+%.sys: %.asm
+ $(NASM) -f bin -o $@ -l $*.lst $<
+ $(UPX) --ultra-brute --lzma $@ || \
+ $(UPX) --ultra-brute $@ || \
+ true
+
+%.com: %.asm
+ $(NASM) -f bin -o $@ -l $*.lst $<
+ $(UPX) --ultra-brute --lzma $@ || \
+ $(UPX) --ultra-brute $@ || \
+ true
+
all: $(TARGETS)
tidy dist: