Origin for each line in
Makefile
from check-in d80c88cee0:
d80c88cee0 2019-09-16 rkeene: CPPFLAGS := -I. -DUSE_TCL_STUBS=1 -DXVFS_MODE_FLEXIBLE -DXVFS_DEBUG
e5b6962adf 2019-05-02 rkeene: CFLAGS := -fPIC -g3 -ggdb3 -Wall
e5b6962adf 2019-05-02 rkeene: LDFLAGS :=
9bcf758fef 2019-05-08 rkeene: LIBS := -ltclstub8.6
5583d77f1c 2019-09-14 rkeene: TCLSH := tclsh
e5b6962adf 2019-05-02 rkeene:
0a9369ff13 2019-05-02 rkeene: all: example.so
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
e5b6962adf 2019-05-02 rkeene: $(CC) $(CPPFLAGS) $(CFLAGS) -o example.o -c example.c
e5b6962adf 2019-05-02 rkeene:
b8cca3a6b4 2019-05-08 rkeene: example.so: example.o Makefile
b8cca3a6b4 2019-05-08 rkeene: $(CC) $(CFLAGS) $(LDFLAGS) -shared -o example.so example.o $(LIBS)
e5b6962adf 2019-05-02 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"
d80c88cee0 2019-09-16 rkeene: xvfs-create-standalone: $(shell find lib -type f) xvfs-create xvfs-core.c xvfs-core.h xvfs.c.rvt
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:
f74a2e47ab 2019-05-02 rkeene: test: example.so
5583d77f1c 2019-09-14 rkeene: rm -f __test__.tcl
5583d77f1c 2019-09-14 rkeene: echo 'if {[catch { load ./example.so Xvfs_example; source //xvfs:/example/main.tcl }]} { puts stderr $$::errorInfo; exit 1 }; exit 0' > __test__.tcl
d80c88cee0 2019-09-16 rkeene: $(GDB) $(TCLSH) __test__.tcl $(TCL_TEST_ARGS)
5583d77f1c 2019-09-14 rkeene: rm -f __test__.tcl
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
aa32555a0a 2019-06-22 rkeene: rm -f example.so example.o
5583d77f1c 2019-09-14 rkeene: rm -f __test__.tcl
0a9369ff13 2019-05-02 rkeene:
0a9369ff13 2019-05-02 rkeene: distclean: clean
0a9369ff13 2019-05-02 rkeene:
0a9369ff13 2019-05-02 rkeene: .PHONY: all clean distclean test