SHELL=/bin/sh
CC=gcc
CFLAGS=-ansi -pedantic
+FLAGS= # command-line macro
colorize: colorize.c
perl ./version.pl > version.h
- $(CC) $(CFLAGS) -o colorize colorize.c -DCFLAGS="$(CFLAGS)" -DHAVE_VERSION
+ $(CC) $(CFLAGS) -o colorize colorize.c -DCFLAGS="$(CFLAGS)" -DHAVE_VERSION $(FLAGS)
check:
perl ./test.pl
Finally, remove it through `make clean'.
+For the sake of completeness, colorize can be also built with
+debugging output by issuing `make FLAGS=-DDEBUG'. The intention
+is to provide some memory allocation diagnostics (and might be
+extended in future). Usually, a debugging build is not required.
+
Documentation
-------------
See man page source file: colorize.1.