Sha256: ebd1533c155e4e352828bf7f67e787ec9fe97f98504d41bcd7e88dc13498b7c5

Contents?: true

Size: 552 Bytes

Versions: 2

Compression:

Stored size: 552 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_sum_of_multiples.c src/sum_of_multiples.c src/sum_of_multiples.h
	@echo Compiling $@
	@cc $(CFLAGS) src/sum_of_multiples.c test/vendor/unity.c test/test_sum_of_multiples.c -o tests.out

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
trackler-2.2.1.71 tracks/c/exercises/sum-of-multiples/makefile
trackler-2.2.1.70 tracks/c/exercises/sum-of-multiples/makefile