Diff

Differences From Artifact [e0a242ebcc]:

To Artifact [d5b77089dc]:


    21     21   TCL_LIBS = $(shell . $(TCLCONFIG_SH_PATH); echo "$${TCL_LIB_SPEC}")
    22     22   
    23     23   all: appfsd
    24     24   
    25     25   appfsd: appfsd.o sha1.o
    26     26   	$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o appfsd appfsd.o sha1.o $(LIBS)
    27     27   
    28         -appfsd.o: appfsd.c appfsd.tcl.h
           28  +appfsd.o: appfsd.c appfsd.tcl.h pki.tcl.h
    29     29   	$(CC) $(CPPFLAGS) $(CFLAGS) -o appfsd.o -c appfsd.c
    30     30   
    31     31   sha1.o: sha1.c sha1.tcl.h
    32     32   	$(CC) $(CPPFLAGS) $(CFLAGS) -o sha1.o -c sha1.c
    33     33   
           34  +pki.tcl:
           35  +	rm -f pki.tcl.new
           36  +	curl http://core.tcl.tk/tcllib/raw/modules/asn/asn.tcl?name=aea6802a16e69c9f2d4f5eca20fdc23174609731 > pki.tcl.new
           37  +	curl http://core.tcl.tk/tcllib/raw/modules/aes/aes.tcl?name=94452b42b4ca98298ab1465c40fd87d11a40cf5e >> pki.tcl.new
           38  +	curl http://core.tcl.tk/tcllib/raw/modules/des/tcldes.tcl?name=ffea6ca6eb4468c0edef7a745b1dadc632ff5aeb >> pki.tcl.new
           39  +	curl http://core.tcl.tk/tcllib/raw/modules/des/des.tcl?name=5d8f3a7c1a6ea88ee988652643db8f06038aff49 >> pki.tcl.new
           40  +	curl http://core.tcl.tk/tcllib/raw/modules/math/bignum.tcl?name=3bc84d9b1f18c2e7360573381317c4dc9af731f9 >> pki.tcl.new
           41  +	curl http://core.tcl.tk/tcllib/raw/modules/md5/md5x.tcl?name=3cddfa803d680a79ab7dfac90edfd751f3d4fadd >> pki.tcl.new
           42  +	curl http://core.tcl.tk/tcllib/raw/modules/sha1/sha256.tcl?name=1fd001eb65e88c823b980456726079deae3512df >> pki.tcl.new
           43  +	curl 'http://core.tcl.tk/tcllib/raw/modules/pki/pki.tcl?name=8318fd31981dcc00bfadd6c427518f9d71a12b34' >> pki.tcl.new
           44  +	openssl sha1 pki.tcl.new | grep '918ddd77f485a58192b2e86230777092d790191a' >/dev/null
           45  +	mv pki.tcl.new pki.tcl
           46  +
    34     47   %.tcl.h: %.tcl
    35     48   	sed 's@[\\"]@\\&@g;s@^@   "@;s@$$@\\n"@' $^ > $@.new
    36     49   	mv $@.new $@
    37     50   
    38     51   install: appfsd appfs-cache appfs-mkfs
    39     52   	if [ ! -d '$(DESTDIR)$(sbindir)' ]; then mkdir -p '$(DESTDIR)$(sbindir)'; chmod 755 '$(DESTDIR)$(sbindir)'; fi
    40     53   	if [ ! -d '$(DESTDIR)$(bindir)' ]; then mkdir -p '$(DESTDIR)$(bindir)'; chmod 755 '$(DESTDIR)$(bindir)'; fi
................................................................................
    42     55   	cp appfs-cache '$(DESTDIR)$(sbindir)/'
    43     56   	cp appfs-mkfs '$(DESTDIR)$(bindir)/'
    44     57   
    45     58   clean:
    46     59   	rm -f appfsd appfsd.o
    47     60   	rm -f appfsd.tcl.h
    48     61   	rm -f sha1.o sha1.tcl.h
           62  +	rm -f pki.tcl.new pki.tcl.h
    49     63   
    50     64   distclean: clean
    51     65   
    52         -.PHONY: all test clean distclean install
           66  +mrproper: distclean
           67  +	rm -f pki.tcl
           68  +
           69  +.PHONY: all install clean distclean mrproper