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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 # | 63 # |
64 # LIB Macro | 64 # LIB Macro |
65 # | 65 # |
66 # $1 = Target Name | 66 # $1 = Target Name |
67 # $2 = List of Sources | 67 # $2 = List of Sources |
68 # | 68 # |
69 # | 69 # |
70 define LIB_RULE | 70 define LIB_RULE |
71 all:$(NACL_SDK_ROOT)/lib/$(OSNAME)_host/$(CONFIG)/$(1).lib | 71 all:$(NACL_SDK_ROOT)/lib/$(OSNAME)_host/$(CONFIG)/$(1).lib |
72 $(NACL_SDK_ROOT)/lib/$(OSNAME)_host/$(CONFIG)/$(1).lib : $(foreach src,$(2),$(OU
TDIR)/$(basename $(src)).o) | 72 $(NACL_SDK_ROOT)/lib/$(OSNAME)_host/$(CONFIG)/$(1).lib : $(foreach src,$(2),$(OU
TDIR)/$(basename $(src)).o) |
73 » $(MKDIR) -p $(dir $$@) | 73 » $(MKDIR) -p $$(dir $$@) |
74 $(HOST_LIB) $$@ $$^ $(WIN_LDFLAGS) | 74 $(HOST_LIB) $$@ $$^ $(WIN_LDFLAGS) |
75 endef | 75 endef |
76 | 76 |
77 | 77 |
78 # | 78 # |
79 # Link Macro | 79 # Link Macro |
80 # | 80 # |
81 # $1 = Target Name | 81 # $1 = Target Name |
82 # $2 = List of inputs | 82 # $2 = List of inputs |
83 # $3 = List of libs | 83 # $3 = List of libs |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 NMF:=python $(NACL_SDK_ROOT)/tools/create_nmf.py | 121 NMF:=python $(NACL_SDK_ROOT)/tools/create_nmf.py |
122 | 122 |
123 define NMF_RULE | 123 define NMF_RULE |
124 NMF_LIST+=$(OUTDIR)/$(1).nmf | 124 NMF_LIST+=$(OUTDIR)/$(1).nmf |
125 $(OUTDIR)/$(1).nmf : $(OUTDIR)/$(1)$(HOST_EXT) | 125 $(OUTDIR)/$(1).nmf : $(OUTDIR)/$(1)$(HOST_EXT) |
126 @echo "Host Toolchain" > $$@ | 126 @echo "Host Toolchain" > $$@ |
127 endef | 127 endef |
128 | 128 |
129 all : $(LIB_LIST) $(DEPS_LIST) $(NMF_LIST) | 129 all : $(LIB_LIST) $(DEPS_LIST) $(NMF_LIST) |
130 | 130 |
OLD | NEW |