Annotation For Makefile

Origin for each line in Makefile from check-in 55084356ba:

55084356ba 2019-09-17        rkeene: TCL_CONFIG_SH := /usr/lib64/tclConfig.sh
55084356ba 2019-09-17        rkeene: CPPFLAGS      := -I. -DUSE_TCL_STUBS=1 -DXVFS_DEBUG $(shell . "${TCL_CONFIG_SH}" && echo "$${TCL_INCLUDE_SPEC}") $(XVFS_ADD_CPPFLAGS)
55084356ba 2019-09-17        rkeene: CFLAGS        := -fPIC -g3 -ggdb3 -Wall $(XVFS_ADD_CFLAGS)
55084356ba 2019-09-17        rkeene: LDFLAGS       := $(XVFS_ADD_LDFLAGS)
55084356ba 2019-09-17        rkeene: LIBS          := $(shell . "${TCL_CONFIG_SH}" && echo "$${TCL_STUB_LIB_SPEC}")
55084356ba 2019-09-17        rkeene: TCLSH         := tclsh
55084356ba 2019-09-17        rkeene: LIB_SUFFIX    := $(shell . "${TCL_CONFIG_SH}"; echo "$${TCL_SHLIB_SUFFIX:-.so}")
e5b6962adf 2019-05-02        rkeene: 
55084356ba 2019-09-17        rkeene: all: example$(LIB_SUFFIX) example-client$(LIB_SUFFIX) example-flexible$(LIB_SUFFIX) xvfs$(LIB_SUFFIX)
0a9369ff13 2019-05-02        rkeene: 
e90770a5a7 2019-05-02        rkeene: example.c: $(shell find example -type f) $(shell find lib -type f) xvfs.c.rvt xvfs-create Makefile
0a9369ff13 2019-05-02        rkeene: 	./xvfs-create --directory example --name example > example.c.new
0a9369ff13 2019-05-02        rkeene: 	mv example.c.new example.c
0a9369ff13 2019-05-02        rkeene: 
b8cca3a6b4 2019-05-08        rkeene: example.o: example.c xvfs-core.h xvfs-core.c Makefile
511419642c 2019-09-16        rkeene: 	$(CC) $(CPPFLAGS) -DXVFS_MODE_FLEXIBLE $(CFLAGS) -o example.o -c example.c
511419642c 2019-09-16        rkeene: 
55084356ba 2019-09-17        rkeene: example$(LIB_SUFFIX): example.o Makefile
55084356ba 2019-09-17        rkeene: 	$(CC) $(CFLAGS) $(LDFLAGS) -shared -o example$(LIB_SUFFIX) example.o $(LIBS)
511419642c 2019-09-16        rkeene: 
511419642c 2019-09-16        rkeene: example-client.o: example.c xvfs-core.h Makefile
55084356ba 2019-09-17        rkeene: 	$(CC) $(CPPFLAGS) -DXVFS_MODE_CLIENT $(CFLAGS) -o example-client.o -c example.c
55084356ba 2019-09-17        rkeene: 
55084356ba 2019-09-17        rkeene: example-client$(LIB_SUFFIX): example-client.o Makefile
55084356ba 2019-09-17        rkeene: 	$(CC) $(CFLAGS) $(LDFLAGS) -shared -o example-client$(LIB_SUFFIX) example-client.o $(LIBS)
55084356ba 2019-09-17        rkeene: 
55084356ba 2019-09-17        rkeene: example-flexible.o: example.c xvfs-core.h Makefile
55084356ba 2019-09-17        rkeene: 	$(CC) $(CPPFLAGS) -DXVFS_MODE_FLEXIBLE $(CFLAGS) -o example-flexible.o -c example.c
a4f7828c1d 2019-09-17        rkeene: 
55084356ba 2019-09-17        rkeene: example-flexible$(LIB_SUFFIX): example-flexible.o Makefile
55084356ba 2019-09-17        rkeene: 	$(CC) $(CFLAGS) $(LDFLAGS) -shared -o example-flexible$(LIB_SUFFIX) example-flexible.o $(LIBS)
a4f7828c1d 2019-09-17        rkeene: 
a4f7828c1d 2019-09-17        rkeene: xvfs.o: xvfs-core.h xvfs-core.c Makefile
a4f7828c1d 2019-09-17        rkeene: 	$(CC) $(CPPFLAGS) -DXVFS_MODE_SERVER $(CFLAGS) -o xvfs.o -c xvfs-core.c
a4f7828c1d 2019-09-17        rkeene: 
55084356ba 2019-09-17        rkeene: xvfs$(LIB_SUFFIX): xvfs.o Makefile
55084356ba 2019-09-17        rkeene: 	$(CC) $(CFLAGS) $(LDFLAGS) -shared -o xvfs$(LIB_SUFFIX) xvfs.o $(LIBS)
d80c88cee0 2019-09-16        rkeene: 
d80c88cee0 2019-09-16        rkeene: # xvfs-create-standalone is a standalone (i.e., no external dependencies
d80c88cee0 2019-09-16        rkeene: # like lib/minirivet, xvfs-core.c, etc) version of "xvfs-create"
511419642c 2019-09-16        rkeene: xvfs-create-standalone: $(shell find lib -type f) xvfs-create xvfs-core.c xvfs-core.h xvfs.c.rvt Makefile
d80c88cee0 2019-09-16        rkeene: 	rm -f xvfs-create-standalone.new xvfs-create-standalone
d80c88cee0 2019-09-16        rkeene: 	./xvfs-create --dump-tcl --remove-debug > xvfs-create-standalone.new
d80c88cee0 2019-09-16        rkeene: 	chmod +x xvfs-create-standalone.new
d80c88cee0 2019-09-16        rkeene: 	mv xvfs-create-standalone.new xvfs-create-standalone
d80c88cee0 2019-09-16        rkeene: 
55084356ba 2019-09-17        rkeene: test: example$(LIB_SUFFIX) xvfs$(LIB_SUFFIX) example-client$(LIB_SUFFIX) example-flexible$(LIB_SUFFIX) Makefile
d80c88cee0 2019-09-16        rkeene: 	rm -f __test__.tcl
55084356ba 2019-09-17        rkeene: 	echo 'if {[catch { eval $$::env(XVFS_TEST_LOAD_COMMANDS); source //xvfs:/example/main.tcl }]} { puts stderr $$::errorInfo; exit 1 }; exit 0' > __test__.tcl
55084356ba 2019-09-17        rkeene: 	@export XVFS_TEST_LOAD_COMMANDS; for XVFS_TEST_LOAD_COMMANDS in \
55084356ba 2019-09-17        rkeene: 		'load ./example$(LIB_SUFFIX) Xvfs_example' \
55084356ba 2019-09-17        rkeene: 		'load -global ./xvfs$(LIB_SUFFIX); load ./example-client$(LIB_SUFFIX) Xvfs_example' \
55084356ba 2019-09-17        rkeene: 		'load ./xvfs$(LIB_SUFFIX); load ./example-flexible$(LIB_SUFFIX) Xvfs_example' \
55084356ba 2019-09-17        rkeene: 		'load ./example-flexible$(LIB_SUFFIX) Xvfs_example'; do \
55084356ba 2019-09-17        rkeene: 			echo "[$${XVFS_TEST_LOAD_COMMANDS}] $(GDB) $(TCLSH) __test__.tcl $(TCL_TEST_ARGS)"; \
55084356ba 2019-09-17        rkeene: 			$(GDB) $(TCLSH) __test__.tcl $(TCL_TEST_ARGS) || exit 1; \
55084356ba 2019-09-17        rkeene: 	done
d80c88cee0 2019-09-16        rkeene: 	rm -f __test__.tcl
77d5262842 2019-09-16        rkeene: 
77d5262842 2019-09-16        rkeene: coverage:
77d5262842 2019-09-16        rkeene: 	$(MAKE) clean
55084356ba 2019-09-17        rkeene: 	$(MAKE) example$(LIB_SUFFIX) XVFS_ADD_CFLAGS=-coverage XVFS_ADD_LDFLAGS=-coverage
10f67b2ced 2019-09-16        rkeene: 	$(MAKE) test XVFS_TEST_EXIT_ON_FAILURE=0
77d5262842 2019-09-16        rkeene: 	rm -f xvfs-test-coverage.info
77d5262842 2019-09-16        rkeene: 	lcov --capture --directory . --output-file xvfs-test-coverage.info
77d5262842 2019-09-16        rkeene: 	rm -rf xvfs-test-coverage
77d5262842 2019-09-16        rkeene: 	mkdir xvfs-test-coverage
77d5262842 2019-09-16        rkeene: 	genhtml xvfs-test-coverage.info --output-directory xvfs-test-coverage
77d5262842 2019-09-16        rkeene: 	rm -f xvfs-test-coverage.info
0a9369ff13 2019-05-02        rkeene: 
0a9369ff13 2019-05-02        rkeene: clean:
d80c88cee0 2019-09-16        rkeene: 	rm -f xvfs-create-standalone.new xvfs-create-standalone
aa32555a0a 2019-06-22        rkeene: 	rm -f example.c example.c.new
55084356ba 2019-09-17        rkeene: 	rm -f example$(LIB_SUFFIX) example.o
55084356ba 2019-09-17        rkeene: 	rm -f example-client.o example-client$(LIB_SUFFIX)
55084356ba 2019-09-17        rkeene: 	rm -f example-flexible.o example-flexible$(LIB_SUFFIX)
55084356ba 2019-09-17        rkeene: 	rm -f xvfs.o xvfs$(LIB_SUFFIX)
77d5262842 2019-09-16        rkeene: 	rm -f example.gcda example.gcno
5583d77f1c 2019-09-14        rkeene: 	rm -f __test__.tcl
77d5262842 2019-09-16        rkeene: 	rm -f xvfs-test-coverage.info
77d5262842 2019-09-16        rkeene: 	rm -rf xvfs-test-coverage
0a9369ff13 2019-05-02        rkeene: 
0a9369ff13 2019-05-02        rkeene: distclean: clean
0a9369ff13 2019-05-02        rkeene: 
77d5262842 2019-09-16        rkeene: .PHONY: all clean distclean test coverage