Learning by doing: Reading books and trying to understand the (code) examples
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
792 B

9 years ago
9 years ago
  1. CFLAGS = -Wall -Wextra --std=c11 -g -lm -ftest-coverage -fprofile-arcs
  2. .PHONY : all
  3. all : simple_cplx seamlessone seamlesstwo dict_use
  4. simple_cplx : cplx.h complex.c simple_cplx.c
  5. $(CC) `pkg-config --cflags --libs gsl` $(CFLAGS) complex.c $@.c -o $@
  6. seamlessone : seamlessone.c
  7. $(CC) $(CFLAGS) -fms-extensions -Wno-microsoft $@.c -o $@
  8. seamlesstwo : seamlesstwo.c
  9. $(CC) $(CFLAGS) -fms-extensions -Wno-microsoft $@.c -o $@
  10. dict_use : memory.h memory.c keyval.h keyval.c dict.h dict.c dict_use.c
  11. $(CC) $(CFLAGS) memory.c keyval.c dict.c $@.c -o $@
  12. .PHONY : check
  13. check : *.h *.c
  14. cppcheck --enable=warning --enable=style *.c
  15. .PHONY : clean
  16. clean :
  17. rm -f simple_cplx
  18. rm -f seamlessone
  19. rm -f seamlesstwo
  20. rm -f dict_use
  21. rm -rf *.dSYM
  22. rm -rf *.gcno
  23. rm -rf *.gcda
  24. rm -rf *.gcov