################################################################################
# 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 += \
input_events.pexe \

NACL_EXECUTABLE += \
input_events_i686.nexe \
input_events_x86-64.nexe \
input_events_armv7.nexe \


# All Target
all: input_events.nmf

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

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

input_events_i686.nexe input_events_x86-64.nexe input_events_armv7.nexe: $(PEXE)
	@echo 'Invoking: NaCl Translator'
	pnacl-translate --allow-llvm-bitcode-input -arch $(patsubst input_events_%.nexe,%,$@)  -o $@ $(PEXE)
	@echo 'Finished building: $@'
	@echo ' '

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

.PHONY: all clean dependents
.SECONDARY:

-include ../makefile.targets
