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.

24 lines
486 B

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. CFLAGS = --std=c11 -Wall -O3
  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. .PHONY : all
  9. all : boxes show_tree simple_cplx
  10. .PHONY : check
  11. check : *.h *.c
  12. cppcheck --enable=warning --enable=style *.c
  13. .PHONY : clean
  14. clean :
  15. rm -f boxes
  16. rm -f show_tree
  17. rm -f simple_cplx