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

NACL_EXECUTABLE += \
audio_i686.nexe \
audio_x86-64.nexe \
audio_armv7.nexe \


# All Target
all: audio.nmf

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

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

audio_i686.nexe audio_x86-64.nexe audio_armv7.nexe: $(PEXE)
	@echo 'Invoking: NaCl Translator'
	pnacl-translate --allow-llvm-bitcode-input -arch $(patsubst audio_%.nexe,%,$@)  -o $@ $(PEXE)
	@echo 'Finished building: $@'
	@echo ' '

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

.PHONY: all clean dependents
.SECONDARY:

-include ../makefile.targets
