################################################################################
# Automatically-generated file. Do not edit!
################################################################################

-include ../makefile.init

RM := python $(NACL_SDK_ROOT)/tools/oshelpers.py rm

# All of the sources participating in the build are defined here
-include sources.mk
-include src/subdir.mk
-include subdir.mk
-include objects.mk

-include ../makefile.defs

# Add inputs and outputs from these tool invocations to the build variables 
PEXE += \
graphics_2d.pexe \

NACL_EXECUTABLE += \
graphics_2d_i686.nexe \
graphics_2d_x86-64.nexe \
graphics_2d_armv7.nexe \


# All Target
all: graphics_2d.nmf

# Tool invocations
graphics_2d.nmf: $(NACL_EXECUTABLE)
	@echo 'Building target: $@'
	@echo 'Generating manifest file'
	python "$(NACL_SDK_ROOT)/tools/create_nmf.py" -s ./  -o "graphics_2d.nmf" $(NACL_EXECUTABLE)
	@echo 'Finished building target: $@'
	@echo ' '

graphics_2d.pexe: $(OBJS)
	@echo 'Invoking: NaCl C++ linker'
	pnacl-clang++ -o "graphics_2d.pexe" $(OBJS) -L"$(NACL_SDK_ROOT)/lib/pnacl/Debug" -lppapi_cpp -lppapi -lpthread
	@echo 'Finished building: $@'
	@echo ' '

graphics_2d_i686.nexe graphics_2d_x86-64.nexe graphics_2d_armv7.nexe: $(PEXE)
	@echo 'Invoking: NaCl Translator'
	pnacl-translate --allow-llvm-bitcode-input -arch $(patsubst graphics_2d_%.nexe,%,$@)  -o $@ $(PEXE)
	@echo 'Finished building: $@'
	@echo ' '

# Other Targets
clean:
	-$(RM) $(NACL_EXECUTABLE)$(NACL_MANIFEST_OUTPUTS)$(PEXE)$(OBJS) graphics_2d.nmf
	-@echo ' '

.PHONY: all clean dependents
.SECONDARY:

-include ../makefile.targets
