Lines of
Makefile
from check-in e5b6962adf
that are changed by the sequence of edits moving toward
check-in d121970301:
1: CPPFLAGS := -I. -DUSE_TCL_STUBS=1
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 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
e5b6962adf 2019-05-02 22: echo 'if {[catch { load ./example.so Xvfs_example; source //xvfs:/main.tcl }]} { puts stderr $$::errorInfo; exit 1 }; exit 0' | tclsh
23:
24: clean:
25: rm -f example.so example.o example.c
26:
27: distclean: clean
28:
29: .PHONY: all clean distclean test