Index: Makefile ================================================================== --- Makefile +++ Makefile @@ -1,15 +1,15 @@ all: example.so -example.c: $(shell find example -type f) $(shell find lib -type f) xvfs.c.rvt xvfs-create +example.c: $(shell find example -type f) $(shell find lib -type f) xvfs.c.rvt xvfs-create Makefile ./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.o: example.c xvfs-core.h Makefile + cc -Wall -I. -o example.o -c example.c -example.so: example.o +example.so: example.o Makefile cc -shared -o example.so example.o test: @echo not implemented Index: lib/xvfs/xvfs.tcl ================================================================== --- lib/xvfs/xvfs.tcl +++ lib/xvfs/xvfs.tcl @@ -82,11 +82,11 @@ puts "\t\{" puts "\t\t.name = \"[sanitizeCString $outputFile]\"," puts "\t\t.type = $type," puts "\t\t.size = $size," - puts "\t\t.data = $data" + puts "\t\t.data = (unsigned char *) $data" puts "\t\}," } proc ::xvfs::processDirectory {fsName directory {subDirectory ""}} { set subDirectories [list]