diff options
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/GNUmakefile b/GNUmakefile index 7389c16a..9d02c6ba 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -24,6 +24,21 @@ # The default target is either "merge" or "nonmerge", as determined by # the DEFAULT_TARGET variable set by config.mk. +# Debugging techniques: +# +# When a test (make check ...) fails, the incorrect output is in the file +# TESTNAME.out in /tmp/netpbm-test/ . +# +# To build so you can easily debug with a debugger such as Gdb: +# +# make CFLAGS="-g -O0" +# +# To debug libnetpbm, link it statically into the using program: +# +# make NETPBMLIBTYPE=unixstatic pamcut +# +# (Then 'ldd ./pamcut' to make sure it worked) +# # About the "merge" target: Normally the Makefiles build separate # executables for each program. However, on some systems (especially # those without shared libraries) this can mean a lot of space. In |