bcssocket/Makefile

24 lines
580 B
Makefile

CC = gcc
CCFLAGS = -Wall -std=c99 -pedantic -g
OBJECTS = server.o errors.o client.o
all: $(OBJECTS)
server.o: server.c include/errors.h
$(CC) $(CCFLAGS) -c server.c
errors.o: errors.c include/errors.h
$(CC) $(CCFLAGS) -c errors.c
client.o: client.c errors.o
$(CC) $(CCFLAGS) client.c -o client.o errors.o
clean:
rm -rf $(OBJECTS)
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