2 # Type -g to compile with debug
3 # For production book, use -n option to cweave (omit line numbers)
4 cweave
+s texnicard
;tex texnicard
5 [ $# -eq 2 ] || ctangle
+s texnicard
7 [ $# -eq 2 ] || gcc
-std=gnu89
-Winline -Wundef -Wfloat-equal \
8 -Wunused-function -Wno-long-long -Wno-parentheses \
9 -Werror=strict-prototypes
-Wno-unused-value \
10 $1 `(exit $#)&&echo -s -O2 -fwhole-program -Wuninitialized` \
11 -o texnicard texnicard.c lodepng
/lodepng.o