| OLD | NEW |
| 1 # Copyright 2014 The Native Client Authors. All rights reserved. | 1 # Copyright 2014 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 include $(NACL_SDK_ROOT)/tools/common.mk | 5 include $(NACL_SDK_ROOT)/tools/common.mk |
| 6 | 6 |
| 7 NACL_LDFLAGS += ${NACL_CLI_MAIN_LIB} | |
| 8 PNACL_LDFLAGS += ${NACL_CLI_MAIN_LIB} | |
| 9 TARGET = libgit2-demo | 7 TARGET = libgit2-demo |
| 10 | 8 |
| 11 LIBS = git2 ssh2 ssl crypto z | 9 LIBS = git2 ssh2 ssl crypto z |
| 12 ifeq ($(TOOLCHAIN),newlib) | 10 ifeq ($(TOOLCHAIN),newlib) |
| 13 LIBS += glibc-compat | 11 LIBS += glibc-compat |
| 14 endif | 12 endif |
| 15 ifeq ($(TOOLCHAIN),pnacl) | 13 ifeq ($(TOOLCHAIN),pnacl) |
| 16 LIBS += glibc-compat | 14 LIBS += glibc-compat |
| 17 endif | 15 endif |
| 18 ifeq ($(TOOLCHAIN),clang-newlib) | 16 ifeq ($(TOOLCHAIN),clang-newlib) |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 cp -r $(OUTDIR)/lib* $(INSTALL_DIR) | 57 cp -r $(OUTDIR)/lib* $(INSTALL_DIR) |
| 60 endif | 58 endif |
| 61 cp httpd.py $(INSTALL_DIR) | 59 cp httpd.py $(INSTALL_DIR) |
| 62 cp index.html $(INSTALL_DIR) | 60 cp index.html $(INSTALL_DIR) |
| 63 cp background.js $(INSTALL_DIR) | 61 cp background.js $(INSTALL_DIR) |
| 64 cp libgit2.js $(INSTALL_DIR) | 62 cp libgit2.js $(INSTALL_DIR) |
| 65 cp manifest.json $(INSTALL_DIR) | 63 cp manifest.json $(INSTALL_DIR) |
| 66 ifeq ($(TOOLCHAIN),pnacl) | 64 ifeq ($(TOOLCHAIN),pnacl) |
| 67 sed -i.bak 's/x-nacl/x-pnacl/g' $(INSTALL_DIR)/index.html | 65 sed -i.bak 's/x-nacl/x-pnacl/g' $(INSTALL_DIR)/index.html |
| 68 endif | 66 endif |
| OLD | NEW |