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 19:56:00 +0800
commitf786913e3d6ce672211aa561d0e3b845e45689c4 (patch)
tree289d062f20593b2de41eae9b867fe6557fb151d9 /asm/Makefile
parenta8b976af1c549be3e7ebe401d15c2826a5a6fa4a (diff)
downloadrich4-f786913e3d6ce672211aa561d0e3b845e45689c4.tar.xz
add assembly dump of rich4.exerich4_asm
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 $<