summaryrefslogtreecommitdiff
path: root/asm/Makefile
blob: d65cddf06543152d472ceec66e26b67b1adaa335 (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
26
CROSS=i686-w64-mingw32-
CC=$(CROSS)gcc
LD=$(CROSS)ld
LDFLAGS=-e entry
LIBS=-lgdi32 -luser32 -lkernel32 -lwinmm -ldsound -lddraw
LIBS+=-lmsvcrt

OBJS = entry.obj \
       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)