CC = gcc CCFLAGS = -Wall -std=c99 -pedantic -g # OBJECTS = errors.o server.o client.o CLIENT=client.o SERVER=server.o ERROR=errors.o CHALLENGE=challenges.o all: $(ERROR) $(CHALLENGE) $(CLIENT) $(SERVER) $(SERVER): $(CC) $(CCFLAGS) server.c -o server challenges.o errors.o $(CLIENT): $(CC) $(CCFLAGS) client.c -o client errors.o %.o: %.c $(CC) $(CCFLAGS) -I./include -c $< clean: rm -rf $(ERROR) $(CHALLENGE) $(CLIENT) $(SERVER) server client test: pvs-studio-analyzer trace -- make pvs-studio-analyzer analyze plog-converter -a '64:1,2,3;GA:1,2,3;OP:1,2,3' -t tasklist -o report.tasks PVS-Studio.log cppcheck --quiet --enable=all --force --inconclusive . .PHONY: all clean test