Updating the examples to include the recent set.

This commit is contained in:
Ian A. Mason 2019-07-29 16:39:02 -07:00
parent dd2cde4454
commit a71109d5a9

27
examples/thttpd/Makefile Normal file
View File

@ -0,0 +1,27 @@
SRC="http://acme.com/software/thttpd/thttpd-2.27.tar.gz"
all: thttpd.bc
thttpd-2.27.tar.gz:
curl -L ${SRC} > thttpd-2.27.tar.gz
thttpd-2.27.tar: thttpd-2.27.tar.gz
gunzip -k thttpd-2.27.tar.gz
thttpd-2.27: thttpd-2.27.tar
tar xvf thttpd-2.27.tar
thttpd-2.27/thttpd: thttpd-2.27
cd thttpd-2.27; CC=gclang ./configure; make; get-bc thttpd; mv thttpd.bc ..
thttpd.bc: thttpd-2.27/thttpd
get-bc -o thttpd.bc thttpd-2.27/thttpd
clean:
rm -rf thttpd-2.27 thttpd-2.27.tar thttpd.bc thttpd
spotless: clean
rm -f thttpd-2.27.tar.gz
.PHONY: clean distclean