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

CFLAGS = -Wall -O3 --std=c11
boxes : boxes.c
$(CC) $(CFLAGS) $@.c -o $@
show_tree : process_dir.h process_dir.c show_tree.c
$(CC) $(CFLAGS) process_dir.c $@.c -o $@
.PHONY : all
all : boxes show_tree
.PHONY : check
check : *.h *.c
cppcheck --enable=warning --enable=style *.c
.PHONY : clean
clean :
rm -f boxes
rm -f show_tree
rm -rf *.dSYM