mirror of
https://github.com/danog/gllvm.git
synced 2024-11-26 21:14:48 +01:00
touch could be a useful test.
This commit is contained in:
parent
f464fcac22
commit
a25ce9cfb9
36
examples/coreutils/Makefile
Normal file
36
examples/coreutils/Makefile
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
VERSION=8.31
|
||||||
|
SRC=coreutils-${VERSION}
|
||||||
|
TAR=${SRC}.tar.xz
|
||||||
|
URL=https://ftp.gnu.org/gnu/coreutils/${TAR}
|
||||||
|
|
||||||
|
|
||||||
|
all: touch.bc
|
||||||
|
|
||||||
|
${TAR}:
|
||||||
|
wget ${URL}
|
||||||
|
|
||||||
|
${SRC}: ${TAR}
|
||||||
|
tar xvf ${TAR}
|
||||||
|
touch ${SRC}
|
||||||
|
|
||||||
|
|
||||||
|
${SRC}/Makefile: ${SRC}
|
||||||
|
cd ${SRC}; CC=gclang ./configure
|
||||||
|
|
||||||
|
${SRC}/src/touch: ${SRC}/Makefile
|
||||||
|
cd ${SRC}; make
|
||||||
|
touch ${SRC}/src/touch
|
||||||
|
|
||||||
|
touch.bc: ${SRC}/src/touch
|
||||||
|
get-bc -o touch.bc -m ${SRC}/src/touch
|
||||||
|
|
||||||
|
touch_from_bitcode: touch.bc
|
||||||
|
clang++ touch.bc -o touch
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf touch touch.bc touch.bc.llvm.manifest
|
||||||
|
make -C ${SRC}
|
||||||
|
|
||||||
|
spotless:
|
||||||
|
rm -rf ${SRC} ${TAR}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user