mirror of
https://github.com/danog/gllvm.git
synced 2024-12-11 18:09:37 +01:00
28 lines
566 B
Makefile
28 lines
566 B
Makefile
|
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
|