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 = gcc CFLAGS = -Wall -g -c all: client %.o: %.с %.h $(CC) $(CFLAGS) $< -o $@ client: $(OBJMODULES) $(CC) $(LIBS) $^ -o $@ ifneq (clean, $(MAKECMDGOALS)) -include deps.mk endif deps.mk: $(SRCMODULES) $(CC) -MM $^ > $@ clean: rm -f *.o client