Lines of
Makefile
from check-in 88f96696b7
that are changed by the sequence of edits moving toward
check-in 9bcf758fef:
1: CPPFLAGS := -I. -DUSE_TCL_STUBS=1 -DXVFS_MODE_FLEXIBLE
2: CFLAGS := -fPIC -g3 -ggdb3 -Wall
3: LDFLAGS :=
88f96696b7 2019-05-03 4: LIBS := -ltclstub8.6 -ldl
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 Makefile
13: $(CC) $(CPPFLAGS) $(CFLAGS) -o example.o -c example.c
14:
15: xvfs-core.o: xvfs-core.c xvfs-core.h Makefile
16: $(CC) $(CPPFLAGS) $(CFLAGS) -o xvfs-core.o -c xvfs-core.c
17:
18: example.so: example.o xvfs-core.o Makefile
19: $(CC) $(CFLAGS) $(LDFLAGS) -shared -o example.so example.o xvfs-core.o $(LIBS)
20:
21: test: example.so
22: echo 'if {[catch { load ./example.so Xvfs_example; source //xvfs:/example/main.tcl }]} { puts stderr $$::errorInfo; exit 1 }; exit 0' | tclsh
23:
24: clean:
25: rm -f example.so example.o example.c
26: rm -f xvfs-core.o
27:
28: distclean: clean
29:
30: .PHONY: all clean distclean test