Sha256: f36ffbead408cd2609230836af6eeb44c6e3bb621e13efae5bee61ac55892295

Contents?: true

Size: 558 Bytes

Versions: 44

Compression:

Stored size: 558 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_perfect_numbers.c src/perfect_numbers.c src/perfect_numbers.h
	@echo Compiling $@
	@cc $(CFLAGS) src/perfect_numbers.c test/vendor/unity.c test/test_perfect_numbers.c -o tests.out

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
trackler-2.2.1.95 tracks/c/exercises/perfect-numbers/makefile
trackler-2.2.1.94 tracks/c/exercises/perfect-numbers/makefile
trackler-2.2.1.93 tracks/c/exercises/perfect-numbers/makefile
trackler-2.2.1.92 tracks/c/exercises/perfect-numbers/makefile
trackler-2.2.1.91 tracks/c/exercises/perfect-numbers/makefile
trackler-2.2.1.90 tracks/c/exercises/perfect-numbers/makefile
trackler-2.2.1.89 tracks/c/exercises/perfect-numbers/makefile
trackler-2.2.1.88 tracks/c/exercises/perfect-numbers/makefile
trackler-2.2.1.87 tracks/c/exercises/perfect-numbers/makefile
trackler-2.2.1.86 tracks/c/exercises/perfect-numbers/makefile
trackler-2.2.1.85 tracks/c/exercises/perfect-numbers/makefile
trackler-2.2.1.84 tracks/c/exercises/perfect-numbers/makefile
trackler-2.2.1.83 tracks/c/exercises/perfect-numbers/makefile
trackler-2.2.1.82 tracks/c/exercises/perfect-numbers/makefile
trackler-2.2.1.81 tracks/c/exercises/perfect-numbers/makefile
trackler-2.2.1.80 tracks/c/exercises/perfect-numbers/makefile
trackler-2.2.1.79 tracks/c/exercises/perfect-numbers/makefile
trackler-2.2.1.78 tracks/c/exercises/perfect-numbers/makefile
trackler-2.2.1.77 tracks/c/exercises/perfect-numbers/makefile
trackler-2.2.1.76 tracks/c/exercises/perfect-numbers/makefile