#
# AUTO-GENERATED Makefile; do not edit, changes will be lost
#

# Define target type
TARGET:=wp750x

# Custom makefile include: initialization
-include ../customInit.mk

# Only when not cleaning
ifneq ($(MAKECMDGOALS),clean)
# Load default PA definitions from main Legato Makefile
$(shell grep 'export PA_DIR .*' $(LEGATO_ROOT)/Makefile > legatoDefs.mk)
$(shell grep 'export .*_PA_.* .*' $(LEGATO_ROOT)/Makefile >> legatoDefs.mk)
-include legatoDefs.mk

# Default targets definitions from Framework
-include targetDefs.$(TARGET)
endif

# Target artifact.*
TARGET_ARTIFACT:=SerialToVPN.$(TARGET).update

# Airvantage application type
AIRVANTAGE_TYPE?=LegatoApplication

# Clean commands
CLEAN:=rm -f
CLEANDIR:=rm -Rf

# MK command
MKCOMMAND:=cd ..;mkapp -t $(TARGET) -o Target_Legato_Debug -w Target_Legato_Debug -i "$(LEGATO_ROOT)/interfaces/supervisor" -i "SerialIO/api" -i "modem/api" -i "$(LEGATO_ROOT)/interfaces" -i "$(LEGATO_ROOT)/interfaces/modemServices" -i "AVInterface/api" -i "$(LEGATO_ROOT)/interfaces/wifi" -i "sendSMS/api" -i "$(LEGATO_ROOT)/interfaces/airVantage" -i "$(LEGATO_ROOT)/interfaces/positioning" -i "AVInterface/api" -i "$(LEGATO_ROOT)/interfaces/atServices" -i "$(LEGATO_ROOT)/interfaces/logDaemon" -i "$(LEGATO_ROOT)/interfaces/secureStorage" -s "." -s "$(LEGATO_ROOT)/components" -C -g -X -g -L -g SerialToVPN.adef

# Custom makefile include: definitions
-include ../customDefs.mk

.PHONY: all target clean codegen mkCodegen  airvantage

all: target  airvantage

codegen: mkCodegen

mkCodegen:
	$(MKCOMMAND) --generate-code

target:
	$(MKCOMMAND)

airvantage:
	av-pack -f $(TARGET_ARTIFACT) $(AIRVANTAGE_TYPE)

clean:
	$(CLEANDIR) work app component obj src staging api
	$(CLEAN) *.update *.$(TARGET) manifest.* mktool* *.so *.ninja* .ninja* *.zip

# Custom makefile include: targets
-include ../customTargets.mk
