Diff

Differences From Artifact [51fd163395]:

To Artifact [66bca1d85f]:


    13     13   export TCLKIT_SDK_DIR
    14     14   else
    15     15   TCLCONFIG_SH_PATH = $(shell echo 'puts [::tcl::pkgconfig get libdir,install]' | tclsh)/tclConfig.sh
    16     16   endif
    17     17   TCL_CFLAGS = $(shell . $(TCLCONFIG_SH_PATH); echo "$${TCL_INCLUDE_SPEC}")
    18     18   TCL_LIBS = $(shell . $(TCLCONFIG_SH_PATH); echo "$${TCL_LIB_SPEC}")
    19     19   
    20         -all: appfs
           20  +all: appfsd
    21     21   
    22         -appfs: appfs.o
    23         -	$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o appfs appfs.o $(LIBS)
           22  +appfsd: appfsd.o
           23  +	$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o appfsd appfsd.o $(LIBS)
    24     24   
    25         -appfs-test: appfs-test.o
    26         -	$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o appfs-test appfs-test.o $(LIBS)
           25  +appfsd.o: appfsd.c appfsd.tcl.h
           26  +	$(CC) $(CPPFLAGS) $(CFLAGS) -o appfsd.o -c appfsd.c
    27     27   
    28         -appfs.o: appfs.c appfs.tcl.h
    29         -	$(CC) $(CPPFLAGS) $(CFLAGS) -o appfs.o -c appfs.c
           28  +appfsd.tcl.h: appfsd.tcl stringify.tcl
           29  +	./stringify.tcl appfsd.tcl > appfsd.tcl.h.new
           30  +	mv appfsd.tcl.h.new appfsd.tcl.h
    30     31   
    31         -appfs-test.o: appfs.c appfs.tcl.h
    32         -	$(CC) $(CPPFLAGS) $(CFLAGS) -DAPPFS_TEST_DRIVER=1 -o appfs-test.o -c appfs.c
    33         -
    34         -appfs.tcl.h: appfs.tcl stringify.tcl
    35         -	./stringify.tcl appfs.tcl > appfs.tcl.h.new
    36         -	mv appfs.tcl.h.new appfs.tcl.h
    37         -
    38         -install: appfs
    39         -	cp appfs $(bindir)
    40         -
    41         -test: appfs-test
    42         -	./appfs-test
           32  +install: appfsd
           33  +	cp appfsd $(bindir)
    43     34   
    44     35   clean:
    45         -	rm -f appfs appfs.o
    46         -	rm -f appfs-test appfs-test.o
    47         -	rm -f appfs.tcl.h
           36  +	rm -f appfsd appfsd.o
           37  +	rm -f appfsd.tcl.h
    48     38   
    49     39   distclean: clean
    50     40   
    51     41   .PHONY: all test clean distclean install