Sha256: 3e558e3c589a219d95b51e9a030a80069088f73c57a8df7109dd8e0efdc280dc

Contents?: true

Size: 512 Bytes

Versions: 2

Compression:

Stored size: 512 Bytes

Contents

CFLAGS  = -std=c99
CFLAGS += -g
CFLAGS += -Wall
CFLAGS += -Wextra
CFLAGS += -pedantic
CFLAGS += -Werror

VFLAGS  = --quiet
VFLAGS += --tool=memcheck
VFLAGS += --leak-check=full
VFLAGS += --error-exitcode=1

test: tests.out
	@./tests.out

memcheck: tests.out
	@valgrind $(VFLAGS) ./tests.out
	@echo "Memory check passed"

clean:
	rm -f *.o *.out

tests.out: test/test_triangle.c src/triangle.c src/triangle.h
	@echo Compiling $@
	@cc $(CFLAGS) src/triangle.c test/vendor/unity.c test/test_triangle.c -o tests.out

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
trackler-2.2.1.71 tracks/c/exercises/triangle/makefile
trackler-2.2.1.70 tracks/c/exercises/triangle/makefile