| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium 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 # | 5 # |
| 6 # GNU Make based build file. For details on GNU Make see: | 6 # GNU Make based build file. For details on GNU Make see: |
| 7 # http://www.gnu.org/software/make/manual/make.html | 7 # http://www.gnu.org/software/make/manual/make.html |
| 8 # | 8 # |
| 9 # | 9 # |
| 10 | 10 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 # | 70 # |
| 71 # LIB Macro | 71 # LIB Macro |
| 72 # | 72 # |
| 73 # $1 = Target Name | 73 # $1 = Target Name |
| 74 # $2 = List of Sources | 74 # $2 = List of Sources |
| 75 # | 75 # |
| 76 # | 76 # |
| 77 define LIB_RULE | 77 define LIB_RULE |
| 78 all:$(NACL_SDK_ROOT)/lib/$(OSNAME)_host/$(CONFIG)/lib$(1).a | 78 all:$(NACL_SDK_ROOT)/lib/$(OSNAME)_host/$(CONFIG)/lib$(1).a |
| 79 $(NACL_SDK_ROOT)/lib/$(OSNAME)_host/$(CONFIG)/lib$(1).a : $(foreach src,$(2),$(O
UTDIR)/$(basename $(src)).o) | 79 $(NACL_SDK_ROOT)/lib/$(OSNAME)_host/$(CONFIG)/lib$(1).a : $(foreach src,$(2),$(O
UTDIR)/$(basename $(src)).o) |
| 80 » $(MKDIR) -p $(dir $$@) | 80 » $(MKDIR) -p $$(dir $$@) |
| 81 $(HOST_LIB) $$@ $$^ | 81 $(HOST_LIB) $$@ $$^ |
| 82 endef | 82 endef |
| 83 | 83 |
| 84 | 84 |
| 85 # | 85 # |
| 86 # Link Macro | 86 # Link Macro |
| 87 # | 87 # |
| 88 # $1 = Target Name | 88 # $1 = Target Name |
| 89 # $2 = List of inputs | 89 # $2 = List of inputs |
| 90 # $3 = List of libs | 90 # $3 = List of libs |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 NMF:=python $(NACL_SDK_ROOT)/tools/create_nmf.py | 128 NMF:=python $(NACL_SDK_ROOT)/tools/create_nmf.py |
| 129 | 129 |
| 130 define NMF_RULE | 130 define NMF_RULE |
| 131 NMF_LIST+=$(OUTDIR)/$(1).nmf | 131 NMF_LIST+=$(OUTDIR)/$(1).nmf |
| 132 $(OUTDIR)/$(1).nmf : $(OUTDIR)/$(1)$(HOST_EXT) | 132 $(OUTDIR)/$(1).nmf : $(OUTDIR)/$(1)$(HOST_EXT) |
| 133 @echo "Host Toolchain" > $$@ | 133 @echo "Host Toolchain" > $$@ |
| 134 endef | 134 endef |
| 135 | 135 |
| 136 all : $(LIB_LIST) $(DEPS_LIST) $(NMF_LIST) | 136 all : $(LIB_LIST) $(DEPS_LIST) $(NMF_LIST) |
| 137 | 137 |
| OLD | NEW |