| OLD | NEW |
| 1 # Copyright 2015 The Native Client Authors. All rights reserved. | 1 # Copyright 2015 The Native Client Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 NACLPORTS_CFLAGS+=" -Dmain=nacl_main" | |
| 6 BUILD_DIR=${SRC_DIR} | 5 BUILD_DIR=${SRC_DIR} |
| 7 EXECUTABLES="tree" | 6 EXECUTABLES="tree" |
| 8 NACLPORTS_LDFLAGS+=" ${NACL_CLI_MAIN_LIB}" | |
| 9 INSTALL_TARGETS="install prefix=${DESTDIR}/${PREFIX}" | 7 INSTALL_TARGETS="install prefix=${DESTDIR}/${PREFIX}" |
| 10 | 8 |
| 9 EnableCliMain |
| 10 |
| 11 BuildStep() { | 11 BuildStep() { |
| 12 LogExecute make clean | 12 LogExecute make clean |
| 13 LogExecute make -j${OS_JOBS} CC="${NACLCC}" CFLAGS=" -c \ | 13 LogExecute make -j${OS_JOBS} CC="${NACLCC}" CFLAGS=" -c \ |
| 14 ${NACLPORTS_CFLAGS}" LDFLAGS="${NACLPORTS_LDFLAGS}" tree | 14 ${NACLPORTS_CFLAGS}" LDFLAGS="${NACLPORTS_LDFLAGS}" tree |
| 15 } | 15 } |
| OLD | NEW |