From 831f9f01fbe4088eb6bd378c0e417d9996b676fd Mon Sep 17 00:00:00 2001 From: scratko Date: Fri, 30 Aug 2024 12:46:56 +0300 Subject: Final version v2.0 Added windows client. SIGPIPE signal was being sent to the server when the client was disconnected. Now there is handling of this signal. Added a delay when displaying some informational messages. --- windows_client/Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 windows_client/Makefile (limited to 'windows_client/Makefile') diff --git a/windows_client/Makefile b/windows_client/Makefile new file mode 100644 index 0000000..497a488 --- /dev/null +++ b/windows_client/Makefile @@ -0,0 +1,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 $^ > $@ -- cgit v1.2.3