Jiacheng lyu
Subscriber
Working...
for d in lnamd64/[23]*; do \
  ( \
    cd $d; \
if [ -f udf_names.c ]; then \
                  mv -f udf_names.c udf_names.cRenamed; \
                fi; \
rm -rf *.{c,h,cpp,hpp}; \
if [ -f udf_names.cRenamed ]; then \
                  mv -f udf_names.cRenamed udf_names.c; \
                fi; \
    for f in ../../src/*.{c,h,cpp,hpp} ../../src/makefile ../../src/user.udf; do \
      if [ -f $f -a ! -f basename $f ]; then \
        echo "# linking to" $f "in" $d; \
        ln -s $f .; \
      fi; \
    done; \
    echo ""; \
    echo "# building library in" $d; \
    if [ "" = "1" ]; then \
echo "# using gcc64"; \
make ARCHC=gcc64 -k>makelog 2>&1; \
    else \
if [ "" = "1" ]; then \
echo "# using gcc"; \
make ARCHC=gcc -k>makelog 2>&1; \
else \
make -k>makelog 2>&1; \
fi; \
    fi;\
    cat makelog; \
  ) \
done
# linking to ../../src/rate_bfer.c in lnamd64/3ddp_host
# linking to ../../src/makefile in lnamd64/3ddp_host
 
# building library in lnamd64/3ddp_host
make[1]: Entering directory `/home/data/lv/test/density-based/rate1/lnamd64/3ddp_host'