From eca8d9b0a482cd3d2bd9356222a235a604e3a36f Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Sat, 28 Aug 2021 11:31:09 -0300 Subject: [PATCH] Add initial files --- .gitignore | 6 ++++++ Makefile | 24 ++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6b7f008 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +# Files +*.o +.bash_history + +# Folders +Test/* diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..0b4785c --- /dev/null +++ b/Makefile @@ -0,0 +1,24 @@ +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 +