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 $^ > $@