Browse Source

moved source files in sub dirs for chapters; split Makefile for chapter10 & chapter11 sources

master
T. Meissner 10 years ago
parent
commit
055bad853d
10 changed files with 22 additions and 0 deletions
  1. +22
    -0
      21st_century_c/chapter10/Makefile
  2. +0
    -0
      21st_century_c/chapter10/boxes.c
  3. +0
    -0
      21st_century_c/chapter10/process_dir.c
  4. +0
    -0
      21st_century_c/chapter10/process_dir.h
  5. +0
    -0
      21st_century_c/chapter10/show_tree.c
  6. +0
    -0
      21st_century_c/chapter11/Makefile
  7. +0
    -0
      21st_century_c/chapter11/complex.c
  8. +0
    -0
      21st_century_c/chapter11/cplx.h
  9. +0
    -0
      21st_century_c/chapter11/seamlessone.c
  10. +0
    -0
      21st_century_c/chapter11/simple_cplx.c

+ 22
- 0
21st_century_c/chapter10/Makefile View File

@ -0,0 +1,22 @@
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

21st_century_c/boxes.c → 21st_century_c/chapter10/boxes.c View File


21st_century_c/process_dir.c → 21st_century_c/chapter10/process_dir.c View File


21st_century_c/process_dir.h → 21st_century_c/chapter10/process_dir.h View File


21st_century_c/show_tree.c → 21st_century_c/chapter10/show_tree.c View File


21st_century_c/Makefile → 21st_century_c/chapter11/Makefile View File


21st_century_c/complex.c → 21st_century_c/chapter11/complex.c View File


21st_century_c/cplx.h → 21st_century_c/chapter11/cplx.h View File


21st_century_c/seamlessone.c → 21st_century_c/chapter11/seamlessone.c View File


21st_century_c/simple_cplx.c → 21st_century_c/chapter11/simple_cplx.c View File


Loading…
Cancel
Save