summaryrefslogtreecommitdiff
path: root/asm/Makefile
blob: 0a175e794142dd27074391230d0a96732c70ff8a (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
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 \
       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)