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.

29 lines
608 B

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. CFLAGS = -Wall -O3 --std=c11
  2. boxes : boxes.c
  3. $(CC) $(CFLAGS) $@.c -o $@
  4. show_tree : process_dir.h process_dir.c show_tree.c
  5. $(CC) $(CFLAGS) process_dir.c $@.c -o $@
  6. simple_cplx : cplx.h complex.c simple_cplx.c
  7. $(CC) `pkg-config --cflags --libs gsl` $(CFLAGS) complex.c $@.c -o $@
  8. seamlessone : seamlessone.c
  9. $(CC) $(CFLAGS) -fms-extensions -Wno-microsoft $@.c -o $@
  10. .PHONY : all
  11. all : boxes show_tree simple_cplx
  12. .PHONY : check
  13. check : *.h *.c
  14. cppcheck --enable=warning --enable=style *.c
  15. .PHONY : clean
  16. clean :
  17. rm -f boxes
  18. rm -f show_tree
  19. rm -f simple_cplx
  20. rm -f seamlessone
  21. rm -rf *.dSYM