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.

22 lines
354 B

9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 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. .PHONY : all
  7. all : boxes show_tree
  8. .PHONY : check
  9. check : *.h *.c
  10. cppcheck --enable=warning --enable=style *.c
  11. .PHONY : clean
  12. clean :
  13. rm -f boxes
  14. rm -f show_tree
  15. rm -rf *.dSYM