summaryrefslogtreecommitdiff
path: root/asm/Makefile
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2021-05-09 20:40:31 +0800
committerIru Cai <mytbk920423@gmail.com>2021-05-10 09:40:01 +0800
commit80670e0203d469e700016cd36c274f59824e9850 (patch)
tree6ef3d0a3073b641dbe5ab355bb83d04e5d206dd5 /asm/Makefile
parenta8b976af1c549be3e7ebe401d15c2826a5a6fa4a (diff)
downloadrich4-80670e0203d469e700016cd36c274f59824e9850.tar.xz
add assembly dump of rich4.exe
Diffstat (limited to 'asm/Makefile')
-rw-r--r--asm/Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/asm/Makefile b/asm/Makefile
new file mode 100644
index 0000000..0b8b3c0
--- /dev/null
+++ b/asm/Makefile
@@ -0,0 +1,10 @@
+CROSS=i686-w64-mingw32-
+LD=$(CROSS)ld
+LDFLAGS=-e fcn_0045709c
+LIBS=-lgdi32 -luser32 -lkernel32 -lwinmm -ldsound -lddraw
+
+%.exe: %.obj
+ $(LD) -o $@ $< $(LDFLAGS) $(LIBS)
+
+%.obj: %.asm
+ nasm -f win32 $<