#__appname__
__APPNAME___INCLUDE=$(THELIB_INCLUDE) -I$(PROJECT_BASE_PATH)/sources/applications/__appname__/include
__APPNAME___LIBS=$(THELIB_LIBS) -L$(OUTPUT_DYNAMIC) -lthelib
__APPNAME___SRCS=$(shell find $(PROJECT_BASE_PATH)/sources/applications/__appname__/src -type f -name "*.cpp")
__APPNAME___OBJS=$(__APPNAME___SRCS:.cpp=.__appname__.o)

__appname__: thelib $(__APPNAME___OBJS)
	@mkdir -p $(OUTPUT_DYNAMIC)/applications/__appname__/mediaFolder
	@mkdir -p $(OUTPUT_STATIC)/applications/__appname__/mediaFolder
	$(CXXCOMPILER)  -shared $(__APPNAME___LIBS) -o $(call dynamic_lib_name,__appname__,/applications/__appname__) $(call dynamic_lib_flags,__appname__) $(__APPNAME___OBJS)

%.__appname__.o: %.cpp
	$(CXXCOMPILER) $(COMPILE_FLAGS) $(DEFINES) $(__APPNAME___INCLUDE) -c $< -o $@

