ADDED .fossil-settings/ignore-glob Index: .fossil-settings/ignore-glob ================================================================== --- /dev/null +++ .fossil-settings/ignore-glob @@ -0,0 +1,3 @@ +example.c +example.o +example.so ADDED Makefile Index: Makefile ================================================================== --- /dev/null +++ Makefile @@ -0,0 +1,21 @@ +all: example.so + +example.c: $(shell find example -type f) $(shell find lib -type f) xvfs.c.rvt xvfs-create + ./xvfs-create --directory example --name example > example.c.new + mv example.c.new example.c + +example.o: example.c xvfs-core.h + cc -I. -o example.o -c example.c + +example.so: example.o + cc -shared -o example.so example.o + +test: + @echo not implemented + +clean: + rm -f example.so example.o example.c + +distclean: clean + +.PHONY: all clean distclean test ADDED example/lib/hello/hello.tcl Index: example/lib/hello/hello.tcl ================================================================== --- /dev/null +++ example/lib/hello/hello.tcl @@ -0,0 +1,2 @@ +namespace eval ::hello { proc ::hello::world {} {} } +package provide hello 0 ADDED example/lib/hello/pkgIndex.tcl Index: example/lib/hello/pkgIndex.tcl ================================================================== --- /dev/null +++ example/lib/hello/pkgIndex.tcl @@ -0,0 +1,1 @@ +package ifneeded hello 0 [list source [file join $dir hello.tcl]] ADDED example/main.tcl Index: example/main.tcl ================================================================== --- /dev/null +++ example/main.tcl @@ -0,0 +1,1 @@ +puts "Hello World"