Annotation For Makefile

Lines of Makefile from check-in ca3a163ab4 that are changed by the sequence of edits moving toward check-in 9b49bfa195:

                         1: TCL_CONFIG_SH := /usr/lib64/tclConfig.sh
                         2: XVFS_ROOT_MOUNTPOINT := //xvfs:/
                         3: CPPFLAGS      := -DXVFS_ROOT_MOUNTPOINT='"$(XVFS_ROOT_MOUNTPOINT)"' -I. -DUSE_TCL_STUBS=1 -DXVFS_DEBUG $(shell . "${TCL_CONFIG_SH}" && echo "$${TCL_INCLUDE_SPEC}") $(XVFS_ADD_CPPFLAGS)
                         4: CFLAGS        := -fPIC -g3 -ggdb3 -Wall $(XVFS_ADD_CFLAGS)
                         5: LDFLAGS       := $(XVFS_ADD_LDFLAGS)
                         6: LIBS          := $(shell . "${TCL_CONFIG_SH}" && echo "$${TCL_STUB_LIB_SPEC}")
                         7: TCLSH         := tclsh
                         8: LIB_SUFFIX    := $(shell . "${TCL_CONFIG_SH}"; echo "$${TCL_SHLIB_SUFFIX:-.so}")
                         9: 
                        10: all: example-standalone$(LIB_SUFFIX) example-client$(LIB_SUFFIX) example-flexible$(LIB_SUFFIX) xvfs$(LIB_SUFFIX)
                        11: 
                        12: example.c: $(shell find example -type f) $(shell find lib -type f) lib/xvfs/xvfs.c.rvt xvfs-create Makefile
                        13: 	./xvfs-create --directory example --name example > example.c.new
                        14: 	mv example.c.new example.c
                        15: 
                        16: example-standalone.o: example.c xvfs-core.h xvfs-core.c Makefile
                        17: 	$(CC) $(CPPFLAGS) -DXVFS_MODE_STANDALONE $(CFLAGS) -o example-standalone.o -c example.c
                        18: 
                        19: example-standalone$(LIB_SUFFIX): example-standalone.o Makefile
                        20: 	$(CC) $(CFLAGS) $(LDFLAGS) -shared -o example-standalone$(LIB_SUFFIX) example-standalone.o $(LIBS)
                        21: 
                        22: example-client.o: example.c xvfs-core.h Makefile
                        23: 	$(CC) $(CPPFLAGS) -DXVFS_MODE_CLIENT $(CFLAGS) -o example-client.o -c example.c
                        24: 
                        25: example-client$(LIB_SUFFIX): example-client.o Makefile
                        26: 	$(CC) $(CFLAGS) $(LDFLAGS) -shared -o example-client$(LIB_SUFFIX) example-client.o $(LIBS)
                        27: 
                        28: example-flexible.o: example.c xvfs-core.h Makefile
                        29: 	$(CC) $(CPPFLAGS) -DXVFS_MODE_FLEXIBLE $(CFLAGS) -o example-flexible.o -c example.c
                        30: 
                        31: example-flexible$(LIB_SUFFIX): example-flexible.o Makefile
                        32: 	$(CC) $(CFLAGS) $(LDFLAGS) -shared -o example-flexible$(LIB_SUFFIX) example-flexible.o $(LIBS)
                        33: 
                        34: xvfs.o: xvfs-core.h xvfs-core.c Makefile
                        35: 	$(CC) $(CPPFLAGS) -DXVFS_MODE_SERVER $(CFLAGS) -o xvfs.o -c xvfs-core.c
                        36: 
                        37: xvfs$(LIB_SUFFIX): xvfs.o Makefile
                        38: 	$(CC) $(CFLAGS) $(LDFLAGS) -shared -o xvfs$(LIB_SUFFIX) xvfs.o $(LIBS)
                        39: 
                        40: # xvfs-create-standalone is a standalone (i.e., no external dependencies
                        41: # like lib/minirivet, xvfs-core.c, etc) version of "xvfs-create"
                        42: xvfs-create-standalone: $(shell find lib -type f) xvfs-create xvfs-core.c xvfs-core.h lib/xvfs/xvfs.c.rvt Makefile
                        43: 	rm -f xvfs-create-standalone.new xvfs-create-standalone
                        44: 	./xvfs-create --dump-tcl --remove-debug > xvfs-create-standalone.new
                        45: 	chmod +x xvfs-create-standalone.new
                        46: 	mv xvfs-create-standalone.new xvfs-create-standalone
                        47: 
                        48: xvfs_random$(LIB_SUFFIX): $(shell find example -type f) $(shell find lib -type f) lib/xvfs/xvfs.c.rvt xvfs-create-random Makefile
