Sha256: 1e07beb4646e503e7a8b536eb08150cc12adfd6f6b0c4a7e40956a37464fce20

Contents?: true

Size: 552 Bytes

Versions: 63

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 -rf *.o *.out *.out.dSYM

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

Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
trackler-2.2.1.119 tracks/c/exercises/binary-search/makefile
trackler-2.2.1.118 tracks/c/exercises/binary-search/makefile
trackler-2.2.1.117 tracks/c/exercises/binary-search/makefile