Origin for each line in
Makefile
from check-in 3e44e1def1:
3e44e1def1 2019-05-02 1: CPPFLAGS := -I. -DUSE_TCL_STUBS=1 -DXVFS_MODE_STANDALONE
e5b6962adf 2019-05-02 2: CFLAGS := -fPIC -g3 -ggdb3 -Wall
e5b6962adf 2019-05-02 3: LDFLAGS :=
e5b6962adf 2019-05-02 4: LIBS := -ltclstub8.6
e5b6962adf 2019-05-02 5:
0a9369ff13 2019-05-02 6: all: example.so
0a9369ff13 2019-05-02 7:
e90770a5a7 2019-05-02 8: example.c: $(shell find example -type f) $(shell find lib -type f) xvfs.c.rvt xvfs-create Makefile
0a9369ff13 2019-05-02 9: ./xvfs-create --directory example --name example > example.c.new
0a9369ff13 2019-05-02 10: mv example.c.new example.c
0a9369ff13 2019-05-02 11:
e90770a5a7 2019-05-02 12: example.o: example.c xvfs-core.h Makefile
e5b6962adf 2019-05-02 13: $(CC) $(CPPFLAGS) $(CFLAGS) -o example.o -c example.c
69e476dcd5 2019-05-02 14:
69e476dcd5 2019-05-02 15: xvfs-core.o: xvfs-core.c xvfs-core.h Makefile
e5b6962adf 2019-05-02 16: $(CC) $(CPPFLAGS) $(CFLAGS) -o xvfs-core.o -c xvfs-core.c
e90770a5a7 2019-05-02 17:
69e476dcd5 2019-05-02 18: example.so: example.o xvfs-core.o Makefile
e5b6962adf 2019-05-02 19: $(CC) $(CFLAGS) $(LDFLAGS) -shared -o example.so example.o xvfs-core.o $(LIBS)
e90770a5a7 2019-05-02 20:
f74a2e47ab 2019-05-02 21: test: example.so
d121970301 2019-05-02 22: echo 'if {[catch { load ./example.so Xvfs_example; source //xvfs:/example/main.tcl }]} { puts stderr $$::errorInfo; exit 1 }; exit 0' | tclsh
0a9369ff13 2019-05-02 23:
0a9369ff13 2019-05-02 24: clean:
0a9369ff13 2019-05-02 25: rm -f example.so example.o example.c
d121970301 2019-05-02 26: rm -f xvfs-core.o
0a9369ff13 2019-05-02 27:
0a9369ff13 2019-05-02 28: distclean: clean
0a9369ff13 2019-05-02 29:
0a9369ff13 2019-05-02 30: .PHONY: all clean distclean test