Annotation For Makefile

Origin for each line in Makefile from check-in 3cae553059:

55084356ba 2019-09-17    1: TCL_CONFIG_SH := /usr/lib64/tclConfig.sh
2139fe19a8 2019-09-18    2: XVFS_ROOT_MOUNTPOINT := //xvfs:/
2139fe19a8 2019-09-18    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)
7225016a7e 2019-09-17    4: CFLAGS        := -fPIC -g3 -ggdb3 -Wall $(XVFS_ADD_CFLAGS)
55084356ba 2019-09-17    5: LDFLAGS       := $(XVFS_ADD_LDFLAGS)
55084356ba 2019-09-17    6: LIBS          := $(shell . "${TCL_CONFIG_SH}" && echo "$${TCL_STUB_LIB_SPEC}")
55084356ba 2019-09-17    7: TCLSH         := tclsh
55084356ba 2019-09-17    8: LIB_SUFFIX    := $(shell . "${TCL_CONFIG_SH}"; echo "$${TCL_SHLIB_SUFFIX:-.so}")
55084356ba 2019-09-17    9: 
d09edad10f 2019-09-17   10: all: example-standalone$(LIB_SUFFIX) example-client$(LIB_SUFFIX) example-flexible$(LIB_SUFFIX) xvfs$(LIB_SUFFIX)
55084356ba 2019-09-17   11: 
2b7fa3a8fa 2019-09-20   12: example.c: $(shell find example -type f) $(shell find lib -type f) lib/xvfs/xvfs.c.rvt xvfs-create Makefile
0a9369ff13 2019-05-02   13: 	./xvfs-create --directory example --name example > example.c.new
0a9369ff13 2019-05-02   14: 	mv example.c.new example.c
0a9369ff13 2019-05-02   15: 
d09edad10f 2019-09-17   16: example-standalone.o: example.c xvfs-core.h xvfs-core.c Makefile
d09edad10f 2019-09-17   17: 	$(CC) $(CPPFLAGS) -DXVFS_MODE_STANDALONE $(CFLAGS) -o example-standalone.o -c example.c
511419642c 2019-09-16   18: 
d09edad10f 2019-09-17   19: example-standalone$(LIB_SUFFIX): example-standalone.o Makefile
d09edad10f 2019-09-17   20: 	$(CC) $(CFLAGS) $(LDFLAGS) -shared -o example-standalone$(LIB_SUFFIX) example-standalone.o $(LIBS)
511419642c 2019-09-16   21: 
511419642c 2019-09-16   22: example-client.o: example.c xvfs-core.h Makefile
55084356ba 2019-09-17   23: 	$(CC) $(CPPFLAGS) -DXVFS_MODE_CLIENT $(CFLAGS) -o example-client.o -c example.c
55084356ba 2019-09-17   24: 
55084356ba 2019-09-17   25: example-client$(LIB_SUFFIX): example-client.o Makefile
55084356ba 2019-09-17   26: 	$(CC) $(CFLAGS) $(LDFLAGS) -shared -o example-client$(LIB_SUFFIX) example-client.o $(LIBS)
55084356ba 2019-09-17   27: 
55084356ba 2019-09-17   28: example-flexible.o: example.c xvfs-core.h Makefile
55084356ba 2019-09-17   29: 	$(CC) $(CPPFLAGS) -DXVFS_MODE_FLEXIBLE $(CFLAGS) -o example-flexible.o -c example.c
a4f7828c1d 2019-09-17   30: 
55084356ba 2019-09-17   31: example-flexible$(LIB_SUFFIX): example-flexible.o Makefile
55084356ba 2019-09-17   32: 	$(CC) $(CFLAGS) $(LDFLAGS) -shared -o example-flexible$(LIB_SUFFIX) example-flexible.o $(LIBS)
a4f7828c1d 2019-09-17   33: 
a4f7828c1d 2019-09-17   34: xvfs.o: xvfs-core.h xvfs-core.c Makefile
a4f7828c1d 2019-09-17   35: 	$(CC) $(CPPFLAGS) -DXVFS_MODE_SERVER $(CFLAGS) -o xvfs.o -c xvfs-core.c
a4f7828c1d 2019-09-17   36: 
55084356ba 2019-09-17   37: xvfs$(LIB_SUFFIX): xvfs.o Makefile
55084356ba 2019-09-17   38: 	$(CC) $(CFLAGS) $(LDFLAGS) -shared -o xvfs$(LIB_SUFFIX) xvfs.o $(LIBS)
d80c88cee0 2019-09-16   39: 
d80c88cee0 2019-09-16   40: # xvfs-create-standalone is a standalone (i.e., no external dependencies
d80c88cee0 2019-09-16   41: # like lib/minirivet, xvfs-core.c, etc) version of "xvfs-create"
2b7fa3a8fa 2019-09-20   42: xvfs-create-standalone: $(shell find lib -type f) xvfs-create xvfs-core.c xvfs-core.h lib/xvfs/xvfs.c.rvt Makefile
d80c88cee0 2019-09-16   43: 	rm -f xvfs-create-standalone.new xvfs-create-standalone
d80c88cee0 2019-09-16   44: 	./xvfs-create --dump-tcl --remove-debug > xvfs-create-standalone.new
d80c88cee0 2019-09-16   45: 	chmod +x xvfs-create-standalone.new
d80c88cee0 2019-09-16   46: 	mv xvfs-create-standalone.new xvfs-create-standalone
d80c88cee0 2019-09-16   47: 
ca3a163ab4 2019-09-20   48: xvfs_random$(LIB_SUFFIX): $(shell find example -type f) $(shell find lib -type f) lib/xvfs/xvfs.c.rvt xvfs-create-random Makefile
9b49bfa195 2019-09-20   49: 	./xvfs-create-random | $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -DXVFS_MODE_FLEXIBLE -x c - -shared -o xvfs_random$(LIB_SUFFIX) $(LIBS)
ca3a163ab4 2019-09-20   50: 
ca3a163ab4 2019-09-20   51: xvfs_synthetic$(LIB_SUFFIX): $(shell find lib -type f) lib/xvfs/xvfs.c.rvt xvfs-create-synthetic Makefile
9b49bfa195 2019-09-20   52: 	./xvfs-create-synthetic | $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -DXVFS_MODE_FLEXIBLE -x c - -shared -o xvfs_synthetic$(LIB_SUFFIX) $(LIBS)
ca3a163ab4 2019-09-20   53: 
3cae553059 2019-09-20   54: do-benchmark:
7225016a7e 2019-09-17   55: 	$(MAKE) clean all XVFS_ADD_CPPFLAGS="-UXVFS_DEBUG" XVFS_ADD_CFLAGS="-g0 -ggdb0 -s -O3"
b0e3b6588f 2019-09-17   56: 	./benchmark.tcl
b0e3b6588f 2019-09-17   57: 
d09edad10f 2019-09-17   58: test: example-standalone$(LIB_SUFFIX) xvfs$(LIB_SUFFIX) example-client$(LIB_SUFFIX) example-flexible$(LIB_SUFFIX) Makefile
d80c88cee0 2019-09-16   59: 	rm -f __test__.tcl
2139fe19a8 2019-09-18   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
2139fe19a8 2019-09-18   61: 	@export XVFS_ROOT_MOUNTPOINT; export XVFS_TEST_LOAD_COMMANDS; for XVFS_TEST_LOAD_COMMANDS in \
d09edad10f 2019-09-17   62: 		'load ./example-standalone$(LIB_SUFFIX) Xvfs_example' \
55084356ba 2019-09-17   63: 		'load -global ./xvfs$(LIB_SUFFIX); load ./example-client$(LIB_SUFFIX) Xvfs_example' \
55084356ba 2019-09-17   64: 		'load ./xvfs$(LIB_SUFFIX); load ./example-flexible$(LIB_SUFFIX) Xvfs_example' \
55084356ba 2019-09-17   65: 		'load ./example-flexible$(LIB_SUFFIX) Xvfs_example'; do \
55084356ba 2019-09-17   66: 			echo "[$${XVFS_TEST_LOAD_COMMANDS}] $(GDB) $(TCLSH) __test__.tcl $(TCL_TEST_ARGS)"; \
55084356ba 2019-09-17   67: 			$(GDB) $(TCLSH) __test__.tcl $(TCL_TEST_ARGS) || exit 1; \
55084356ba 2019-09-17   68: 	done
d80c88cee0 2019-09-16   69: 	rm -f __test__.tcl
77d5262842 2019-09-16   70: 
3cae553059 2019-09-20   71: do-test: test
3cae553059 2019-09-20   72: 
3cae553059 2019-09-20   73: do-coverage:
77d5262842 2019-09-16   74: 	$(MAKE) clean
d1ae68c7a1 2019-09-17   75: 	$(MAKE) XVFS_ADD_CFLAGS=-coverage XVFS_ADD_LDFLAGS=-coverage
10f67b2ced 2019-09-16   76: 	$(MAKE) test XVFS_TEST_EXIT_ON_FAILURE=0
77d5262842 2019-09-16   77: 	rm -f xvfs-test-coverage.info
77d5262842 2019-09-16   78: 	lcov --capture --directory . --output-file xvfs-test-coverage.info
77d5262842 2019-09-16   79: 	rm -rf xvfs-test-coverage
77d5262842 2019-09-16   80: 	mkdir xvfs-test-coverage
77d5262842 2019-09-16   81: 	genhtml xvfs-test-coverage.info --output-directory xvfs-test-coverage
77d5262842 2019-09-16   82: 	rm -f xvfs-test-coverage.info
3cae553059 2019-09-20   83: 
3cae553059 2019-09-20   84: profile: profile.c Makefile
3cae553059 2019-09-20   85: 	rm -f example-client$(LIB_SUFFIX) xvfs$(LIB_SUFFIX)
3cae553059 2019-09-20   86: 	$(MAKE) xvfs$(LIB_SUFFIX) example-client$(LIB_SUFFIX) XVFS_ADD_CPPFLAGS="-UXVFS_DEBUG"
3cae553059 2019-09-20   87: 	$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -UUSE_TCL_STUBS ./xvfs$(LIB_SUFFIX) ./example-client$(LIB_SUFFIX) -o profile profile.c -ltcl
3cae553059 2019-09-20   88: 
3cae553059 2019-09-20   89: do-profile: profile Makefile
3cae553059 2019-09-20   90: 	rm -rf oprofile_data
3cae553059 2019-09-20   91: 	LD_LIBRARY_PATH='$(shell pwd):$(LD_LIBRARY_PATH)' operf ./profile
3cae553059 2019-09-20   92: 	opreport
2f92a3a715 2019-09-17   93: 
0a9369ff13 2019-05-02   94: clean:
d80c88cee0 2019-09-16   95: 	rm -f xvfs-create-standalone.new xvfs-create-standalone
aa32555a0a 2019-06-22   96: 	rm -f example.c example.c.new
d09edad10f 2019-09-17   97: 	rm -f example-standalone$(LIB_SUFFIX) example-standalone.o
55084356ba 2019-09-17   98: 	rm -f example-client.o example-client$(LIB_SUFFIX)
55084356ba 2019-09-17   99: 	rm -f example-flexible.o example-flexible$(LIB_SUFFIX)
55084356ba 2019-09-17  100: 	rm -f xvfs.o xvfs$(LIB_SUFFIX)
2f92a3a715 2019-09-17  101: 	rm -f example-standalone.gcda example-standalone.gcno
2f92a3a715 2019-09-17  102: 	rm -f example-client.gcda example-client.gcno
2f92a3a715 2019-09-17  103: 	rm -f example-flexible.gcda example-flexible.gcno
ca3a163ab4 2019-09-20  104: 	rm -f xvfs_random$(LIB_SUFFIX) xvfs_synthetic$(LIB_SUFFIX)
2f92a3a715 2019-09-17  105: 	rm -f xvfs.gcda xvfs.gcno
5583d77f1c 2019-09-14  106: 	rm -f __test__.tcl
3cae553059 2019-09-20  107: 	rm -f profile
3cae553059 2019-09-20  108: 	rm -rf oprofile_data
77d5262842 2019-09-16  109: 	rm -f xvfs-test-coverage.info
77d5262842 2019-09-16  110: 	rm -rf xvfs-test-coverage
0a9369ff13 2019-05-02  111: 
0a9369ff13 2019-05-02  112: distclean: clean
0a9369ff13 2019-05-02  113: 
3cae553059 2019-09-20  114: .PHONY: all clean distclean test do-test do-coverage do-benchmark do-profile