Lines of
Makefile
from check-in aa32555a0a
that are changed by the sequence of edits moving toward
check-in 5583d77f1c:
1: CPPFLAGS := -I. -DUSE_TCL_STUBS=1 -DXVFS_MODE_FLEXIBLE
2: CFLAGS := -fPIC -g3 -ggdb3 -Wall
3: LDFLAGS :=
4: LIBS := -ltclstub8.6
5:
6: all: example.so
7:
8: example.c: $(shell find example -type f) $(shell find lib -type f) xvfs.c.rvt xvfs-create Makefile
9: ./xvfs-create --directory example --name example > example.c.new
10: mv example.c.new example.c
11:
12: example.o: example.c xvfs-core.h xvfs-core.c Makefile
13: $(CC) $(CPPFLAGS) $(CFLAGS) -o example.o -c example.c
14:
15: example.so: example.o Makefile
16: $(CC) $(CFLAGS) $(LDFLAGS) -shared -o example.so example.o $(LIBS)
17:
18: test: example.so
aa32555a0a 2019-06-22 19: echo 'if {[catch { load ./example.so Xvfs_example; source //xvfs:/example/main.tcl }]} { puts stderr $$::errorInfo; exit 1 }; exit 0' | tclsh
20:
21: clean:
22: rm -f example.c example.c.new
23: rm -f example.so example.o
24:
25: distclean: clean
26:
27: .PHONY: all clean distclean test