ca3a163ab4 2019-09-20   49: 	./xvfs-create-random | $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -DXVFS_MODE_STANDALONE -x c - -shared -o xvfs_random$(LIB_SUFFIX) $(LIBS)
                        50: 
                        51: xvfs_synthetic$(LIB_SUFFIX): $(shell find lib -type f) lib/xvfs/xvfs.c.rvt xvfs-create-synthetic Makefile
ca3a163ab4 2019-09-20   52: 	./xvfs-create-synthetic | $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -DXVFS_MODE_STANDALONE -x c - -shared -o xvfs_synthetic$(LIB_SUFFIX) $(LIBS)
                        53: 
                        54: benchmark:
                        55: 	$(MAKE) clean all XVFS_ADD_CPPFLAGS="-UXVFS_DEBUG" XVFS_ADD_CFLAGS="-g0 -ggdb0 -s -O3"
                        56: 	./benchmark.tcl
                        57: 
                        58: test: example-standalone$(LIB_SUFFIX) xvfs$(LIB_SUFFIX) example-client$(LIB_SUFFIX) example-flexible$(LIB_SUFFIX) Makefile
                        59: 	rm -f __test__.tcl
                        60: 	echo 'if {[catch { eval $$::env(XVFS_TEST_LOAD_COMMANDS); source $(XVFS_ROOT_MOUNTPOINT)example/main.tcl }]} { puts stderr $$::errorInfo; exit 1 }; exit 0' > __test__.tcl
                        61: 	@export XVFS_ROOT_MOUNTPOINT; export XVFS_TEST_LOAD_COMMANDS; for XVFS_TEST_LOAD_COMMANDS in \
                        62: 		'load ./example-standalone$(LIB_SUFFIX) Xvfs_example' \
                        63: 		'load -global ./xvfs$(LIB_SUFFIX); load ./example-client$(LIB_SUFFIX) Xvfs_example' \
                        64: 		'load ./xvfs$(LIB_SUFFIX); load ./example-flexible$(LIB_SUFFIX) Xvfs_example' \
                        65: 		'load ./example-flexible$(LIB_SUFFIX) Xvfs_example'; do \
                        66: 			echo "[$${XVFS_TEST_LOAD_COMMANDS}] $(GDB) $(TCLSH) __test__.tcl $(TCL_TEST_ARGS)"; \
                        67: 			$(GDB) $(TCLSH) __test__.tcl $(TCL_TEST_ARGS) || exit 1; \
                        68: 	done
                        69: 	rm -f __test__.tcl
                        70: 
                        71: coverage:
                        72: 	$(MAKE) clean
                        73: 	$(MAKE) XVFS_ADD_CFLAGS=-coverage XVFS_ADD_LDFLAGS=-coverage
                        74: 	$(MAKE) test XVFS_TEST_EXIT_ON_FAILURE=0
                        75: 	rm -f xvfs-test-coverage.info
                        76: 	lcov --capture --directory . --output-file xvfs-test-coverage.info
                        77: 	rm -rf xvfs-test-coverage
                        78: 	mkdir xvfs-test-coverage
                        79: 	genhtml xvfs-test-coverage.info --output-directory xvfs-test-coverage
                        80: 	rm -f xvfs-test-coverage.info
                        81: 
                        82: clean:
                        83: 	rm -f xvfs-create-standalone.new xvfs-create-standalone
                        84: 	rm -f example.c example.c.new
                        85: 	rm -f example-standalone$(LIB_SUFFIX) example-standalone.o
                        86: 	rm -f example-client.o example-client$(LIB_SUFFIX)
                        87: 	rm -f example-flexible.o example-flexible$(LIB_SUFFIX)
                        88: 	rm -f xvfs.o xvfs$(LIB_SUFFIX)
                        89: 	rm -f example-standalone.gcda example-standalone.gcno
                        90: 	rm -f example-client.gcda example-client.gcno
                        91: 	rm -f example-flexible.gcda example-flexible.gcno
                        92: 	rm -f xvfs_random$(LIB_SUFFIX) xvfs_synthetic$(LIB_SUFFIX)
                        93: 	rm -f xvfs.gcda xvfs.gcno
                        94: 	rm -f __test__.tcl
                        95: 	rm -f xvfs-test-coverage.info
                        96: 	rm -rf xvfs-test-coverage
                        97: 
                        98: distclean: clean
                        99: 
                       100: .PHONY: all clean distclean test coverage benchmark