Fix parallel make command (#144)

'make -j' will make targets parallelly. In other words, "clean" may run after "all" for 'make -j clean all' line.
This commit is contained in:
Kuang-che Wu 2016-12-07 22:47:37 +08:00 committed by Mike Aizatsky
parent 62004e9306
commit 7048975d6a
7 changed files with 14 additions and 7 deletions

View File

@ -18,7 +18,8 @@
./autogen.sh
./configure
make -j$(nproc) clean all
make -j$(nproc) clean
make -j$(nproc) all
$CXX $CXXFLAGS -std=c++11 \
-I./include -I. \

View File

@ -23,7 +23,8 @@ mv scripts/pnglibconf.dfa.temp scripts/pnglibconf.dfa
# build the library.
autoreconf -f -i
./configure
make -j$(nproc) clean all
make -j$(nproc) clean
make -j$(nproc) all
# build libpng_read_fuzzer
$CXX $CXXFLAGS -std=c++11 -I. -lz \

View File

@ -17,7 +17,8 @@
# build the library.
./autogen.sh
make -j$(nproc) clean all
make -j$(nproc) clean
make -j$(nproc) all
# build your fuzzer(s)
$CC $CFLAGS -c $SRC/libtsm_fuzzer.c -Isrc/tsm -o $SRC/libtsm_fuzzer.o

View File

@ -18,7 +18,8 @@
./autogen.sh
./configure
make -j$(nproc) clean all
make -j$(nproc) clean
make -j$(nproc) all
for fuzzer in libxml2_xml_read_memory_fuzzer libxml2_xml_regexp_compile_fuzzer; do
$CXX $CXXFLAGS -std=c++11 -Iinclude/ \

View File

@ -20,7 +20,8 @@ cd pcre2
# build project
./autogen.sh
./configure --enable-fuzz-support --enable-never-backslash-C --with-match-limit=1000 --with-match-limit-recursion=1000
make -j$(nproc) clean all
make -j$(nproc) clean
make -j$(nproc) all
# build fuzzer
$CXX $CXXFLAGS -o $OUT/pcre2_fuzzer \

View File

@ -26,7 +26,8 @@ cat Makefile | sed -e "s/-no-canonical-prefixes//" \
mv Makefile.temp Makefile
# woff2 uses LFLAGS instead of LDFLAGS.
make -j$(nproc) CC="$CC $CFLAGS" CXX="$CXX $CXXFLAGS" clean all
make clean
make -j$(nproc) CC="$CC $CFLAGS" CXX="$CXX $CXXFLAGS" all
# To avoid multiple main() definitions.
rm src/woff2_compress.o src/woff2_decompress.o

View File

@ -1,7 +1,8 @@
#!/bin/bash -eu
./configure
make -j$(nproc) clean all
make -j$(nproc) clean
make -j$(nproc) all
$CXX $CXXFLAGS -std=c++11 -I. \
$SRC/zlib_uncompress_fuzzer.cc -o $OUT/zlib_uncompress_fuzzer \