| OLD | NEW |
| 1 # Copyright (c) 2014 The Native Client Authors. All rights reserved. | 1 # Copyright (c) 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 TARGET = agg-demo | 7 TARGET = agg-demo |
| 8 LIBS = agg ppapi_simple nacl_io ppapi ppapi_cpp | 8 LIBS = agg ppapi_simple nacl_io ppapi ppapi_cpp |
| 9 SOURCES = drawing.cc | 9 SOURCES = drawing.cc |
| 10 INSTALL_DIR = $(NACL_PACKAGES_PUBLISH)/$(TARGET)/$(TOOLCHAIN) | 10 INSTALL_DIR = $(NACL_PACKAGES_PUBLISH)/$(TARGET)/$(TOOLCHAIN) |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 endif | 36 endif |
| 37 | 37 |
| 38 $(eval $(call NMF_RULE,$(TARGET),)) | 38 $(eval $(call NMF_RULE,$(TARGET),)) |
| 39 | 39 |
| 40 install: | 40 install: |
| 41 mkdir -p $(INSTALL_DIR) | 41 mkdir -p $(INSTALL_DIR) |
| 42 cp $(OUTDIR)/$(TARGET)*$(EXEEXT) $(INSTALL_DIR) | 42 cp $(OUTDIR)/$(TARGET)*$(EXEEXT) $(INSTALL_DIR) |
| 43 rm -f $(INSTALL_DIR)/*_unstripped*$(EXEEXT) | 43 rm -f $(INSTALL_DIR)/*_unstripped*$(EXEEXT) |
| 44 cp $(OUTDIR)/$(TARGET).nmf $(INSTALL_DIR) | 44 cp $(OUTDIR)/$(TARGET).nmf $(INSTALL_DIR) |
| 45 cp index.html $(INSTALL_DIR) | 45 cp index.html $(INSTALL_DIR) |
| 46 ifeq ($(TOOLCHAIN),glibc) |
| 47 cp -r $(OUTDIR)/lib* $(INSTALL_DIR) |
| 48 endif |
| 46 ifeq ($(TOOLCHAIN),pnacl) | 49 ifeq ($(TOOLCHAIN),pnacl) |
| 47 sed -i.bak 's/x-nacl/x-pnacl/g' $(INSTALL_DIR)/index.html | 50 sed -i.bak 's/x-nacl/x-pnacl/g' $(INSTALL_DIR)/index.html |
| 48 endif | 51 endif |
| OLD | NEW |