#############################################################
# Makefile to build xmlParser lib in toolchain
# fmontorsi, Jan 2017
#

TOPDIR=..
LIBNAME=xmlParser
include $(TOPDIR)/Makefiles/Repo-defines.mk

OUTLIB=$(PRECOMPILED_DIR)/libXmlParser$(DEBUG_TAG).a

all:
	$(MKDIR) $(PRECOMPILED_DIR)
	$(CXX) -c $(CPPFLAGS) -Iinclude -fpermissive $(WARNING_FLAGS) $(DISABLED_WARNING_FLAGS) $(ERRORS_FLAGS) \
		-fPIC src/xmlParser.cpp -o $(PRECOMPILED_DIR)/xmlParser.o
	rm -f $(OUTLIB)
	$(AR) crus $(OUTLIB) $(PRECOMPILED_DIR)/xmlParser.o

clean_build_intermediate_artifacts:
	rm -f $(PRECOMPILED_DIR)/xmlParser.o $(PRECOMPILED_DIR)/xmlParser.d

clean_build_outputs: clean_build_intermediate_artifacts
	rm -f $(OUTLIB)
	
install::
	@echo "Nothing to install"

HAS_INSTALL_SUPPORT=1
include $(TOPDIR)/Makefiles/ThirdPartyTargetHelpers.mk
