Origin for each line in
Makefile
from check-in a101629cc6:
511419642c 2019-09-16 1: CPPFLAGS := -I. -DUSE_TCL_STUBS=1 -DXVFS_DEBUG $(XVFS_ADD_CPPFLAGS)
77d5262842 2019-09-16 2: CFLAGS := -fPIC -g3 -ggdb3 -Wall $(XVFS_ADD_CFLAGS)
77d5262842 2019-09-16 3: LDFLAGS := $(XVFS_ADD_LDFLAGS)
9bcf758fef 2019-05-08 4: LIBS := -ltclstub8.6
5583d77f1c 2019-09-14 5: TCLSH := tclsh
e5b6962adf 2019-05-02 6:
a101629cc6 2019-09-17 7: all: example.so example-client.so example-server.so
0a9369ff13 2019-05-02 8:
e90770a5a7 2019-05-02 9: example.c: $(shell find example -type f) $(shell find lib -type f) xvfs.c.rvt xvfs-create Makefile
0a9369ff13 2019-05-02 10: ./xvfs-create --directory example --name example > example.c.new
0a9369ff13 2019-05-02 11: mv example.c.new example.c
0a9369ff13 2019-05-02 12:
b8cca3a6b4 2019-05-08 13: example.o: example.c xvfs-core.h xvfs-core.c Makefile
511419642c 2019-09-16 14: $(CC) $(CPPFLAGS) -DXVFS_MODE_FLEXIBLE $(CFLAGS) -o example.o -c example.c
b8cca3a6b4 2019-05-08 15:
b8cca3a6b4 2019-05-08 16: example.so: example.o Makefile
b8cca3a6b4 2019-05-08 17: $(CC) $(CFLAGS) $(LDFLAGS) -shared -o example.so example.o $(LIBS)
b8cca3a6b4 2019-05-08 18:
511419642c 2019-09-16 19: example-client.o: example.c xvfs-core.h Makefile
f1d16a3958 2019-09-17 20: $(CC) $(CPPFLAGS) -DXVFS_MODE_FLEXIBLE $(CFLAGS) -o example-client.o -c example.c
f1d16a3958 2019-09-17 21:
a101629cc6 2019-09-17 22: example-client.so: example-client.o Makefile
a101629cc6 2019-09-17 23: $(CC) $(CFLAGS) $(LDFLAGS) -shared -o example-client.so example-client.o $(LIBS)
a101629cc6 2019-09-17 24:
511419642c 2019-09-16 25: example-server.o: xvfs-core.h xvfs-core.c Makefile
511419642c 2019-09-16 26: $(CC) $(CPPFLAGS) -DXVFS_MODE_SERVER $(CFLAGS) -o example-server.o -c xvfs-core.c
511419642c 2019-09-16 27:
a101629cc6 2019-09-17 28: example-server.so: example-server.o Makefile
a101629cc6 2019-09-17 29: $(CC) $(CFLAGS) $(LDFLAGS) -shared -o example-server.so example-server.o $(LIBS)
511419642c 2019-09-16 30:
d80c88cee0 2019-09-16 31: # xvfs-create-standalone is a standalone (i.e., no external dependencies
d80c88cee0 2019-09-16 32: # like lib/minirivet, xvfs-core.c, etc) version of "xvfs-create"
511419642c 2019-09-16 33: xvfs-create-standalone: $(shell find lib -type f) xvfs-create xvfs-core.c xvfs-core.h xvfs.c.rvt Makefile
d80c88cee0 2019-09-16 34: rm -f xvfs-create-standalone.new xvfs-create-standalone
d80c88cee0 2019-09-16 35: ./xvfs-create --dump-tcl --remove-debug > xvfs-create-standalone.new
d80c88cee0 2019-09-16 36: chmod +x xvfs-create-standalone.new
d80c88cee0 2019-09-16 37: mv xvfs-create-standalone.new xvfs-create-standalone
d80c88cee0 2019-09-16 38:
a101629cc6 2019-09-17 39: test: example.so example-server.so example-client.so Makefile
a101629cc6 2019-09-17 40: rm -f __test__.tcl
a101629cc6 2019-09-17 41: echo 'if {[catch { load ./example.so Xvfs_example; source //xvfs:/example/main.tcl }]} { puts stderr $$::errorInfo; exit 1 }; exit 0' > __test__.tcl
a101629cc6 2019-09-17 42: $(GDB) $(TCLSH) __test__.tcl $(TCL_TEST_ARGS)
511419642c 2019-09-16 43: rm -f __test__.tcl
a101629cc6 2019-09-17 44: echo 'if {[catch { load ./example-server.so Xvfs; load ./example-client.so Xvfs_example; source //xvfs:/example/main.tcl }]} { puts stderr $$::errorInfo; exit 1 }; exit 0' > __test__.tcl
a101629cc6 2019-09-17 45: $(GDB) $(TCLSH) __test__.tcl $(TCL_TEST_ARGS)
77d5262842 2019-09-16 46: rm -f __test__.tcl
77d5262842 2019-09-16 47:
77d5262842 2019-09-16 48: coverage:
77d5262842 2019-09-16 49: $(MAKE) clean
77d5262842 2019-09-16 50: $(MAKE) example.so XVFS_ADD_CFLAGS=-coverage XVFS_ADD_LDFLAGS=-coverage
10f67b2ced 2019-09-16 51: $(MAKE) test XVFS_TEST_EXIT_ON_FAILURE=0
77d5262842 2019-09-16 52: rm -f xvfs-test-coverage.info
77d5262842 2019-09-16 53: lcov --capture --directory . --output-file xvfs-test-coverage.info
77d5262842 2019-09-16 54: rm -rf xvfs-test-coverage
77d5262842 2019-09-16 55: mkdir xvfs-test-coverage
77d5262842 2019-09-16 56: genhtml xvfs-test-coverage.info --output-directory xvfs-test-coverage
77d5262842 2019-09-16 57: rm -f xvfs-test-coverage.info
0a9369ff13 2019-05-02 58:
0a9369ff13 2019-05-02 59: clean:
d80c88cee0 2019-09-16 60: rm -f xvfs-create-standalone.new xvfs-create-standalone
aa32555a0a 2019-06-22 61: rm -f example.c example.c.new
aa32555a0a 2019-06-22 62: rm -f example.so example.o
a101629cc6 2019-09-17 63: rm -f example-client.o example-server.o
a101629cc6 2019-09-17 64: rm -f example-client.so example-server.so
77d5262842 2019-09-16 65: rm -f example.gcda example.gcno
5583d77f1c 2019-09-14 66: rm -f __test__.tcl
77d5262842 2019-09-16 67: rm -f xvfs-test-coverage.info
77d5262842 2019-09-16 68: rm -rf xvfs-test-coverage
0a9369ff13 2019-05-02 69:
0a9369ff13 2019-05-02 70: distclean: clean
0a9369ff13 2019-05-02 71:
77d5262842 2019-09-16 72: .PHONY: all clean distclean test coverage