Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(448)

Side by Side Diff: native_client_sdk/src/tools/common.mk

Issue 73083005: [NaCl SDK] Enable linux host build for nacl_io and nacl_io_tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 else 283 else
284 284
285 .PHONY: $(STAMPDIR)/$(1).stamp 285 .PHONY: $(STAMPDIR)/$(1).stamp
286 $(STAMPDIR)/$(1).stamp: 286 $(STAMPDIR)/$(1).stamp:
287 @echo Ignore $(1) 287 @echo Ignore $(1)
288 endif 288 endif
289 endef 289 endef
290 290
291 291
292 ifeq ($(TOOLCHAIN),win) 292 ifeq ($(TOOLCHAIN),win)
293 ifdef SEL_LDR
294 HOST_EXT = .exe
295 else
293 HOST_EXT = .dll 296 HOST_EXT = .dll
297 endif
298 else
299 ifdef SEL_LDR
300 HOST_EXT =
binji 2013/11/15 17:26:23 Ah, sneaky. SEL_LDR build is just a normal build..
Sam Clegg 2013/11/15 18:13:34 I agree. How about STANDALONE?
294 else 301 else
295 HOST_EXT = .so 302 HOST_EXT = .so
296 endif 303 endif
304 endif
297 305
298 306
299 # 307 #
300 # Common Compile Options 308 # Common Compile Options
301 # 309 #
302 # For example, -DNDEBUG is added to release builds by default 310 # For example, -DNDEBUG is added to release builds by default
303 # so that calls to assert(3) are not included in the build. 311 # so that calls to assert(3) are not included in the build.
304 # 312 #
305 ifeq ($(CONFIG),Release) 313 ifeq ($(CONFIG),Release)
306 POSIX_FLAGS ?= -g -O2 -pthread -MMD -DNDEBUG 314 POSIX_FLAGS ?= -g -O2 -pthread -MMD -DNDEBUG
307 NACL_LDFLAGS ?= -O2 315 NACL_LDFLAGS ?= -O2
308 PNACL_LDFLAGS ?= -O2 316 PNACL_LDFLAGS ?= -O2
309 else 317 else
310 POSIX_FLAGS ?= -g -O0 -pthread -MMD -DNACL_SDK_DEBUG 318 POSIX_FLAGS ?= -g -O0 -pthread -MMD -DNACL_SDK_DEBUG
311 endif 319 endif
312 320
313 ifdef SEL_LDR 321 ifdef SEL_LDR
314 POSIX_FLAGS += -DSEL_LDR=1 322 POSIX_FLAGS += -DSEL_LDR=1
315 endif 323 endif
316 324
317 NACL_CFLAGS ?= -Wno-long-long -Werror 325 NACL_CFLAGS ?= -Wno-long-long -Werror
318 NACL_CXXFLAGS ?= -Wno-long-long -Werror 326 NACL_CXXFLAGS ?= -Wno-long-long -Werror
319 NACL_LDFLAGS += -Wl,-as-needed 327 NACL_LDFLAGS += -Wl,-as-needed -pthread
320 328
321 # 329 #
322 # Default Paths 330 # Default Paths
323 # 331 #
324 ifeq (,$(findstring $(TOOLCHAIN),linux mac win)) 332 ifeq (,$(findstring $(TOOLCHAIN),linux mac win))
325 INC_PATHS ?= $(NACL_SDK_ROOT)/include $(NACL_SDK_ROOT)/include/$(TOOLCHAIN) $(EX TRA_INC_PATHS) 333 INC_PATHS ?= $(NACL_SDK_ROOT)/include $(NACL_SDK_ROOT)/include/$(TOOLCHAIN) $(EX TRA_INC_PATHS)
326 else 334 else
327 INC_PATHS ?= $(NACL_SDK_ROOT)/include/$(OSNAME) $(NACL_SDK_ROOT)/include $(EXTRA _INC_PATHS) 335 INC_PATHS ?= $(NACL_SDK_ROOT)/include/$(OSNAME) $(NACL_SDK_ROOT)/include $(EXTRA _INC_PATHS)
328 endif 336 endif
329 337
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 # uppercase aliases (for backward compatibility) 527 # uppercase aliases (for backward compatibility)
520 .PHONY: CHECK_FOR_CHROME DEBUG LAUNCH RUN 528 .PHONY: CHECK_FOR_CHROME DEBUG LAUNCH RUN
521 CHECK_FOR_CHROME: check_for_chrome 529 CHECK_FOR_CHROME: check_for_chrome
522 DEBUG: debug 530 DEBUG: debug
523 LAUNCH: run 531 LAUNCH: run
524 RUN: run 532 RUN: run
525 533
526 endif # TOOLCHAIN is valid... 534 endif # TOOLCHAIN is valid...
527 535
528 endif # TOOLCHAIN=all 536 endif # TOOLCHAIN=all
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698