SRCMODULES = card_stack.c card_queue.c server_data_processing.c server_game_process.c server.c OBJMODULES = $(SRCMODULES:.c=.o) CC = gcc CFLAGS = -Wall -g -c all: server %.o: %.с %.h $(CC) $(CFLAGS) $< -o $@ server: $(OBJMODULES) $(CC) $(LIBS) $^ -o $@ ifneq (clean, $(MAKECMDGOALS)) -include deps.mk endif deps.mk: $(SRCMODULES) $(CC) -MM $^ > $@ clean: rm -f *.o server