29 lines
740 B
Makefile
29 lines
740 B
Makefile
CC = gcc
|
|
CCFLAGS = -Wall -std=c99 -pedantic -g
|
|
|
|
OBJECTS = solve view slave.o
|
|
SOLVE_SRC = src/master.c src/error.c src/shr_mem.c src/siglib.c
|
|
VIEW_SRC = src/view.c src/error.c src/shr_mem.c src/siglib.c
|
|
SLAVE_SRC = src/slave.c src/error.c
|
|
|
|
all: $(OBJECTS)
|
|
|
|
solve: $(SOLVE_SRC)
|
|
$(CC) $(CCFLAGS) -o solve $(SOLVE_SRC) -lm -lrt -lpthread
|
|
view: $(VIEW_SRC)
|
|
$(CC) $(CCFLAGS) -o view $(VIEW_SRC) -lrt -lpthread
|
|
slave.o: $(SLAVE_SRC)
|
|
$(CC) $(CCFLAGS) -o slave.o $(SLAVE_SRC)
|
|
|
|
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
|
|
|