blob: 4e4041a22f98afa8327560041b1cb7fb1f1d6f40 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
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_data.obj card_table.obj tool_strings.obj \
players.obj \
window_util.obj \
rich4_crt_mthread.obj rich4_clib.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)
|