25 lines
508 B
Makefile
25 lines
508 B
Makefile
CC = gcc
|
|
CCFLAGS = -Wall -std=c99 -pedantic # -g (si queremos debuggear)
|
|
|
|
SOURCES = $(wildcard *.c)
|
|
OBJECTS = $(SOURCES:.c=.o)
|
|
|
|
all: $(OBJECTS)
|
|
|
|
%.o : %.c
|
|
$(CC) $(CFLAGS) $^ -o $@
|
|
|
|
clean:
|
|
rm -rf $(OBJECTS)
|
|
|
|
test:
|
|
# Agregar encabezados primero!!!!
|
|
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 .
|
|
# valgrind (file)
|
|
|
|
.PHONY: all clean test
|
|
|