Sha256: 3cd4173c6007ab313e492a93934cd701cdb54ac37b35d75d0720e1a6f9e13ad5

Contents?: true

Size: 589 Bytes

Versions: 63

Compression:

Stored size: 589 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

LDFLAGS  = -lm

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_complex_numbers.c src/complex_numbers.c src/complex_numbers.h
	@echo Compiling $@
	@$(CC) $(CFLAGS) src/complex_numbers.c test/vendor/unity.c test/test_complex_numbers.c $(LDFLAGS) -o tests.out

Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
trackler-2.2.1.159 tracks/c/exercises/complex-numbers/makefile
trackler-2.2.1.158 tracks/c/exercises/complex-numbers/makefile
trackler-2.2.1.157 tracks/c/exercises/complex-numbers/makefile
trackler-2.2.1.156 tracks/c/exercises/complex-numbers/makefile
trackler-2.2.1.155 tracks/c/exercises/complex-numbers/makefile
trackler-2.2.1.154 tracks/c/exercises/complex-numbers/makefile
trackler-2.2.1.153 tracks/c/exercises/complex-numbers/makefile
trackler-2.2.1.152 tracks/c/exercises/complex-numbers/makefile
trackler-2.2.1.151 tracks/c/exercises/complex-numbers/makefile
trackler-2.2.1.150 tracks/c/exercises/complex-numbers/makefile
trackler-2.2.1.149 tracks/c/exercises/complex-numbers/makefile
trackler-2.2.1.148 tracks/c/exercises/complex-numbers/makefile
trackler-2.2.1.147 tracks/c/exercises/complex-numbers/makefile
trackler-2.2.1.146 tracks/c/exercises/complex-numbers/makefile
trackler-2.2.1.145 tracks/c/exercises/complex-numbers/makefile
trackler-2.2.1.144 tracks/c/exercises/complex-numbers/makefile
trackler-2.2.1.143 tracks/c/exercises/complex-numbers/makefile
trackler-2.2.1.142 tracks/c/exercises/complex-numbers/makefile
trackler-2.2.1.141 tracks/c/exercises/complex-numbers/makefile
trackler-2.2.1.140 tracks/c/exercises/complex-numbers/makefile