blob: 9e626e1123961e0cabdd28bec601a24e0c9a9413 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
CROSS=i686-w64-mingw32-
CC=$(CROSS)gcc
LD=$(CROSS)ld
LDFLAGS=-e fcn_0045709c
LIBS=-lgdi32 -luser32 -lkernel32 -lwinmm -ldsound -lddraw
LIBS+=-lmsvcrt
OBJS = rich4.obj rich4_time.obj card_strings.obj stocks.obj
rich4.exe: $(OBJS)
$(LD) -o $@ $(OBJS) $(LDFLAGS) $(LIBS)
%.obj: %.asm
nasm -f win32 $<
%.obj: %.c
$(CC) $(CFLAGS) -c -o $@ $<
.PHONY: clean
clean:
rm -f rich4.exe $(OBJS)
|