Overview
Comment: | For now, build with a libtclkit |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: | eb0e4ee1e1b9fd02fd63eb80a0e7c17a07ed945d |
User & Date: | rkeene on 2014-09-07 11:24:19 |
Other Links: | manifest | tags |
Context
2014-09-08
| ||
01:24 | More work on basics check-in: a189f64907 user: rkeene tags: trunk | |
2014-09-07
| ||
11:24 | For now, build with a libtclkit check-in: eb0e4ee1e1 user: rkeene tags: trunk | |
11:08 | Updated database schema to be more realistic check-in: 0c74d63215 user: rkeene tags: trunk | |
Changes
Modified Makefile from [ca54464a99] to [ee7ac2e5da].
1 1 CC = gcc 2 2 PKG_CONFIG = pkg-config 3 -TCL_CFLAGS = 4 -TCL_LDFLAGS = 5 -TCL_LIBS = -ltcl 6 3 CFLAGS = -Wall -g3 $(shell $(PKG_CONFIG) --cflags fuse) $(TCL_CFLAGS) 7 4 LDFLAGS = $(TCL_LDFLAGS) 8 5 LIBS = $(shell $(PKG_CONFIG) --libs fuse) $(TCL_LIBS) 9 6 PREFIX = /usr/local 10 7 prefix = $(PREFIX) 11 8 bindir = $(prefix)/bin 12 9 10 +TCLKIT_SDK_DIR = $(shell pwd)/build/libtclkit-sdk-cvs_HEAD 11 +ifneq ($(TCLKIT_SDK_DIR),) 12 +TCLCONFIG_SH_PATH = $(TCLKIT_SDK_DIR)/lib/tclConfig.sh 13 +TCL_LDFLAGS = -Wl,-R,$(TCLKIT_SDK_DIR)/lib 14 +export TCLKIT_SDK_DIR 15 +else 16 +TCLCONFIG_SH_PATH = /usr/lib64/tclConfig.sh 17 +endif 18 +TCL_CFLAGS = $(shell . $(TCLCONFIG_SH_PATH); echo "$${TCL_INCLUDE_SPEC}") 19 +TCL_LIBS = $(shell . $(TCLCONFIG_SH_PATH); echo "$${TCL_LIB_SPEC}") 20 + 13 21 all: appfs 14 22 15 23 appfs: appfs.o 16 24 $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o appfs appfs.o $(LIBS) 17 25 18 26 appfs-test: appfs-test.o 19 27 $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o appfs-test appfs-test.o $(LIBS)
Modified appfs.tcl from [1f2b586ac3] to [aa538226b7].
1 1 #! /usr/bin/env tclsh 2 2 3 -package require http 3 +package require http 2.5 4 4 5 5 namespace eval ::appfs { 6 6 variable sites [list] 7 7 variable cachedir "/tmp/appfs-cache" 8 8 9 9 proc _hash_sep {hash {seps 4}} { 10 10 for {set idx 0} {$idx < $seps} {incr idx} {