back to scratko.xyz
aboutsummaryrefslogtreecommitdiff
path: root/windows_client/Makefile
blob: 497a48894839f23d269b538633bb71d5de997b0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
SRCMODULES = card_handling.c card_stack.c data_decryption.c\
	     printing_game_frames.c verification_client_input.c client.c
OBJMODULES = $(SRCMODULES:.c=.o)
CC = i686-w64-mingw32-gcc
CFLAGS = -Wall -g -c -I/usr/i686-w64-mingw-32/include

STATIC = -static

LIBS = -lws2_32 -L /usr/i686-w64-mingw-32/lib

all: durak.exe

%.o: %%.h
	$(CC) $(CFLAGS) $< -o $@

durak.exe: $(OBJMODULES)
	$(CC) $(STATIC) $(OBJMODULES) $(LIBS) -o $@

-include deps.mk

deps.mk: $(SRCMODULES)
	$(CC) -MM $^ > $@