1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 # GNU Makefile based on shared rules provided by the Native Client SDK.
6 # See README.Makefiles for more details.
8 VALID_TOOLCHAINS := newlib glibc pnacl
10 NACL_SDK_ROOT ?= $(abspath $(CURDIR)/../../..)
11 include $(NACL_SDK_ROOT)/tools/common.mk
14 LIBS = $(DEPS) ppapi_simple nacl_io sdk_util ppapi_cpp ppapi pthread
19 # Build rules generated by macros from common.mk:
21 $(foreach src,$(SOURCES),$(eval $(call COMPILE_RULE,$(src),$(CFLAGS))))
23 ifeq ($(CONFIG),Release)
24 $(eval $(call LINK_RULE,$(TARGET)_unstripped,$(SOURCES),$(LIBS),$(DEPS)))
25 $(eval $(call STRIP_RULE,$(TARGET),$(TARGET)_unstripped))
27 $(eval $(call LINK_RULE,$(TARGET),$(SOURCES),$(LIBS),$(DEPS)))
30 $(eval $(call NMF_RULE,$(TARGET),))