diff options
Diffstat (limited to 'asm/Makefile')
-rw-r--r-- | asm/Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/asm/Makefile b/asm/Makefile index 17df9dc..410fa8f 100644 --- a/asm/Makefile +++ b/asm/Makefile @@ -1,11 +1,17 @@ CROSS=i686-w64-mingw32- +CC=$(CROSS)gcc LD=$(CROSS)ld LDFLAGS=-e fcn_0045709c LIBS=-lgdi32 -luser32 -lkernel32 -lwinmm -ldsound -lddraw LIBS+=-lmsvcrt -%.exe: %.obj - $(LD) -o $@ $< $(LDFLAGS) $(LIBS) +OBJS = rich4.obj rich4_time.obj + +rich4.exe: $(OBJS) + $(LD) -o $@ $(OBJS) $(LDFLAGS) $(LIBS) %.obj: %.asm nasm -f win32 $< + +%.obj: %.c + $(CC) $(CFLAGS) -c -o $@ $< |