Lines of
Makefile
from check-in b8cca3a6b4
that are changed by the sequence of edits moving toward
check-in aa32555a0a:
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
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:
b8cca3a6b4 2019-05-08 22: rm -f example.so example.o example.c
23:
24: distclean: clean
25:
26: .PHONY: all clean distclean test