Sha256: 16f48b0a3fb2f3246aa19680984fbab5103c25bc9ff6c8a03f93eec16bae19e7

Contents?: true

Size: 556 Bytes

Versions: 63

Compression:

Stored size: 556 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 -rf *.o *.out *.out.dSYM

tests.out: test/test_prime_factors.c src/prime_factors.c src/prime_factors.h
	@echo Compiling $@
	@$(CC) $(CFLAGS) src/prime_factors.c test/vendor/unity.c test/test_prime_factors.c -o tests.out -lm

Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
trackler-2.2.1.139 tracks/c/exercises/prime-factors/makefile
trackler-2.2.1.138 tracks/c/exercises/prime-factors/makefile
trackler-2.2.1.137 tracks/c/exercises/prime-factors/makefile
trackler-2.2.1.136 tracks/c/exercises/prime-factors/makefile
trackler-2.2.1.135 tracks/c/exercises/prime-factors/makefile
trackler-2.2.1.134 tracks/c/exercises/prime-factors/makefile
trackler-2.2.1.133 tracks/c/exercises/prime-factors/makefile
trackler-2.2.1.132 tracks/c/exercises/prime-factors/makefile
trackler-2.2.1.131 tracks/c/exercises/prime-factors/makefile
trackler-2.2.1.130 tracks/c/exercises/prime-factors/makefile
trackler-2.2.1.129 tracks/c/exercises/prime-factors/makefile
trackler-2.2.1.128 tracks/c/exercises/prime-factors/makefile
trackler-2.2.1.127 tracks/c/exercises/prime-factors/makefile
trackler-2.2.1.126 tracks/c/exercises/prime-factors/makefile
trackler-2.2.1.125 tracks/c/exercises/prime-factors/makefile
trackler-2.2.1.124 tracks/c/exercises/prime-factors/makefile
trackler-2.2.1.123 tracks/c/exercises/prime-factors/makefile
trackler-2.2.1.122 tracks/c/exercises/prime-factors/makefile
trackler-2.2.1.121 tracks/c/exercises/prime-factors/makefile
trackler-2.2.1.120 tracks/c/exercises/prime-factors/makefile