Lines of
Makefile
from check-in 9bcf758fef
that are changed by the sequence of edits moving toward
check-in b8cca3a6b4:
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:
9bcf758fef 2019-05-08 12: example.o: example.c xvfs-core.h Makefile
13: $(CC) $(CPPFLAGS) $(CFLAGS) -o example.o -c example.c
14:
9bcf758fef 2019-05-08 15: xvfs-core.o: xvfs-core.c xvfs-core.h Makefile
9bcf758fef 2019-05-08 16: $(CC) $(CPPFLAGS) $(CFLAGS) -o xvfs-core.o -c xvfs-core.c
9bcf758fef 2019-05-08 17:
9bcf758fef 2019-05-08 18: example.so: example.o xvfs-core.o Makefile
9bcf758fef 2019-05-08 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
9bcf758fef 2019-05-08 26: rm -f xvfs-core.o
27:
28: distclean: clean
29:
30: .PHONY: all clean distclean test