Origin for each line in
Makefile
from check-in 5583d77f1c:
88f96696b7 2019-05-03 1: CPPFLAGS := -I. -DUSE_TCL_STUBS=1 -DXVFS_MODE_FLEXIBLE
e5b6962adf 2019-05-02 2: CFLAGS := -fPIC -g3 -ggdb3 -Wall
e5b6962adf 2019-05-02 3: LDFLAGS :=
9bcf758fef 2019-05-08 4: LIBS := -ltclstub8.6
5583d77f1c 2019-09-14 5: TCLSH := tclsh
e5b6962adf 2019-05-02 6:
0a9369ff13 2019-05-02 7: all: example.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
e5b6962adf 2019-05-02 14: $(CC) $(CPPFLAGS) $(CFLAGS) -o example.o -c example.c
e5b6962adf 2019-05-02 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)
e90770a5a7 2019-05-02 18:
f74a2e47ab 2019-05-02 19: test: example.so
5583d77f1c 2019-09-14 20: rm -f __test__.tcl
5583d77f1c 2019-09-14 21: echo 'if {[catch { load ./example.so Xvfs_example; source //xvfs:/example/main.tcl }]} { puts stderr $$::errorInfo; exit 1 }; exit 0' > __test__.tcl
5583d77f1c 2019-09-14 22: $(GDB) $(TCLSH) __test__.tcl
5583d77f1c 2019-09-14 23: rm -f __test__.tcl
0a9369ff13 2019-05-02 24:
0a9369ff13 2019-05-02 25: clean:
aa32555a0a 2019-06-22 26: rm -f example.c example.c.new
aa32555a0a 2019-06-22 27: rm -f example.so example.o
5583d77f1c 2019-09-14 28: rm -f __test__.tcl
0a9369ff13 2019-05-02 29:
0a9369ff13 2019-05-02 30: distclean: clean
0a9369ff13 2019-05-02 31:
0a9369ff13 2019-05-02 32: .PHONY: all clean distclean test