summaryrefslogtreecommitdiffstats
path: root/contrib/hdload/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/hdload/Makefile')
-rw-r--r--contrib/hdload/Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/contrib/hdload/Makefile b/contrib/hdload/Makefile
new file mode 100644
index 00000000..9ed750de
--- /dev/null
+++ b/contrib/hdload/Makefile
@@ -0,0 +1,15 @@
+# Use nasm or as86
+ASM=nasm
+# ASM=as86
+
+hdload.bin: hdload.S
+ifeq ($(ASM),as86)
+ gcc $(CFLAGS) -DUSE_AS86 -E -traditional -o hdload.s hdload.S
+ as86 -0 -b hdload.bin hdload.s
+else
+ gcc $(CFLAGS) -DUSE_NASM -E -traditional -o hdload.s hdload.S
+ nasm -f bin hdload.s -o hdload.bin
+endif
+
+clean:
+ $(RM) -f hdload.s hdload.bin