exercism

Exercism solutions.
git clone git://code.dwrz.net/exercism
Log | Files | Refs

makefile (522B)


      1 CFLAGS  = -std=c99
      2 CFLAGS += -g
      3 CFLAGS += -Wall
      4 CFLAGS += -Wextra
      5 CFLAGS += -pedantic
      6 CFLAGS += -Werror
      7 
      8 VFLAGS  = --quiet
      9 VFLAGS += --tool=memcheck
     10 VFLAGS += --leak-check=full
     11 VFLAGS += --error-exitcode=1
     12 
     13 test: tests.out
     14 	@./tests.out
     15 
     16 memcheck: tests.out
     17 	@valgrind $(VFLAGS) ./tests.out
     18 	@echo "Memory check passed"
     19 
     20 clean:
     21 	rm -rf *.o *.out *.out.dSYM
     22 
     23 tests.out: test/test_isogram.c src/isogram.c src/isogram.h
     24 	@echo Compiling $@
     25 	@$(CC) $(CFLAGS) src/isogram.c test/vendor/unity.c test/test_isogram.c -o tests.out