touch could be a useful test.

This commit is contained in:
Ian A. Mason 2019-10-31 19:36:49 +00:00
parent f464fcac22
commit a25ce9cfb9

View 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}